exception while running RMI code.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Akash_Jain
Posted On:   Wednesday, June 12, 2002 09:42 PM

I am using RMI for the first time. I followed the step by step procedure for running an RMI code but am still getting runtime exception on snippet Naming.rebind() while running the server. the exception that i am getting is : Error raised : java.rmi.ServerException: Server RemoteException; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang.ClassNotFoundException: ProductImpl_Stub following is the code snippet: ProductImpl p1 = new ProductImpl("Blackwell Toaster"); ProductImpl p2 = new ProductImpl("ZapExpress Microwave Oven"); Naming.rebind("toaster",p1);    More>>


I am using RMI for the first time. I followed the step by step procedure for running an RMI code but am still getting runtime exception on snippet Naming.rebind() while running the server.


the exception that i am getting is :


Error raised : java.rmi.ServerException: Server RemoteException; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: ProductImpl_Stub


following is the code snippet:


ProductImpl p1 = new ProductImpl("Blackwell Toaster");
ProductImpl p2 = new ProductImpl("ZapExpress Microwave Oven");
Naming.rebind("toaster",p1);
Naming.rebind("microwave",p2);


i am running JDK 1.4 on windows NT 4.0

   <<Less

Re: exception while running RMI code.

Posted By:   Debabrata_Dash  
Posted On:   Tuesday, July 16, 2002 05:36 PM

Did you do rmic for the ProductImpl before running this ? It should work if you compile that and make them available to the server.

-Dash.
About | Sitemap | Contact