Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Re: Problem with running JUnit plugin test under ant

Hello,
I fixed prev. problem with new deploy file, but now I recieve new strange error:

[tptp:test] Test started!
[tptp:test] Test 'tp/tp_test.launch' executing
[tptp:test] Exception in thread
"org.eclipse.hyades.execution.core.task.ReusableThread@8ef177"
java.lang.NullPointerException
[tptp:test]     at
org.eclipse.hyades.execution.local.util.AgentControllerDescriptor.versionIsAtLeast(AgentControllerDescriptor.java:67)
[tptp:test]     at
org.eclipse.hyades.execution.local.util.AgentControllerDescriptor.isVersionAtLeast(AgentControllerDescriptor.java:194)
[tptp:test]     at
org.eclipse.hyades.execution.local.file.FileManagerFactory$3.run(FileManagerFactory.java:413)
[tptp:test]     at
org.eclipse.hyades.execution.core.task.ReusableThread.run(ReusableThread.java:131)
[tptp:test]     at java.lang.Thread.run(Thread.java:595)

I debug client and see that he sends request to the agent controller
for version, but return value is null (in the client side). Also I
check eclipse/plugins/org.eclipse.hyades.execution_4.4.100.v200802221314/config/pluginconfig.xml
and saw that version exist :
<Option name="org.eclipse.hyades.execution" type="version"
value="4.4.100.v200802221314"/>

When I try to set manually version in the debugger, there is no
furture error, but test is hangs up and no log anymore!

When I start ACServer with -v argument I recieved 4.4.1.0 version.

Is there a way to debug ACServer?





On Fri, Mar 7, 2008 at 10:58 PM, Krasimir Kostadinov
<krasimir.k@xxxxxxxxx> wrote:
> Hello,
>
>   I tried to execute JUnit plugin test under Ant but
>  org.eclipse.hyades.internal.execution.local.control.InactiveProcessException
>   occured.
>   The same test is executed without problems inside Eclipse workbench.
>   I use KUbuntu 7.04, tptp.runtime.allInOne.linux.gtk.x86-TPTP-4.4.1,
>  wizard based rcp application from eclipse, ant 1.6.5. I can start
>  Agent controller without problems and test it. If you need traces from
>  servicelog file with "INFORMATION" trace level I can provide.
>
>   I read a lot of topics in cdt-dev mail list about running tptp under
>  ant, tried to debug to find  out how test.xml should be written, but
>  at the end I can not resolve the problem with this exception.
>  Can somebody to help me?
>
>   I receive following stack trace exception during running test case under ant:
>
>   [tptp:test] Test started!
>   [tptp:test] Test 'tp/tp_test.launch' executing
>   [tptp:test] org.eclipse.hyades.internal.execution.local.control.InactiveProcessException
>   [tptp:test]     at
>   org.eclipse.hyades.execution.harness.TestExecutionHarnessExecutorStub.launch(TestExecutionHarnessExecutorStub.java:422)
>   [tptp:test]     at
>   org.eclipse.hyades.execution.harness.TestExecutionHarness.launchTestExecution(TestExecutionHarness.java:2098)
>   [tptp:test]     at
>   org.eclipse.hyades.execution.harness.TestExecutionHarness.access$2(TestExecutionHarness.java:1830)
>   [tptp:test]     at
>   org.eclipse.hyades.execution.harness.TestExecutionHarness$2.run(TestExecutionHarness.java:750)
>   [tptp:test]     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>   [tptp:test] java.lang.RuntimeException:
>   org.eclipse.hyades.internal.execution.local.control.InactiveProcessException
>   [tptp:test]     at
>   org.eclipse.hyades.execution.harness.TestExecutionHarnessExecutorStub.handleException(TestExecutionHarnessExecutorStub.java:347)
>   [tptp:test]     at
>   org.eclipse.hyades.execution.harness.TestExecutionHarnessExecutorStub.launch(TestExecutionHarnessExecutorStub.java:434)
>   [tptp:test]     at
>   org.eclipse.hyades.execution.harness.TestExecutionHarness.launchTestExecution(TestExecutionHarness.java:2098)
>   [tptp:test]     at
>   org.eclipse.hyades.execution.harness.TestExecutionHarness.access$2(TestExecutionHarness.java:1830)
>   [tptp:test]     at
>   org.eclipse.hyades.execution.harness.TestExecutionHarness$2.run(TestExecutionHarness.java:750)
>   [tptp:test]     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>   [tptp:test] Caused by:
>   org.eclipse.hyades.internal.execution.local.control.InactiveProcessException
>   [tptp:test]     at
>   org.eclipse.hyades.execution.harness.TestExecutionHarnessExecutorStub.launch(TestExecutionHarnessExecutorStub.java:422)
>   [tptp:test]     ... 4 more
>   [tptp:test] org.eclipse.core.runtime.CoreException: IWAT4039E The Test
>   Execution Harness reported the following
>   problems:org.eclipse.hyades.internal.execution.local.control.InactiveProcessException
>   [tptp:test]     at
>   org.eclipse.hyades.test.core.launch.delegates.AbstractLaunchConfigurationDelegate2.launch(AbstractLaunchConfigurationDelegate2.java:195)
>   [tptp:test]     at
>   org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:759)
>   [tptp:test]     at
>   org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:608)
>   [tptp:test]     at
>   org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:601)
>   [tptp:test]     at
>   org.eclipse.hyades.test.core.services.AbstractTestExecutionService.launch(AbstractTestExecutionService.java:795)
>   [tptp:test]     at
>   org.eclipse.hyades.test.core.services.AbstractTestExecutionService.execute(AbstractTestExecutionService.java:583)
>   [tptp:test]     at
>   org.eclipse.hyades.automation.server.AbstractService.execute(AbstractService.java:43)
>   [tptp:test]     at
>   org.eclipse.hyades.automation.server.ServiceProxy$1.run(ServiceProxy.java:141)
>   [tptp:test]     at
>   org.eclipse.hyades.automation.core.utils.ReusableThread.run(ReusableThread.java:131)
>   [tptp:test]     at java.lang.Thread.run(Thread.java:595)
>
>   test.xml is :
>
>   <project name="TPTP Ant Tasks Test Script"
>   default="test"
>   xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant">
>
>         <!--
>         vmargs="-Xdebug -Xnoagent -Djava.compiler=NONE
>   -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8008"
>         <fileset dir="${project.dir}">
>         <include name="**/*.testsuite"/>
>         </fileset>
>         -->
>
>         <target name="test" description="Executes TPTP Test Suites
>   using default TPTP Ant Tasks">
>
>         <taskdef uri="antlib:org.eclipse.hyades.automation.client.adapters.ant"
>
>   resource="org/eclipse/hyades/automation/client/adapters/ant/antlib.xml"
>                     classpath="/home/knk/tmp/tp/tp/ant-tptp.jar"/>
>
>         <property name="tptp.automation.eclipse"
>   value="/home/knk/tmp/host_eclipse"/>
>         <property name="tptp.test.workspace" value="/home/knk/tmp/tp"/>
>         <property name="tptp.test.connection"
>   value="tptp:rac://localhost:10002/default"/>
>         <property name="tptp.test.configuration" value="tp/tp_test.launch"/>
>         <property name="tptp.test.deployment" value="tp.deploy"/>
>         <property name="project.dir" value="${tptp.test.workspace}/tp"/>
>
>    <tptp:test
>         synchronicity="synchronous">
>    </tptp:test>
>
>   </target>
>   </project>
>
>   Configuration file (launch) is:
>
>   <?xml version="1.0" encoding="UTF-8"?>
>   <launchConfiguration type="org.eclipse.hyades.test.ui.launch.basicTest">
>   <stringAttribute
>  key="org.eclipse.hyades.test.ui.launch.deploymentURI"
>  value="platform:/resource/tp/tp.deploy"/>
>   <stringAttribute
>  key="org.eclipse.hyades.test.ui.launch.deploymentURIFragment"
>  value="E81FB3BEAFD19966A713AEA0E46F11DC"/>
>   <stringAttribute key="org.eclipse.hyades.test.ui.launch.testURI"
>  value="platform:/resource/tp/src/tp/tp.testsuite"/>
>   <stringAttribute
>  key="org.eclipse.hyades.test.ui.launch.testURIFragment"
>  value="D24AE79BB247E110FBCF76F0E44B11DC"/>
>   <booleanAttribute key="org.eclipse.hyades.test.ui.launch.useDefaults"
>  value="true"/>
>   <stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER"
>  value="org.eclipse.hyades.test.core.testSourcePathProvider"/>
>   </launchConfiguration>
>
>   I attach the workspace with dummy rcp application.
>
>   Regards
>   Krasi
>



-- 
Best Regards,
Krasimir Kostadinov

Contact info:
ICQ 32223324
mobile:
+359 897 403 649


Back to the top