|
|
Re: problem using TPTP in the standalone mode [message #777607 is a reply to message #776147] |
Tue, 10 January 2012 20:00 |
Missing name Missing name Messages: 4 Registered: January 2010 |
Junior Member |
|
|
Thanks Torsten!
You're right. I changed my ant command to the following:
<jvmarg value='-agentlib:JPIBootLoader=JPIAgent:server=standalone;ProbekitAgent:ext-pk-BCILibraryName=BCIEngProbe,ext-pk-probescript=/home/anis/anis/eclipse-workspace/core/target/classes/main/enterExit.probescript'/>
But I am getting the following error:
[junit] Exception in thread "main" java.lang.NoClassDefFoundError: enterExit_probe$Probe_0
[junit] at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl.<init>(DocumentBuilderFactoryImpl.java)
[junit] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[junit] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[junit] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[junit] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
[junit] at java.lang.Class.newInstance0(Class.java:355)
[junit] at java.lang.Class.newInstance(Class.java:308)
[junit] at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:147)
[junit] at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:233)
[junit] at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:123)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.getDocumentBuilder(XMLJUnitResultFormatter.java:60)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.startTestSuite(XMLJUnitResultFormatter.java:115)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireStartTestSuite(JUnitTestRunner.java:612)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:408)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
[junit] Running quickfix.test.acceptance.resynch.ResynchTest
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
[junit] Test quickfix.test.acceptance.resynch.ResynchTest FAILED (crashed)
[junit] Running quickfix.test.acceptance.timer.TimerTest
[junit] Exception in thread "main" java.lang.NoClassDefFoundError: enterExit_probe$Probe_0
[junit] at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl.<init>(DocumentBuilderFactoryImpl.java)
[junit] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[junit] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[junit] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[junit] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
[junit] at java.lang.Class.newInstance0(Class.java:355)
[junit] at java.lang.Class.newInstance(Class.java:308)
[junit] at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:147)
[junit] at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:233)
[junit] at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:123)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.getDocumentBuilder(XMLJUnitResultFormatter.java:60)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.startTestSuite(XMLJUnitResultFormatter.java:115)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireStartTestSuite(JUnitTestRunner.java:612)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:408)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
[junit] Running quickfix.test.acceptance.timer.TimerTest
Although I am able to probe a HelloWorld program from command line, using:
java '-agentlib:JPIBootLoader=JPIAgent:server=standalone;ProbekitAgent:ext-pk-BCILibraryName=BCIEngProbe,ext-pk-probescript=/home/anis/anis/eclipse-workspace/core/target/classes/main/enterExit.probescript' Hello
I have set the following environment variables in ~/.bashrc and Ant properties as well as have passed them to JVM through <env> command in my ant script:
CLASSPATH = /home/anis/anis/eclipse-workspace/core/target/classes/main/
(which holds both class Hello and the Probescript files)
TPTP_AC_HOME = /home/anis/anis/Installations/agntctrl.linux_em64t-TPTP-4.7.2
JAVA_PROFILER_HOME = /home/anis/anis/Installations/agntctrl.linux_em64t-TPTP-4.7.2/plugins/org.eclipse.tptp.javaprofiler
PROBEKIT_HOME = /home/anis/anis/Installations/agntctrl.linux_em64t-TPTP-4.7.2/plugins/org.eclipse.hyades.probekit
LD_LIBRARY_PATH = /home/anis/anis/Installations/agntctrl.linux_em64t-TPTP-4.7.2/bin/:/home/anis/anis/Installations/agntctrl.linux_em64t-TPTP-4.7.2/lib/:/home/anis/anis/Installations/agntctrl.linux_em64t-TPTP-4.7.2/plugins/org.eclipse.tptp.javaprofiler:/home/anis/anis/Installations/agntctrl.linux_em64t-TPTP-4.7.2/plugins/org.eclipse.hyades.probekit:/home/anis/anis/Installations/agntctrl.linux_em64t-TPTP-4.7.2/plugins/org.eclipse.hyades.probekit/lib/
Any ideas?
Thanks,
Anis
[Updated on: Wed, 11 January 2012 20:54] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04409 seconds