dev@glassfish.java.net

Re: V2.1 JMX IOException about lack of exported objects...

From: Nandini Ektare <Nandini.Ektare_at_Sun.COM>
Date: Mon, 03 Nov 2008 19:12:38 -0800

Looks like for some reason you have a situation where your local
loopback address cannot be read in the server VM...may want to check
your /etc/hosts file
And the admin channel (for "local RMI" communication) in that VM gets
configured to accept connections from local RMI clients only.

Nandini

Peter Williams wrote:
> I have some code that is conversing with GlassFish V2.1 B52 using the
> AMX api and I'm seeing this exception the glassfish log quite a bit:
>
> [#|2008-11-03T17:18:13.853-0800|WARNING|sun-appserver9.1|sun.rmi.transport.tcp|_ThreadID=13;_ThreadName=RMI
> TCP Accept-0;_RequestID=a4c9ab26-79d2-484d-b5c3-452364120ef7;|RMI TCP
> Accept-0: accept loop for
> ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=65394] throws
> java.io.IOException: The server sockets created using the
> LocalRMIServerSocketFactory only accept connections from clients
> running on the host where the RMI remote objects have been exported.
> at
> sun.management.jmxremote.LocalRMIServerSocketFactory$1.accept(LocalRMIServerSocketFactory.java:71)
>
> at
> sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:369)
>
> at
> sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:341)
> at java.lang.Thread.run(Thread.java:619)
> |#]
>
> Does this ring any bells with anyone? AMX api versioning mismatch?
> Bug in my code? Bug in AMX? Or???
>
> -Peter
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>