RMI Linux/Windows problem

This is the place for general discussion of the RMI plugin for Eclipse and support questions

RMI Linux/Windows problem

Postby evayla » Tue Oct 02, 2007 6:09 am


I'm trying to set up a communication client/server in RMI, with :

    * for client : Eclipse on Windows XP associated with the plugin "RMI Plugin for Eclipse"
    * for server : Linux

On Linux, I start with the command "rmiregistry 1000 &" (without problem),
then I launch my server application with the command line :

java -Djava.security.policy=security.policy -Djava.rmi.server.codebase=file:./myjar.jar -Djava.rmi.server.hostname=myserver mypackage.MyAppli

And the following error occurs :

java.rmi.ConnectIOException: non-JRMP server at remote endpoint
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
at mypackage.MyAppli.main(MyAppli.java:465)

I get the same error when I use the method "Naming.lookup("rmi://serverName/remoteObjectName")" from Eclipse.

Have an idea about what I could forget (Java or Network configuration) ?

Thanks in advance for your help,

      Posts: 1
      Joined: Mon Oct 01, 2007 2:44 pm

      Postby genady » Sat Oct 20, 2007 10:55 pm

      Hi Eva,

      This is probably a little late reply for you, but it looks like you didn't change the code to reference a registry on port 1000.

      You're probably also running another service that is bound to port 1099 (for example JBoss uses port 1099 for JNDI registry).

      Site Admin
      Posts: 397
      Joined: Sat Aug 16, 2003 5:15 pm

      Return to General discussion and support

      Who is online

      Users browsing this forum: No registered users and 2 guests