Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » null pointer while using ASF...
null pointer while using ASF... [message #137088] Wed, 15 October 2008 16:55 Go to next message
Nick Young is currently offline Nick YoungFriend
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
Re: null pointer while using ASF... [message #137124 is a reply to message #137088] Thu, 16 October 2008 10:37 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Nick,
The first NPE (AbstractTestExecutionService.java:574) is caused by the
ASF trying to resolve the directory location of the results file(s) based on
the path of the 'project' property specified in your ANT script. Is this
path correct, based on the current workspace?

The second NPE (Hashtable.java:336) is caused by the ASF not resolving
the 'results' property specified in your ANT script. Is this path correct,
based on the current workspace?

Paul
"Nick Young" <Nicholas.Young@microfocus.com> wrote in message
news:gd57bg$db3$1@build.eclipse.org...
> 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
>
Re: null pointer while using ASF... [message #137351 is a reply to message #137124] Thu, 23 October 2008 09:35 Go to previous messageGo to next message
Nick Young is currently offline Nick YoungFriend
Messages: 16
Registered: July 2009
Junior Member
Thanks Paul,

After a bit of tinkering (and your pointers!) I did get it working as it was
looking for the project/results in a different directory to where I thought
it was. Now I just have to figure out why my tests take much longer to run
in this manner and hang half way through! Ho hum :)

BTW, (you can never take the tester out of the tester!) from the dumb user
perspective, wouldn't it be better to return an error stating as much rather
that just throwing a null pointer. Is there any value in creating a bugzilla
report for this?

Thanks!
Nick

"Paul Slauenwhite" <paules@ca.ibm.com> wrote in message
news:gd75gr$5vs$1@build.eclipse.org...
> Hi Nick,
> The first NPE (AbstractTestExecutionService.java:574) is caused by the
> ASF trying to resolve the directory location of the results file(s) based
> on the path of the 'project' property specified in your ANT script. Is
> this path correct, based on the current workspace?
>
> The second NPE (Hashtable.java:336) is caused by the ASF not resolving
> the 'results' property specified in your ANT script. Is this path
> correct, based on the current workspace?
>
> Paul
> "Nick Young" <Nicholas.Young@microfocus.com> wrote in message
> news:gd57bg$db3$1@build.eclipse.org...
>> 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
>>
>
>
Re: null pointer while using ASF... [message #137374 is a reply to message #137351] Thu, 23 October 2008 11:36 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Nick,
There should only be a <20% increase in the time required to run your
tests using the ASF and they should never hang.

Regarding the confusing exceptions thrown by ASF, please see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=217487. You may want to
comment and/or add your name to the CC list.

Paul
"Nick Young" <Nicholas.Young@microfocus.com> wrote in message
news:gdpgir$b3k$1@build.eclipse.org...
> Thanks Paul,
>
> After a bit of tinkering (and your pointers!) I did get it working as it
> was looking for the project/results in a different directory to where I
> thought it was. Now I just have to figure out why my tests take much
> longer to run in this manner and hang half way through! Ho hum :)
>
> BTW, (you can never take the tester out of the tester!) from the dumb user
> perspective, wouldn't it be better to return an error stating as much
> rather that just throwing a null pointer. Is there any value in creating a
> bugzilla report for this?
>
> Thanks!
> Nick
>
> "Paul Slauenwhite" <paules@ca.ibm.com> wrote in message
> news:gd75gr$5vs$1@build.eclipse.org...
>> Hi Nick,
>> The first NPE (AbstractTestExecutionService.java:574) is caused by the
>> ASF trying to resolve the directory location of the results file(s) based
>> on the path of the 'project' property specified in your ANT script. Is
>> this path correct, based on the current workspace?
>>
>> The second NPE (Hashtable.java:336) is caused by the ASF not resolving
>> the 'results' property specified in your ANT script. Is this path
>> correct, based on the current workspace?
>>
>> Paul
>> "Nick Young" <Nicholas.Young@microfocus.com> wrote in message
>> news:gd57bg$db3$1@build.eclipse.org...
>>> 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
>>>
>>
>>
>
Previous Topic:AGR: Set Breakpoint
Next Topic:AGR: Waiting for process
Goto Forum:
  


Current Time: Fri Mar 29 15:15:31 GMT 2024

Powered by FUDForum. Page generated in 0.03408 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top