Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » problem using TPTP in the standalone mode(could not find agent library piAgent)
problem using TPTP in the standalone mode [message #775879] Fri, 06 January 2012 21:22 Go to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 4
Registered: January 2010
Junior Member
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 #776147 is a reply to message #775879] Sat, 07 January 2012 16:25 Go to previous messageGo to next message
Torsten Stolpmann is currently offline Torsten StolpmannFriend
Messages: 37
Registered: July 2009
Member
Hi Anis,

did you have a look at http://www.eclipse.org/forums/index.php/mv/msg/43459/141532/#msg_141532?

Regarding your java version you should not use -XrunpiAgent at all, as it is targeted at Java 1.4.

Hope this helps,

Torsten


[Updated on: Sat, 07 January 2012 16:26]

Report message to a moderator

Re: problem using TPTP in the standalone mode [message #777607 is a reply to message #776147] Tue, 10 January 2012 20:00 Go to previous message
Missing name Missing name is currently offline Missing name Missing nameFriend
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

Previous Topic:TPTP for Indigo
Next Topic:Eclipse Java Testing Tools - JAVA SE and JSP
Goto Forum:
  


Current Time: Thu Apr 25 21:32:26 GMT 2024

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

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

Back to the top