Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » [AC] JavaTimeCollector
[AC] JavaTimeCollector [message #115676] Tue, 16 October 2007 19:28 Go to next message
Eclipse UserFriend
Originally posted by:


I'm playing with the AC (stand alone, latest version under
windows XP (sp2) with java 1.6, and trying to get the JavaTimeCollector

I use a modified version of SampleClientAC for client (just change
"TimeColelctor" to "JavaTimeCollector" in agent name).

I have changed the agent.xml to this :

<Application executable="java.exe">
<Parameter value=" -Djava.library.path=." />
<Parameter value=" -classpath tptpcore.jar" />
<Parameter value="
org.eclipse.tptp.platform.execution.samples.TPTPJavaAgent"/ >

The client can not access to the agent (ACServer is running), in the
servicelog.log there is a "processExitedEvent was received for which we
have nio corresponding agent."

If i try to run the agent form commandline like that :

java.exe -Djava.library.path=c:\tptp\bin -cp
"...;c:\tptp\bin\tptpcore.jar" org...TPTPJavaAgent

A get something about UnsatisfiedLinkError exception :

java.lang.UnsatisfiedLinkError: C:\tptp\bin\javaBaseAgent.dll: Le
systÞme d'exploitation ne peut pas exÚcuter %1
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
org.eclipse.tptp.platform.execution.datacollection.BaseAgent . <clinit>(
org.eclipse.tptp.platform.execution.exceptions.NativeLibrary NotFound: Error:
The native library not found.
org.eclipse.tptp.platform.execution.datacollection.BaseAgent .init(
org.eclipse.tptp.platform.execution.samples.TPTPJavaAgent.<init >(
at in(
Exception in thread "main" java.lang.UnsatisfiedLinkError:
org.eclipse.tptp.platform.execution.datacollection.BaseAgent .register0(Ljava/lang/String;)I
org.eclipse.tptp.platform.execution.datacollection.BaseAgent .register0(Native
org.eclipse.tptp.platform.execution.datacollection.BaseAgent .register
at in(TPTPJa

I checked, the C:\tptp\bin\javaBaseAgent.dll exist !

Does someone have any idea on what I am missing ?

Thanks in advance,

Re: [AC] JavaTimeCollector [message #115687 is a reply to message #115676] Wed, 17 October 2007 07:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by:

If I launch the AC and the agent with a JDK 1.5a get the same stack
trace,but a get also a error message in a popup about, original message
is in french ;) : The ordinal 48 can not be found in the library
hcclsm.dll !

It sound like there is some troubles between javaBaseAgent.dll and
hcclsm.dll ?
Re: [AC] JavaTimeCollector [message #115713 is a reply to message #115687] Wed, 17 October 2007 11:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by:

Ok, I did it ! I'm going to kick myself...

This is due to Ibm RAD studio, witch bring an previous version of TPTP,
and install the DLLs in system32 dir. Even if I remove this directory
from PATH it seems that Java is using it to load DLL ! even if the DLLs
are in the current directory... strange !

Re: [AC] JavaTimeCollector [message #115971 is a reply to message #115713] Thu, 18 October 2007 10:29 Go to previous message
Eclipse UserFriend
Originally posted by:

In fact, the problem come from the alias to the java.exe command, this
command is started in the SYS_TEMP_DIR, and not in the bin directory of
TPTP. This way, if java search the dll in the java.library.path, the DLL
itself look in the local directory (temp) and in the system directory
and in the path.

This should be corrected if the java command was launched in the bin
directory of tptp ! Is there any particular reason to start java in the
Temp directory ?

Previous Topic:rule sets for static analysis
Next Topic:Problem with ModifierRuleFilter and Interfaces
Goto Forum:

Current Time: Tue Jan 17 07:16:09 GMT 2017

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

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