<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: problem after installation
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/saad.i.khawaja">Saad Khawaja</a> in <i>JBoss Profiler Development</i> - <a href="http://community.jboss.org/message/566109#566109">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Here is what I did with 2.0 beta 5</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>Step 1</strong>. Attach jboss profiler to test program. Execute the client snapshot command and got the following error in the output of the test program.</p><p>Exception in thread "WorkerThread#0[127.0.0.1:4024]" java.lang.NoClassDefFoundError: org/jboss/serial/io/JBossObjectInputStream<br/>&#160;&#160;&#160; at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:398)<br/>&#160;&#160;&#160; at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:173)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The client program kept running after the exception, i killed after 30 seconds.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>Step 2</strong>. Looks like i did not have the jboss-serialization jar so I wrote a test with the following code.</p><p>Class.forName("org.jboss.serial.io.JBossObjectInputStream");</p><p>Got the same exception</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Then I included the following jar from $Jboss6Home\client\jboss-serialization.jar and ran the test again and got the following exception</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>java.lang.NoClassDefFoundError: gnu/trove/TObjectHashingStrategy<br/>&#160;&#160;&#160; at org.jboss.serial.io.JBossObjectInputStream.&lt;clinit&gt;(JBossObjectInputStream.java:56)<br/>&#160;&#160;&#160; at java.lang.Class.forName0(Native Method)<br/>&#160;&#160;&#160; at java.lang.Class.forName(Class.java:164)<br/>&#160;&#160;&#160; at com.org.domain.JbossProfilerTest.testname(JbossProfilerTest.java:9)<br/>&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br/>&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br/>&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br/>&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Method.java:585)<br/>&#160;&#160;&#160; at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)<br/>&#160;&#160;&#160; at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)<br/>&#160;&#160;&#160; at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)<br/>&#160;&#160;&#160; at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)<br/>&#160;&#160;&#160; at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)<br/>&#160;&#160;&#160; at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)<br/>&#160;&#160;&#160; at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)<br/>&#160;&#160;&#160; at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)<br/>&#160;&#160;&#160; at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)<br/>&#160;&#160;&#160; at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)<br/>&#160;&#160;&#160; at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)<br/>&#160;&#160;&#160; at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)<br/>&#160;&#160;&#160; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)<br/>&#160;&#160;&#160; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)<br/>&#160;&#160;&#160; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)<br/>&#160;&#160;&#160; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>Step 3</strong>. I found the trove jar at $Jboss6Home\client\trove.jar again ran the test in step 2 and it ran successfully.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>So I decided to run step 1 again but again i got the same behviour(execption and client not closing).&#160; All jars from the profiler zip are also included in the classpath of the test program.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Here is the</p><p>=== jboss-profiler.properties ===</p><p>enable=yes<br/>precompiled=no<br/>cpu=yes<br/>memory=yes<br/>includes=org.jboss.profiler.*,com.org.domain.*<br/>excludes=*<br/>visibility=private<br/>save=yes<br/>savelocation=store<br/>startup=yes<br/>repository=no<br/>remote=yes<br/>store=file<br/>location=store<br/>host=localhost<br/>port=5400<br/>ejb=no<br/>servlet=no<br/>jsf=no<br/>jmx=no<br/>rmi=no<br/>corba=no</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Here is the</p><p>=== jboss-profiler-client.properties ===</p><p>protocol=socket<br/>host=localhost<br/>port=5400<br/>threshold=1.0<br/>savelocation=.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>let me know if there is anything else you would like me to try.</p><p>Thanks.</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/566109#566109">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Profiler Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2138">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>