Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > simple java tutorial rmi question

simple java tutorial rmi question
Thread Tools
tie
Professional Poster
Join Date: Feb 2001
Status: Offline
Reply With Quote
Mar 27, 2001, 11:45 PM
 
I am trying to get a simple rmi program working, just the echo program which (I believe) was originally from Sun's tutorial page, though I can't find it now. I javac'ed and rmic'ed everything to get the classes (in package Echo) EchoClient, EchoServer, EchoServerImpl, EchoServerImpl_Skel, EchoServerImpl_Stub. I run

rmiregistry 5000 &
java -Djava.security.policy=java.policy -cp . Echo.EchoServerImpl localhost 5000 &

and I get the exception:

EchoServerImpl err: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: Echo.EchoServerImpl_Stub
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: Echo.EchoServerImpl_Stub
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: Echo.EchoServerImpl_Stub
java.lang.ClassNotFoundException: Echo.EchoServerImpl_Stub
at sun.rmi.transport.StreamRemoteCall.exceptionReceiv edFromServer(StreamRemoteCall.java:245)
at sun.rmi.transport.StreamRemoteCall.executeCall(Str eamRemoteCall.java:220)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:3 54)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:160)
at Echo.EchoServerImpl.main(EchoServerImpl.java:51)

I'm not sure what's happening here. The class Echo/EchoServerImpl_Stub.class is there so it should be able to find it, right?
The 4 o'clock train will be a bus.
It will depart at 20 minutes to 5.
     
Fresh-Faced Recruit
Join Date: Mar 2001
Status: Offline
Reply With Quote
Mar 31, 2001, 01:36 AM
 
You should ask on the java-dev mailing list (formerly mrj-dev), someone there would know.

Look on http://developer.apple.com/java
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:50 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2