Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » null pointer while using ASF...
null pointer while using ASF... [message #137088] Wed, 15 October 2008 12:55 Go to previous message
Nick Young is currently offline Nick Young
Messages: 16
Registered: July 2009
Junior Member
Hi, I'm getting a null pointer exception when attempting to run my tests
through the ASF.

I'm using tptp 4.5.0 on eclipse 3.4, and java 1.5, and in my mind I've
convinced myself that this was working correctly when we were previously
running under tptp 4.3 and eclipse 3.2... :-)

My ant debug output is below:

Question 1 - has anyone seen this before that can help me resolve the issue?
Is it something I've done wrong or am missing? Does the stack trace help?
Question 2 - surely it shouldn't be producing an NPE as shown below in any
case?

Many thanks,
Nick

Output:


testjunit:
[echo] Executing JUnit test suite...
parsing buildfile
jar:file:/C:/eclipse/plugins/org.apache.ant_1.7.0.v200803061 910/lib/ant-tptp.jar!/org/eclipse/hyades/automation/client/a dapters/ant/antlib.xml
with URI =
jar:file:/C:/eclipse/plugins/org.apache.ant_1.7.0.v200803061 910/lib/ant-tptp.jar!/org/eclipse/hyades/automation/client/a dapters/ant/antlib.xml
Class
org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Automation
loaded from parent loader (parentFirst)
+Datatype
antlib:org.eclipse.hyades.automation.client.adapters.ant:aut omation
org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Automation
Class
org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Execution
loaded from parent loader (parentFirst)
+Datatype
antlib:org.eclipse.hyades.automation.client.adapters.ant:exe cution
org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Execution
Class
org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Extraction
loaded from parent loader (parentFirst)
+Datatype
antlib:org.eclipse.hyades.automation.client.adapters.ant:ext raction
org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Extraction
Class
org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Interrogation
loaded from parent loader (parentFirst)
+Datatype
antlib:org.eclipse.hyades.automation.client.adapters.ant:int errogation
org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Interrogation
Class
org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Publication
loaded from parent loader (parentFirst)
+Datatype
antlib:org.eclipse.hyades.automation.client.adapters.ant:pub lication
org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Publication
Class
org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Verification
loaded from parent loader (parentFirst)
+Datatype
antlib:org.eclipse.hyades.automation.client.adapters.ant:ver ification
org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Verification
Class
org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$ImportExistingProjects
loaded from parent loader (parentFirst)
+Datatype
antlib:org.eclipse.hyades.automation.client.adapters.ant:imp ortExistingProjects
org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$ImportExistingProjects
+Datatype antlib:org.eclipse.hyades.automation.client.adapters.ant:tes t
org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Execution
parsing buildfile
jar:file:/C:/eclipse/plugins/org.apache.ant_1.7.0.v200803061 910/lib/tptp-automation-client.jar!/org/eclipse/hyades/autom ation/client/adapters/ant/antlib.xml
with URI =
jar:file:/C:/eclipse/plugins/org.apache.ant_1.7.0.v200803061 910/lib/tptp-automation-client.jar!/org/eclipse/hyades/autom ation/client/adapters/ant/antlib.xml
parsing buildfile
jar:file:/C:/eclipse/plugins/org.apache.ant_1.7.0.v200803061 910/lib/tptp-automation-server.jar!/org/eclipse/hyades/autom ation/client/adapters/ant/antlib.xml
with URI =
jar:file:/C:/eclipse/plugins/org.apache.ant_1.7.0.v200803061 910/lib/tptp-automation-server.jar!/org/eclipse/hyades/autom ation/client/adapters/ant/antlib.xml
fileset: Setup scanner in dir
c:\eclipse_ide\3_4workspace\com.microfocus.eclipse.testconta iner with
patternSet{ includes: [junit_tests/CommentActionTest.testsuite] excludes:
[] }
[tptp:execution] Adding file
" c:\eclipse_ide\3_4workspace\com.microfocus.eclipse.testconta iner\junit_tests\CommentActionTest.testsuite ".
[tptp:execution] Test execution started.
[tptp:execution] java.lang.NullPointerException
[tptp:execution] at
org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.execute(AbstractTestExecutionService.java:574)
[tptp:execution] at
org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
[tptp:execution] at
org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:139)
[tptp:execution] at
org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
[tptp:execution] at java.lang.Thread.run(Thread.java:595)

BUILD FAILED
c:\eclipse_ide\3_4workspace\com.microfocus.eclipse.testconta iner\test.xml:121:
java.lang.NullPointerException
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:115)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298 )
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:118 1)
at org.apache.tools.ant.Main.runBuild(Main.java:698)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java:336)
at org.apache.tools.ant.PropertyHelper.setProperty(PropertyHelp er.java:308)
at org.apache.tools.ant.Project.setProperty(Project.java:507)
at
org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Execution.execute(AutomationClientAdapter.java :637)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:105)
... 11 more
--- Nested Exception ---
java.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java:336)
at org.apache.tools.ant.PropertyHelper.setProperty(PropertyHelp er.java:308)
at org.apache.tools.ant.Project.setProperty(Project.java:507)
at
org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Execution.execute(AutomationClientAdapter.java :637)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298 )
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:118 1)
at org.apache.tools.ant.Main.runBuild(Main.java:698)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

Total time: 4 seconds
 
Read Message
Read Message
Read Message
Read Message
Previous Topic:AGR: Set Breakpoint
Next Topic:AGR: Waiting for process
Goto Forum:
  


Current Time: Sun May 19 11:29:47 EDT 2013

Powered by FUDForum. Page generated in 0.01644 seconds