Skip to main content


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: mlafon.arcadsoftware.removethis.com

Hi,

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

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 :

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

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)
at
org.eclipse.tptp.platform.execution.datacollection.BaseAgent . <clinit>(BaseAgent.java:98)
org.eclipse.tptp.platform.execution.exceptions.NativeLibrary NotFound: Error:
The native library not found.
at
org.eclipse.tptp.platform.execution.datacollection.BaseAgent .init(BaseAgent.java:161)
at
org.eclipse.tptp.platform.execution.samples.TPTPJavaAgent.<init >(TPTPJavaAgent.java:54)
at
org.eclipse.tptp.platform.execution.samples.TPTPJavaAgent.ma in(TPTPJavaAgent.java:63)
Exception in thread "main" java.lang.UnsatisfiedLinkError:
org.eclipse.tptp.platform.execution.datacollection.BaseAgent .register0(Ljava/lang/String;)I
at
org.eclipse.tptp.platform.execution.datacollection.BaseAgent .register0(Native
Method)
at
org.eclipse.tptp.platform.execution.datacollection.BaseAgent .register
(BaseAgent.java:202)
at
org.eclipse.tptp.platform.execution.samples.TPTPJavaAgent.ma in(TPTPJa


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

Does someone have any idea on what I am missing ?


Thanks in advance,

Marc.
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: mlafon.arcadsoftware.removethis.com

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: mlafon.arcadsoftware.removethis.com

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 !

Marc.
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: mlafon.arcadsoftware.removethis.com

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 ?


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


Current Time: Fri Mar 29 12:54:28 GMT 2024

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

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

Back to the top