>From a java client class I tried to find out all currently 
offered rmi servers (server objects) by coding:

String[] objlist = Naming.list("rmi://localhost:1099"); 

But this yields the exception shown at the bottom of this posting.
Why?

How do I list otherwise all objects?

Do I have to setup JBoss for this "pure" (=not EJB) RMI usage?
Do I have to include some special jars in the client app CLASSPATH?
With an external rmiregistry all works fine.

Thomas


error during JRMP connection establishment; nested exception is:
        java.net.SocketException: Software caused connection abort: recv failed
java.rmi.ConnectIOException: error during JRMP connection establishment; nested 
exception is:
        java.net.SocketException: Software caused connection abort: recv failed
        at 
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:274)
        at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
        at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313)
        at sun.rmi.registry.RegistryImpl_Stub.list(Unknown Source)
        at java.rmi.Naming.list(Naming.java:191)
        at test.rmi.simple.MyClient.main(MyClient.java:25)
Caused by: java.net.SocketException: Software caused connection abort: recv 
failed
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:129)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
        at java.io.DataInputStream.readByte(DataInputStream.java:331)
        at 
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:215)
        ... 5 more

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854311#3854311

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854311


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to