Hi,
We have tried running LimpidLog on a simple java program:
java -javaagent:C:\LimpidLog\limpidlog200.jar=port=9876 <classX>
and registered the <classX> using the GUI Management tool.
We have encountered 2 problems :
1. Sometimes we could only register interfaces, and not classes.
2. Where can we see the printouts? we've tried both file + console keywords, without any success.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
daniel@kinkyboots:~/tmp/java$ java --version
java version "1.5.0"
gij (GNU libgcj) version 4.3.1 20080309 (prerelease)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
</SNIP>
when I try to run the GUI component in another terminal, I just get a window that just says 'connect'. Ihave tried various combinations of port, file, arguments, but I never see any log files. Also I tried creating a limpidlog.applicants file with just one line 'TestClass'.
If I could get this to work it would be VERY useful.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
We have tried running LimpidLog on a simple java program:
java -javaagent:C:\LimpidLog\limpidlog200.jar=port=9876 <classX>
and registered the <classX> using the GUI Management tool.
We have encountered 2 problems :
1. Sometimes we could only register interfaces, and not classes.
2. Where can we see the printouts? we've tried both file + console keywords, without any success.
Thanks
LimpidLog works for some java classes, not others, like stated in the Known Issue section.
Wait for the next release. Estimated time: two weeks.
Please try new release 400b.
If you still get the errors, please send following files to us at http://www.acelet.com/company/contact.php.
1. The source code of the java file.
2. The class file (.class file)
3. All class files (.class files) which are needed by the class.
Thank you.
erm, it is not possible to attach class files via a web form!
I have the same problem:
<SNIP>
daniel@kinkyboots:~/tmp/java$ ls
limpidlog410.jar src TestApp.class TestApp.java
daniel@kinkyboots:~/tmp/java$ cat TestApp.java
class TestApp {
private static Integer i;
public static void main(String[] args) {
i = 0;
while( true ) {
burp();
i++;
}
}
private static void burp() {
System.out.println(Integer.toString(i));
pause();
}
public static void pause (){
long t0,t1;
t0=System.currentTimeMillis();
do{
t1=System.currentTimeMillis();
}
while (t1-t0<1000);
}
}
daniel@kinkyboots:~/tmp/java$ java -javaagent:limpidlog410.jar TestApp
0
1
2
daniel@kinkyboots:~/tmp/java$ java --version
java version "1.5.0"
gij (GNU libgcj) version 4.3.1 20080309 (prerelease)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
</SNIP>
when I try to run the GUI component in another terminal, I just get a window that just says 'connect'. Ihave tried various combinations of port, file, arguments, but I never see any log files. Also I tried creating a limpidlog.applicants file with just one line 'TestClass'.
If I could get this to work it would be VERY useful.
Your java class is TestApp but you submitted "a limpidlog.applicants file with just one line 'TestClass'" not TestApp.
The log file should be on the working directory (where you gave -javaagent option).
See http://www.acelet.com/limpidlog/LimpidLog.html.
It is not the port, otherwise you would get error from connection.
It seems you use GNU java? Try the Java from Sun. I am not sure if this is the problem.
thank you WeiJang.
Indeed, the JDK version was the issue.
MyServer:~/dan_tmp # /usr/java/jdk1.5.0_11/bin/java -version
java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_11-b03, mixed mode)
MyServer:~/dan_tmp #
MyServer:~/dan_tmp # /usr/java/jdk1.5.0_11/bin/java -javaagent:limpidlog410.jar TestApp
LimpidLog 4.10 Bytecoder1. Acelet. GNU GENERAL PUBLIC LICENSE V2. ASM from ObjectWeb.
LimpidLog listening on port: 9876
ServerTalk.initSocket: serverSocket=ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=9876]
0
1
2
3
4
Now I will work further on this to see what I can do with it. But it looks very useful indeed.