jQuery in Action, 3rd edition
The moose likes Distributed Java and the fly likes java.rmi.ServerException: RemoteException occurred in server thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "java.rmi.ServerException: RemoteException occurred in server thread" Watch "java.rmi.ServerException: RemoteException occurred in server thread" New topic

java.rmi.ServerException: RemoteException occurred in server thread

rin perez

Joined: Feb 04, 2011
Posts: 2
i'm using netbeans to create an RMI application. i have generated a stub file and yet i get this error:

java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: fufmessenger.CallbackImplementation_Stub (no security manager: RMI class loader disabled)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:336)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132) at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
Christian Lipzky

Joined: Feb 14, 2011
Posts: 1
Maybe you have to define SecurityManager:

Too small amount of data to find out solution.

see my blog: Java and C++ snippets
Edward Harned
Ranch Hand

Joined: Sep 19, 2005
Posts: 291

The classpath problem? That's what this usually is. Client/Server/Registry all must be able to find your classes.

Ed's latest article: A Java Parallel Calamity http://coopsoft.com/ar/Calamity2Article.html
mohsin Rasheed

Joined: Jul 25, 2011
Posts: 14
Hunter , can we discuss this problem on skype , it would easy then to identify it , as this unmarshalling problem has become really a headache for me now.
I agree. Here's the link: http://aspose.com/file-tools
subject: java.rmi.ServerException: RemoteException occurred in server thread
It's not a secret anymore!