Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Advanced-java] RMI and Dynamic Class loading
- From: unmesh@xxxxxxxxxx (Unmesh Kulkarni)
- Subject: [Advanced-java] RMI and Dynamic Class loading
- Date: Thu, 31 Jan 2002 14:47:44 +0530
Sameer,
Check for the following:
- There should be no classpath setting for the RMI registry. if there is, then the
stubs must not be in the classpath.
- Have you set the 'java.rmi.server.codebase' property correctly?
-Unmesh
Sameer Gurung wrote:
> Hi folks,
> I was wondering if somebody can help me out....
> I have a client program that sends a object to a remote machine. The remote
> machine is supposed to then execute a method of the object.
> class client {
> Query q = new Query();
> q.fillData("Sameer","25");
> //get reference to remote Server abd store it in rs
> rs.getDocs(q)
>
> }
>
> Query implements QueryInterface which in turn extends Serializable
>
> Then on the server side the implementation class has a getDocs method which
> look like this
>
> {....
> public MyData getDocs(QueryInterface q){
> MyData md = q.parse();
> return md;
>
> }
> }
>
> MyData implements Serializable....
>
> The error I get is
> UnmarshalException ; nested Exception is
> ClassNotFoundException ;
>
> Well all the classes and the interface are in their proper places. Does
> anyone know whats happening here. Any help will be appreciated
>
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
> _______________________________________________
> Advanced-java mailing list
> Advanced-java@xxxxxxxxxxxxxxxxxxxxxx
> http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java
- References:
- [Advanced-java] RMI and Dynamic Class loading
- From: Sameer Gurung
- [Advanced-java] RMI and Dynamic Class loading
- Prev by Date: [Advanced-java] RMI and Dynamic Class loading
- Next by Date: [Advanced-java] RMI and Dynamic Class loading
- Previous by thread: [Advanced-java] RMI and Dynamic Class loading
- Next by thread: [Advanced-java] File Upload with Struts
- Index(es):