Menu

Problems with a standalone application

Daphna
2007-10-16
2013-04-10
  • Daphna

    Daphna - 2007-10-16

    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

     
    • Wei Jiang

      Wei Jiang - 2007-10-16

      LimpidLog works for some java classes, not others, like stated in the Known Issue section.

      Wait for the next release. Estimated time: two weeks.

       
    • Wei Jiang

      Wei Jiang - 2007-12-11

      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.

       
    • Daniel McBrearty

      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.

       
      • Wei Jiang

        Wei Jiang - 2009-02-13

        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.

         
    • Daniel McBrearty

      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.

       

Log in to post a comment.