Menu

#46 Launching RMI Based Programs

closed-works-for-me
launching (19)
5
2002-06-26
2002-02-06
Anonymous
No

I am using Redhat 7.1 and I have a Java App client
that has RMI calls to them. When sending native types
(e.g. int , String ) the calls complete without
exception. When sending classes serialized it throws
an exception which depends which OS you run it under.

The Java program runs from a unix script without any
problems which is strange since no code is changing in
the client or server only how the java code is being
run via launchInternal under OpenJNLP

but when run with

java org.nanode.jnlp.JNLPParser http://www.example ../
file.jnlp

The following is thrown

java.rmi.UnmarshalException: Error unmarshaling return
header; nested exception is:
java.net.SocketException: Connection reset by
peer: JVM_recv in socket input stream read

java.net.SocketException: Connection reset by peer:
JVM_recv in socket input stream read

at java.net.SocketInputStream.socketRead

(Native Method)

at java.net.SocketInputStream.read

(SocketInputStream.java:86)

at java.io.BufferedInputStream.fill

(BufferedInputStream.java:186)

at java.io.BufferedInputStream.read

(BufferedInputStream.java:204)

at java.io.DataInputStream.readByte

(DataInputStream.java:222)

at

sun.rmi.transport.StreamRemoteCall.executeCall
(StreamRemoteCall.java:186)

at sun.rmi.server.UnicastRef.invoke

(UnicastRef.java:122)

Discussion

  • Kevin Herrboldt

    Kevin Herrboldt - 2002-06-26

    Logged In: YES
    user_id=6750

    I have tested both RMI servers and clients using OpenJNLP, both seem to function correctly. Perhaps re-engineering the launcher has addressed any issues that were present in previous versions.

     
  • Kevin Herrboldt

    Kevin Herrboldt - 2002-06-26
    • status: open --> closed-works-for-me
     

Log in to post a comment.