Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Advanced-java] RMI and Dynamic Class loading


  • From: anikomei@xxxxxxxxxxx (Sameer Gurung)
  • Subject: [Advanced-java] RMI and Dynamic Class loading
  • Date: Thu, 31 Jan 2002 14:23:48 +0530

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