Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

More RMI problems

1 view
Skip to first unread message

R@nsh!

unread,
Mar 15, 2001, 1:49:02 PM3/15/01
to
Hi all.
I'm trying to learn RMI, but something just keeps going wrong.

I got a "NewsBoardServerImpl" which is a remote server.
I compiled it (no options), then rmic it (same).

This class also contains "main".
When trying to run it - here's what I get as the RemoteException message:

----------------
RemoteException occured: java.rmi.ServerException: RemoteException occurred
in server thread; nested
exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
java.lang.ClassNotFoundException: RMIBoard.NewsBoardServerImpl_Stub
----------------

and here's the stackTrace:

---------------------------
java.rmi.ServerException: RemoteException occurred in server thread; nested
exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
java.lang.ClassNotFoundException: RMIBoard.NewsBoardServerImpl_Stub
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception
is:
java.lang.ClassNotFoundException: RMIBoard.NewsBoardServerImpl_Stub
java.lang.ClassNotFoundException: RMIBoard.NewsBoardServerImpl_Stub
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown
Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Unknown Source)
at RMIBoard.NewsBoardServerImpl.main(NewsBoardServerImpl.java:153)
------------------------------

The _stub class is there alright.

Any ideas?

BTW - JDK1.3 on win 2000.

TnX, Ran.


cozy00

unread,
Mar 15, 2001, 2:12:49 PM3/15/01
to

Don King

unread,
Mar 26, 2001, 9:43:14 PM3/26/01
to
Ran-- I would have to see your code to know for sure if there was a problem
there but it looks like the stack trace is saying class not found. Do you
have the RMI server you created in the Java server's class path? Also, are
you starting the rmi registry and binding your RMI server so that it is
available for remote clients?

Don

"R@nsh!" <ran...@no-spam.Qfish.com> wrote in message
news:98r2vr$lfl$1...@news.huji.ac.il...

R@nsh!

unread,
Mar 27, 2001, 10:42:47 AM3/27/01
to
Hi Don.
I got it working since.
TnX, and sorry for not posting an "obsolete" message.

TnX again, anyway.


Don King

unread,
Mar 27, 2001, 9:42:37 PM3/27/01
to
No problem. I am glad you got it fixed.

Don

"R@nsh!" <ranshe@~no-spam~.Qfish.com> wrote in message
news:99qcmi$7om$1...@news.huji.ac.il...

0 new messages