JBoss Community

Re: problem after installation

created by Saad Khawaja in JBoss Profiler Development - View the full discussion

Here is what I did with 2.0 beta 5

 

Step 1. Attach jboss profiler to test program. Execute the client snapshot command and got the following error in the output of the test program.

Exception in thread "WorkerThread#0[127.0.0.1:4024]" java.lang.NoClassDefFoundError: org/jboss/serial/io/JBossObjectInputStream
    at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:398)
    at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:173)

 

The client program kept running after the exception, i killed after 30 seconds.

 

Step 2. Looks like i did not have the jboss-serialization jar so I wrote a test with the following code.

Class.forName("org.jboss.serial.io.JBossObjectInputStream");

Got the same exception

 

Then I included the following jar from $Jboss6Home\client\jboss-serialization.jar and ran the test again and got the following exception

 

java.lang.NoClassDefFoundError: gnu/trove/TObjectHashingStrategy
    at org.jboss.serial.io.JBossObjectInputStream.<clinit>(JBossObjectInputStream.java:56)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    at com.org.domain.JbossProfilerTest.testname(JbossProfilerTest.java:9)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
    at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
    at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
    at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
    at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
    at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
    at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
    at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
    at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
    at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

 

 

Step 3. I found the trove jar at $Jboss6Home\client\trove.jar again ran the test in step 2 and it ran successfully.

 

So I decided to run step 1 again but again i got the same behviour(execption and client not closing).  All jars from the profiler zip are also included in the classpath of the test program.

 

Here is the

=== jboss-profiler.properties ===

enable=yes
precompiled=no
cpu=yes
memory=yes
includes=org.jboss.profiler.*,com.org.domain.*
excludes=*
visibility=private
save=yes
savelocation=store
startup=yes
repository=no
remote=yes
store=file
location=store
host=localhost
port=5400
ejb=no
servlet=no
jsf=no
jmx=no
rmi=no
corba=no

 

Here is the

=== jboss-profiler-client.properties ===

protocol=socket
host=localhost
port=5400
threshold=1.0
savelocation=.

 

let me know if there is anything else you would like me to try.

Thanks.

Reply to this message by going to Community

Start a new discussion in JBoss Profiler Development at Community