Server Exception

Hi Everyone,

The same old tune.

Can anyone suggest what I can do?

java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:

java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:

java.lang.ClassNotFoundException: scheduler.comm.SchSystemImpl_Stub

at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:352)at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:207)

at sun.rmi.transport.Transport$1.run(Transport.java:148)

at java.security.AccessController.doPrivileged(Native Method)

at sun.rmi.transport.Transport.serviceCall(Transport.java:144)

at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)

at java.lang.Thread.run(Thread.java:536)

at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)

at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)

at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:350)

at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)

at scheduler.comm.SchRegistry.registerSystem(SchRegistry.java:37)

at scheduler.comm.SchRegistry.<init>(SchRegistry.java:27)

at scheduler.WayneScheduler.<init>(WayneScheduler.java:86)

at scheduler.WayneScheduler.main(WayneScheduler.java:101)

I would appreciate your help

vishist.

[1549 byte] By [vishist] at [2007-9-27 18:28:53]
# 1

by the way what version of jdk are you using. This exception was thrown i this fashion in jdk1.2 and not in the later verisons.

However you might also need to check as to how are you casting the result of naming.lookup. It should be casted to the interface and not the class implementing rmi server stuff.

nome02 at 2007-7-6 19:12:16 > top of Java-index,Core,Core APIs...