problem using TPTP in the standalone mode [message #775879] |
Fri, 06 January 2012 16:22  |
Eclipse User |
|
|
|
Hi There,
I encountered a problem while trying to run TPTP Probekit in the standalone mode.
The following is an excerpt of the Ant script I am trying to run (from within eclipse):
<jvmarg value="-XrunpiAgent:server=standalone, mode=none,
extensionLibrary=ProbeAgentExtension.so,
ext-pk-BCILibraryName=BCIEngProbe.so,
ext-pk-probescript=enterExit.probescript"/>
The error I am getting is:
Error occurred during initialization of VM
Could not find agent library piAgent on the library path, with error: libpiAgent.so: cannot open shared object file: No such file or directory
Here are a few info about the config of my system:
OS: virtual Ubuntu 10.04 - 64 bit
Java: version "1.6.0_24", 64-Bit Server VM
Agent Controller package: agntctrl.linux_em64t-TPTP-4.7.2
I've tried different approaches with no luck! I'd really appreciate your help in resolving my issue.
Many Thanks,
Anis
|
|
|
|
Re: problem using TPTP in the standalone mode [message #777607 is a reply to message #776147] |
Tue, 10 January 2012 15:00  |
Eclipse User |
|
|
|
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 15:54] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03971 seconds