Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » NullPointerException when running more tests with tptp:execution ANT task
NullPointerException when running more tests with tptp:execution ANT task [message #91987] Wed, 31 January 2007 08:44 Go to next message
Karel Brezina is currently offline Karel BrezinaFriend
Messages: 68
Registered: July 2009
Member
Hi,

I have a problem (NPE) when running more tests with tptp:execution ANT task.

ANT task:
<tptp:execution deployment="runner/headlessDeployment.deploy"
resultsrefid="tptp.test.results">
<fileset dir="${project.dir}">
<include name="**/*.testsuite"/>
</fileset>
</tptp:execution>

I use Eclipse 3.2.1, TPTP 4.3.0, Java 1.5.0.

Has anyone faced this problem? Have I missed something? Is there any
workaround to avoid this? Can anyone help?

Regards,
Karel


OUTPUT:

test.execution:
[echo] Executing test suite
adding file src\tptp\demo\test\MathTestCase.testsuite
adding file src\tptp\demo\test\extended\ExtendedMathTestCase.testsuite
Test started!
Test 'src\tptp\demo\test\MathTestCase.testsuite' executing
Waiting....
Collected results:
'org.eclipse.hyades.models.common.testprofile.impl.TPFExecut ionResultImpl @1493995
(eProxyURI:

platform:/resource/tptp.demo.test/MathTestCase_1170231666375 .execution#D382C493A8652AC283932A50ADD911DB)'
Test 'src\tptp\demo\test\MathTestCase.testsuite' completed
Test 'src\tptp\demo\test\extended\ExtendedMathTestCase.testsuite' executing

java.lang.NullPointerException
at
org.eclipse.hyades.test.tools.core.internal.plugin.util.Work benchLocationUtil.getPropertyValue(WorkbenchLocationUtil.jav a:155)
at
org.eclipse.hyades.test.tools.core.internal.plugin.util.Work benchLocationUtil.getUseDefaultPlugins(WorkbenchLocationUtil .java:325)
at
org.eclipse.hyades.test.tools.core.internal.plugin.util.Work benchLocationUtil.getExternalPlugins(WorkbenchLocationUtil.j ava:313)
at

org.eclipse.hyades.test.tools.core.internal.plugin.harness.W orkbenchExecutionDeploymentAdapter.collectTestSuiteFiles(Wor kbenchExecutionDeployment

Adapter.java:173)
at
org.eclipse.hyades.execution.harness.JavaExecutionDeployment Adapter.collectDeployableArtifacts(JavaExecutionDeploymentAd apter.java:324)
at
org.eclipse.hyades.execution.harness.JavaExecutionDeployment Adapter.collectDeployableFiles(JavaExecutionDeploymentAdapte r.java:240)
at

org.eclipse.hyades.test.tools.core.internal.plugin.harness.W orkbenchExecutionDeploymentAdapter.collectDeployableFiles(Wo rkbenchExecutionDeploymen

tAdapter.java:110)
at
org.eclipse.hyades.execution.harness.JavaExecutionDeployment Adapter.deployTestAssets(JavaExecutionDeploymentAdapter.java :468)
at

org.eclipse.hyades.test.tools.core.internal.plugin.harness.W orkbenchExecutionDeploymentAdapter.deployTestAssets(Workbenc hExecutionDeploymentAdapt

er.java:106)
at
org.eclipse.hyades.execution.harness.util.ExecutionAdapterUt ilities.adaptExecutionDeployment(ExecutionAdapterUtilities.j ava:159)
at
org.eclipse.hyades.execution.harness.TestExecutionHarness.la unchTestExecution(TestExecutionHarness.java:1973)
at
org.eclipse.hyades.execution.harness.TestExecutionHarness.ac cess$3(TestExecutionHarness.java:1817)
at
org.eclipse.hyades.execution.harness.TestExecutionHarness$2. run(TestExecutionHarness.java:741)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
org.eclipse.core.runtime.CoreException: IWAT4039E The Test Execution Harness
reported the following problems:java.lang.NullPointerException
at
org.eclipse.hyades.test.core.launch.delegates.AbstractLaunch ConfigurationDelegate2.launch(AbstractLaunchConfigurationDel egate2.java:197)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:639)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:565)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:558)
at
org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.launch(AbstractTestExecutionService.java:615)
at
org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.execute(AbstractTestExecutionService.java:425)
at
org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
at
org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:140)
at
org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
at java.lang.Thread.run(Unknown Source)

BUILD FAILED
Re: NullPointerException when running more tests with tptp:execution ANT task [message #98604 is a reply to message #91987] Mon, 14 May 2007 12:14 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Karel,
This is a problem with not having any workbench properties for your
location. Can you try the latest release (4.3.1) to see if the problem has
since been resolved?

If not, please open a defect
( https://bugs.eclipse.org/bugs/enter_bug.cgi?classification=T PTP >> TPTP
Testing >> Test.Execution) with any relevant information including your
configuration and this stack trace?

Paul
"Karel Brezina" <karel.brezina@cloudsmith.com> wrote in message
news:eppksl$f7n$1@utils.eclipse.org...
> Hi,
>
> I have a problem (NPE) when running more tests with tptp:execution ANT
> task.
>
> ANT task:
> <tptp:execution deployment="runner/headlessDeployment.deploy"
> resultsrefid="tptp.test.results">
> <fileset dir="${project.dir}">
> <include name="**/*.testsuite"/>
> </fileset>
> </tptp:execution>
>
> I use Eclipse 3.2.1, TPTP 4.3.0, Java 1.5.0.
>
> Has anyone faced this problem? Have I missed something? Is there any
> workaround to avoid this? Can anyone help?
>
> Regards,
> Karel
>
>
> OUTPUT:
>
> test.execution:
> [echo] Executing test suite
> adding file src\tptp\demo\test\MathTestCase.testsuite
> adding file src\tptp\demo\test\extended\ExtendedMathTestCase.testsuite
> Test started!
> Test 'src\tptp\demo\test\MathTestCase.testsuite' executing
> Waiting....
> Collected results:
> 'org.eclipse.hyades.models.common.testprofile.impl.TPFExecut ionResultImpl @1493995
> (eProxyURI:
>
> platform:/resource/tptp.demo.test/MathTestCase_1170231666375 .execution#D382C493A8652AC283932A50ADD911DB)'
> Test 'src\tptp\demo\test\MathTestCase.testsuite' completed
> Test 'src\tptp\demo\test\extended\ExtendedMathTestCase.testsuite'
> executing
>
> java.lang.NullPointerException
> at
> org.eclipse.hyades.test.tools.core.internal.plugin.util.Work benchLocationUtil.getPropertyValue(WorkbenchLocationUtil.jav a:155)
> at
> org.eclipse.hyades.test.tools.core.internal.plugin.util.Work benchLocationUtil.getUseDefaultPlugins(WorkbenchLocationUtil .java:325)
> at
> org.eclipse.hyades.test.tools.core.internal.plugin.util.Work benchLocationUtil.getExternalPlugins(WorkbenchLocationUtil.j ava:313)
> at
>
> org.eclipse.hyades.test.tools.core.internal.plugin.harness.W orkbenchExecutionDeploymentAdapter.collectTestSuiteFiles(Wor kbenchExecutionDeployment
>
> Adapter.java:173)
> at
> org.eclipse.hyades.execution.harness.JavaExecutionDeployment Adapter.collectDeployableArtifacts(JavaExecutionDeploymentAd apter.java:324)
> at
> org.eclipse.hyades.execution.harness.JavaExecutionDeployment Adapter.collectDeployableFiles(JavaExecutionDeploymentAdapte r.java:240)
> at
>
> org.eclipse.hyades.test.tools.core.internal.plugin.harness.W orkbenchExecutionDeploymentAdapter.collectDeployableFiles(Wo rkbenchExecutionDeploymen
>
> tAdapter.java:110)
> at
> org.eclipse.hyades.execution.harness.JavaExecutionDeployment Adapter.deployTestAssets(JavaExecutionDeploymentAdapter.java :468)
> at
>
> org.eclipse.hyades.test.tools.core.internal.plugin.harness.W orkbenchExecutionDeploymentAdapter.deployTestAssets(Workbenc hExecutionDeploymentAdapt
>
> er.java:106)
> at
> org.eclipse.hyades.execution.harness.util.ExecutionAdapterUt ilities.adaptExecutionDeployment(ExecutionAdapterUtilities.j ava:159)
> at
> org.eclipse.hyades.execution.harness.TestExecutionHarness.la unchTestExecution(TestExecutionHarness.java:1973)
> at
> org.eclipse.hyades.execution.harness.TestExecutionHarness.ac cess$3(TestExecutionHarness.java:1817)
> at
> org.eclipse.hyades.execution.harness.TestExecutionHarness$2. run(TestExecutionHarness.java:741)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
> org.eclipse.core.runtime.CoreException: IWAT4039E The Test Execution
> Harness reported the following problems:java.lang.NullPointerException
> at
> org.eclipse.hyades.test.core.launch.delegates.AbstractLaunch ConfigurationDelegate2.launch(AbstractLaunchConfigurationDel egate2.java:197)
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:639)
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:565)
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:558)
> at
> org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.launch(AbstractTestExecutionService.java:615)
> at
> org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.execute(AbstractTestExecutionService.java:425)
> at
> org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
> at
> org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:140)
> at
> org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
> at java.lang.Thread.run(Unknown Source)
>
> BUILD FAILED
>
Previous Topic:Assertion during testing on Linux
Next Topic:how do I access data sent to an agent written in c++/java?
Goto Forum:
  


Current Time: Wed Apr 24 23:05:31 GMT 2024

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

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

Back to the top