We help IT Professionals succeed at work.
Get Started

ClassNotFoundException in Client when trying to access stub on a different server (Java RMI)

ajaycv asked
Last Modified: 2012-05-09
Hello Experts,

I have my server class running on another server. My client is trying to access the remote object and it is throwing the follwoing error:

error unmarshalling return; nested exception is:
      java.lang.ClassNotFoundException: JoptServer_Stub
java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
      java.lang.ClassNotFoundException: JoptServer_Stub

The stub named JoptServer_Stub is available on the server. I am able to successfully bind the remote object to the RMI Engine. I am also attaching the files for your reference.

Please let me know the solution to this problem.

P.S: My client and server are not on the same machine.
Watch Question
This problem has been solved!
Unlock 1 Answer and 10 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE