users@glassfish.java.net

Re: Jconsole error continues

From: kedar <Kedar.Mhaswade_at_Sun.COM>
Date: Tue, 20 Feb 2007 21:46:51 -0800

Can you send the domain.xml along?
Have you set -Djava.rmi properties by any chance?

Kenneth Clark wrote:
> Here is the stack trace again
> java.rmi.ConnectException: Connection refused to host: 127.0.1.1;
> nested exception is:
> java.net.ConnectException: Connection refused: connect
> at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
> at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
> at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:110)
> at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown
> Source)
> at
> javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2309)
> at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:277)
> at sun.tools.jconsole.ProxyClient.tryConnect(ProxyClient.java:359)
> at sun.tools.jconsole.ProxyClient.connect(ProxyClient.java:297)
> at sun.tools.jconsole.VMPanel$2.run(VMPanel.java:279)
> Caused by: java.net.ConnectException: Connection refused: connect
> 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:519)
> at java.net.Socket.connect(Socket.java:469)
> at java.net.Socket.<init>(Socket.java:366)
> at java.net.Socket.<init>(Socket.java:179)
> at
> sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
> at
> sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
> at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
> ... 9 more
>
> Kenneth Clark
> Developer / Analyst
>
> Rabid Dog Laboratories ™
> Putting the art back into development
>
> *tel:* +27 11 475 7409
> *mobile:* +27 82 500 5090
> *e-mail:* kenneth_at_rabiddog.co.za
> *website:* http://www.rabiddog.co.za/
>
>
> Kenneth Clark wrote:
>> I checked for firewalls and didn't come across anything. I am able to
>> telnet to the IP and port which leads me top believe it is open
>>
>> I just tried executing the JConsole on the local machine and it works
>> fine from the local machine.
>>
>> Kenneth Clark
>> Developer / Analyst
>>
>> Rabid Dog Laboratories ™
>> Putting the art back into development
>>
>> *tel:* +27 11 475 7409
>> *mobile:* +27 82 500 5090
>> *e-mail:* kenneth_at_rabiddog.co.za
>> *website:* http://www.rabiddog.co.za/
>>
>>
>> Alejandro Murillo wrote:
>>>
>>>
>>> Can you check if there's a firewall running on any of the systems?
>>> I had similar problem and got connected after I disabled the firewall
>>> that was running on the remote machine.
>>>
>>>
>>> Alejandro
>>>
>>> Kenneth Clark wrote:
>>>> I can't test anything now unfortunately. I am not doing anything
>>>> fancy though. entering the ip and port for the service (including
>>>> username and password) it works on the other glassfish instance we
>>>> are running
>>>>
>>>>
>>>> Just as a recap
>>>> OS Ubuntu 6.10
>>>> Java 1.6
>>>>
>>>> The only difference is that the one giving trouble is running XWindows.
>>>>
>>>> Kenneth Clark
>>>> Developer / Analyst
>>>>
>>>> Rabid Dog Laboratories ™
>>>> Putting the art back into development
>>>>
>>>> *tel:* +27 11 475 7409
>>>> *mobile:* +27 82 500 5090
>>>> *e-mail:* kenneth_at_rabiddog.co.za
>>>> *website:* http://www.rabiddog.co.za/
>>>>
>>>>
>>>> Binod wrote:
>>>>> I just tried the same and it works....
>>>>>
>>>>> The error below shows that you are getting a login exception.
>>>>> However the exception (class) that has been thrown from the server
>>>>> is not available in the client's classpath and since the security
>>>>> manager'
>>>>> is disabled RMI wont do dynamic classloading to show you the actual
>>>>> error.
>>>>>
>>>>> I dont get this error when I give a wrong username/password.
>>>>>
>>>>> Are you sure that you are not doing any thing extra, right?
>>>>>
>>>>> Does your server.log contain anything interesting?
>>>>>
>>>>> thanks,
>>>>> Binod.
>>>>>
>>>>>> I am trying to connect JConsole to glassfish on another server.
>>>>>>
>>>>>>
>>>>>> Kenneth Clark
>>>>>> Developer / Analyst
>>>>>>
>>>>>> Rabid Dog Laboratories ™
>>>>>> Putting the art back into development
>>>>>>
>>>>>> *tel:* +27 11 475 7409
>>>>>> *mobile:* +27 82 500 5090
>>>>>> *e-mail:* kenneth_at_rabiddog.co.za
>>>>>> *website:* http://www.rabiddog.co.za/
>>>>>>
>>>>>>
>>>>>> Binod wrote:
>>>>>>
>>>>>>> What exactly are you trying to do get this error?
>>>>>>>
>>>>>>> As a temperory solution, can you try
>>>>>>>
>>>>>>> ||jconsole -J-Djava.security.manager and see of that works?
>>>>>>>
>>>>>>> - Binod.||
>>>>>>>
>>>>>>>
>>>>>>>> new stack dump for all
>>>>>>>>
>>>>>>>> java.rmi.UnmarshalException: Error unmarshaling return; nested
>>>>>>>> exception is:
>>>>>>>> java.lang.ClassNotFoundException:
>>>>>>>> com.sun.enterprise.security.LoginException (no security
>>>>>>>> manager: RMI class loader disabled)
>>>>>>>> at
>>>>>>>> sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:227)
>>>>>>>>
>>>>>>>> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
>>>>>>>> at
>>>>>>>> javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown
>>>>>>>> Source)
>>>>>>>> at
>>>>>>>> javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2309)
>>>>>>>>
>>>>>>>> at
>>>>>>>> javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:277)
>>>>>>>>
>>>>>>>> at sun.tools.jconsole.ProxyClient.tryConnect(ProxyClient.java:359)
>>>>>>>> at sun.tools.jconsole.ProxyClient.connect(ProxyClient.java:297)
>>>>>>>> at sun.tools.jconsole.VMPanel$2.run(VMPanel.java:279)
>>>>>>>> Caused by: java.lang.ClassNotFoundException:
>>>>>>>> com.sun.enterprise.security.LoginException (no security
>>>>>>>> manager: RMI class loader disabled)
>>>>>>>> at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:375)
>>>>>>>> at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
>>>>>>>> at
>>>>>>>> java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
>>>>>>>>
>>>>>>>> at
>>>>>>>> java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
>>>>>>>> at
>>>>>>>> sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
>>>>>>>>
>>>>>>>> at
>>>>>>>> java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
>>>>>>>>
>>>>>>>> at
>>>>>>>> java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
>>>>>>>>
>>>>>>>> at
>>>>>>>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
>>>>>>>>
>>>>>>>> at
>>>>>>>> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>>>>>>>> at
>>>>>>>> java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
>>>>>>>> at
>>>>>>>> sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:225)
>>>>>>>>
>>>>>>>>
>>>>>>>> Can someone please let me know what the heck is going on?
>>>>>>>> --
>>>>>>>> Kenneth Clark
>>>>>>>> Developer / Analyst
>>>>>>>>
>>>>>>>> Rabid Dog Laboratories ™
>>>>>>>> Putting the art back into development
>>>>>>>>
>>>>>>>> *tel:* +27 11 475 7409
>>>>>>>> *mobile:* +27 82 500 5090
>>>>>>>> *e-mail:* kenneth_at_rabiddog.co.za
>>>>>>>> *website:* http://www.rabiddog.co.za/
>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>>
>>>>>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>>>>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>>>
>>>>>
>>>>>
>>>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG Free Edition.
>>> Version: 7.5.441 / Virus Database: 268.18.3/693 - Release Date: 19/02/2007 17:01
>>>
>> ------------------------------------------------------------------------
>>
>> No virus found in this incoming message.
>> Checked by AVG Free Edition.
>> Version: 7.5.441 / Virus Database: 268.18.3/693 - Release Date: 19/02/2007 17:01
>>