5 Replies Latest reply on Oct 17, 2008 6:07 AM by cytchiu

    problem with jboss profiler 2.0 beta 2 on jboss version 4.2.

    sairamvla

      Hi,

      I need urgent help. I downloaded jboss profiler 2.0 beta 2 from http://www.jboss.org/jbossprofiler/downloads/ and installed as per instructions:

      * 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.conf (Unix) or run.bat (Windows) in jbossas/bin to include JBoss Profiler in JAVA_OPTS
      * Copy jboss-profiler.sar to jbossas/server//deploy
      * Boot application server

      But when I am starting profiler with $JAVA_HOME/bin/java -jar jboss-profiler-client.jar startProfiler, I am getting issue. It is throwing exception:

      ERROR [org.jboss.profiler.client.cmd.Client] Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://localhost:5400/]
      org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://localhost:5400/]
      at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:530)
      at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
      at org.jboss.remoting.Client.invoke(Client.java:1550)
      at org.jboss.remoting.Client.invoke(Client.java:530)
      at org.jboss.remoting.Client.invoke(Client.java:518)
      at org.jboss.profiler.client.cmd.Client.main(Client.java:254)
      Caused by: java.net.ConnectException: Connection refused
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
      at java.net.Socket.connect(Socket.java:520)
      at org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket(SocketClientInvoker.java:187)
      at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:801)
      at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:526)
      ... 5 more

      In jmx-console I have following for Communicator Mbean:
      SocketPort int
      Socket boolean RW True
      Host java.lang.String R 0.0.0.0
      RmiPort int RW
      HttpPort int RW
      Http boolean RW True
      Rmi boolean RW True

      I started jboss with option -Djboss.bind.address=0.0.0.0. Is this causing issue? Please suggest how to fix it.

      Thanks in advance,


        • 1. Re: problem with jboss profiler 2.0 beta 2 on jboss version
          sairamvla

          Forgot to mention. I am using jboss 4.2.2.GA

          • 2. Re: problem with jboss profiler 2.0 beta 2 on jboss version
            sairamvla

            If I start profiler with $JAVA_HOME/bin/java -Djboss-profiler-client.properties=$JBOSS_HOME/bin/jboss-profiler-client.properties -jar jboss-profiler-client.jar startProfiler

            I am getting the following exception:

            [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] Received version 254: treating as end of file
            2008-08-20 12:23:07,946 INFO [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] Received version 254: treating as end of file
            2008-08-20 12:23:07,947 INFO [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] Received version 254: treating as end of file
            2008-08-20 12:23:07,948 ERROR [org.jboss.remoting.transport.socket.SocketClientInvoker] Got marshalling exception, exiting
            java.net.SocketException: end of file
            at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:580)
            at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
            at org.jboss.remoting.Client.invoke(Client.java:1550)
            at org.jboss.remoting.Client.invoke(Client.java:530)
            at org.jboss.remoting.Client.invoke(Client.java:518)
            at org.jboss.profiler.client.cmd.Client.main(Client.java:254)
            2008-08-20 12:23:07,949 ERROR [org.jboss.profiler.client.cmd.Client] Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
            java.net.SocketException: end of file
            java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
            java.net.SocketException: end of file
            at org.jboss.remoting.transport.socket.SocketClientInvoker.handleException(SocketClientInvoker.java:122)
            at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:654)
            at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
            at org.jboss.remoting.Client.invoke(Client.java:1550)
            at org.jboss.remoting.Client.invoke(Client.java:530)
            at org.jboss.remoting.Client.invoke(Client.java:518)
            at org.jboss.profiler.client.cmd.Client.main(Client.java:254)
            Caused by: java.net.SocketException: end of file
            at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:580)
            ... 5 more
            [kndev@appserver02dvhq /usr/local/jboss-4.2.2.GA/bin]$ ./startprofiler.sh
            2008-08-20 12:26:28,350 INFO [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] Received version 254: treating as end of file
            2008-08-20 12:26:28,353 INFO [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] Received version 254: treating as end of file
            2008-08-20 12:26:28,355 INFO [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] Received version 254: treating as end of file
            2008-08-20 12:26:28,356 ERROR [org.jboss.remoting.transport.socket.SocketClientInvoker] Got marshalling exception, exiting
            java.net.SocketException: end of file
            at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:580)
            at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
            at org.jboss.remoting.Client.invoke(Client.java:1550)
            at org.jboss.remoting.Client.invoke(Client.java:530)
            at org.jboss.remoting.Client.invoke(Client.java:518)
            at org.jboss.profiler.client.cmd.Client.main(Client.java:254)
            2008-08-20 12:26:28,357 ERROR [org.jboss.profiler.client.cmd.Client] Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
            java.net.SocketException: end of file
            java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
            java.net.SocketException: end of file
            at org.jboss.remoting.transport.socket.SocketClientInvoker.handleException(SocketClientInvoker.java:122)
            at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:654)
            at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
            at org.jboss.remoting.Client.invoke(Client.java:1550)
            at org.jboss.remoting.Client.invoke(Client.java:530)
            at org.jboss.remoting.Client.invoke(Client.java:518)
            at org.jboss.profiler.client.cmd.Client.main(Client.java:254)
            Caused by: java.net.SocketException: end of file
            at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:580)
            ... 5 more
            [kndev@appserver02dvhq /usr/local/jboss-4.2.2.GA/bin]$ ./startprofiler.sh
            2008-08-20 12:27:08,967 INFO [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] Received version 254: treating as end of file
            2008-08-20 12:27:08,970 INFO [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] Received version 254: treating as end of file
            2008-08-20 12:27:08,971 INFO [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] Received version 254: treating as end of file
            2008-08-20 12:27:08,972 ERROR [org.jboss.remoting.transport.socket.SocketClientInvoker] Got marshalling exception, exiting
            java.net.SocketException: end of file
            at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:580)
            at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
            at org.jboss.remoting.Client.invoke(Client.java:1550)
            at org.jboss.remoting.Client.invoke(Client.java:530)
            at org.jboss.remoting.Client.invoke(Client.java:518)
            at org.jboss.profiler.client.cmd.Client.main(Client.java:254)
            2008-08-20 12:27:08,973 ERROR [org.jboss.profiler.client.cmd.Client] Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
            java.net.SocketException: end of file
            java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
            java.net.SocketException: end of file
            at org.jboss.remoting.transport.socket.SocketClientInvoker.handleException(SocketClientInvoker.java:122)
            at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:654)
            at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
            at org.jboss.remoting.Client.invoke(Client.java:1550)
            at org.jboss.remoting.Client.invoke(Client.java:530)
            at org.jboss.remoting.Client.invoke(Client.java:518)
            at org.jboss.profiler.client.cmd.Client.main(Client.java:254)
            Caused by: java.net.SocketException: end of file
            at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:580)
            ... 5 more
            [kndev@appserver02dvhq /usr/local/jboss-4.2.2.GA/bin]$ ./startprofiler.sh
            2008-08-20 12:29:24,931 ERROR [org.jboss.profiler.client.cmd.Client] Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://localhost:5400/]
            org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://localhost:5400/]
            at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:530)
            at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
            at org.jboss.remoting.Client.invoke(Client.java:1550)
            at org.jboss.remoting.Client.invoke(Client.java:530)
            at org.jboss.remoting.Client.invoke(Client.java:518)
            at org.jboss.profiler.client.cmd.Client.main(Client.java:254)
            Caused by: java.net.ConnectException: Connection refused
            at java.net.PlainSocketImpl.socketConnect(Native Method)
            at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
            at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
            at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
            at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
            at java.net.Socket.connect(Socket.java:520)
            at org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket(SocketClientInvoker.java:187)
            at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:801)
            at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:526)
            ... 5 more
            [kndev@appserver02dvhq /usr/local/jboss-4.2.2.GA/bin]$ ./startprofiler.sh
            2008-08-20 12:31:55,331 INFO [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] Received version 254: treating as end of file
            2008-08-20 12:31:55,334 INFO [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] Received version 254: treating as end of file
            2008-08-20 12:31:55,335 INFO [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] Received version 254: treating as end of file
            2008-08-20 12:31:55,336 ERROR [org.jboss.remoting.transport.socket.SocketClientInvoker] Got marshalling exception, exiting
            java.net.SocketException: end of file
            at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:580)
            at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
            at org.jboss.remoting.Client.invoke(Client.java:1550)
            at org.jboss.remoting.Client.invoke(Client.java:530)
            at org.jboss.remoting.Client.invoke(Client.java:518)
            at org.jboss.profiler.client.cmd.Client.main(Client.java:254)
            2008-08-20 12:31:55,337 ERROR [org.jboss.profiler.client.cmd.Client] Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
            java.net.SocketException: end of file
            java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
            java.net.SocketException: end of file
            at org.jboss.remoting.transport.socket.SocketClientInvoker.handleException(SocketClientInvoker.java:122)
            at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:654)
            at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
            at org.jboss.remoting.Client.invoke(Client.java:1550)
            at org.jboss.remoting.Client.invoke(Client.java:530)
            at org.jboss.remoting.Client.invoke(Client.java:518)
            at org.jboss.profiler.client.cmd.Client.main(Client.java:254)
            Caused by: java.net.SocketException: end of file
            at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:580)
            ... 5 more
            [

            • 3. Re: problem with jboss profiler 2.0 beta 2 on jboss version
              sairamvla

              appreciate your help.

              • 4. Re: problem with jboss profiler 2.0 beta 2 on jboss version

                Please find your localhost's address and bind that when JBoss starts up.
                In you run in Linux, you can find the address by command:
                hostname -i

                • 5. Re: problem with jboss profiler 2.0 beta 2 on jboss version

                   

                  "sairamvla" wrote:
                  appreciate your help.


                  Can you solve the problem? I have the same exception. Thanks.