JBoss Community

Re: JBoss Profiler Quick Start

created by cooldownthethroat in JBoss Profiler Development - View the full discussion

I am trying to run JBOSS Profiler in JBOSS 5.0 and following steps which are mentioned in the userguide.

 

My HTTP port for my web application is 8080.

When I configure the same port in Jboss-profiler.properties file even after that during startup I see

JBoss Profiler: Communicator for JBoss Profiler 2.0.0.Beta5

JBoss Profiler: Socket=IP:5400 (say IP is 10.10.10.10)

 

Now, the server starts up pretty well and when I open JMX console I can see the Mbean also for both communicator and profiler.

 

However when I try to access http://10.10.10.10:8080/jboss-profiler I get no page found error

 

and when I try to access http://10.10.10.10:5400/jboss-profiler I get the following error:-

 

java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

        at org.jboss.remoting.transport.socket.ServerThread.createServerSocketWrapper(ServerThread.java:907)

        at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:489)

        at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:230)

Caused by: java.io.StreamCorruptedException: invalid stream header: 47455420

        at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:782)

        at java.io.ObjectInputStream.<init>(ObjectInputStream.java:279)

        at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.<init>(ObjectInputStreamWithClassLoader.java:97)

        at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.createInput(JavaSerializationManager.java:54)

        at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.getMarshallingStream(SerializableUnMarshaller.java:7

        at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.getMarshallingStream(SerializableUnMarshaller.java:5

        at org.jboss.remoting.transport.socket.ClientSocketWrapper.createInputStream(ClientSocketWrapper.java:179)

        at org.jboss.remoting.transport.socket.ClientSocketWrapper.createStreams(ClientSocketWrapper.java:162)

        at org.jboss.remoting.transport.socket.ClientSocketWrapper.<init>(ClientSocketWrapper.java:66)

        at org.jboss.remoting.transport.socket.ServerSocketWrapper.<init>(ServerSocketWrapper.java:46)

        ... 7 more

 

Can anyone please guide me how to run it properly....

 

Steps followed to configure Profiler:-

Copy jboss-profiler.jar to jbossas/bin

• Copy jboss-profiler.properties to jbossas/bin

• Edit jboss-profiler.properties in jbossas/bin to include the classes to be profiled

• Copy jboss-profiler-plugins.jar to jbossas/bin

• Edit run.bat (Windows) in jbossas/bin to include JBoss Profiler in JAVA_OPTS

• Copy jboss-profiler.sar to jbossas/server/<conf>/deploy

• Boot application server

Reply to this message by going to Community

Start a new discussion in JBoss Profiler Development at Community