[MWy] Unmarshaling problem

almer.sis at seznam.cz
Wed Mar 26 19:46:37 CET 2008


Dobry den,

opet otravuju, protoze se mi nepodarilo ani po dnesnim vyspani rozbehat ten problem ze vcerejska.Strucne situace, kterou mam:

Server:
	try {
		// Create searcher as normal class with export object
		Searcher oSearcher = (Searcher)UnicastRemoteObject.exportObject( new SearcherImpl() );
		
		// Bind object with server name
		Naming.rebind("//localhost/Searcher", oSearcher);
...

Searcher:
    public interface Searcher extends Remote { ....

SearcherImpl:
  public class SearcherImpl implements Searcher, Serializable { .....

A pri spusteni serveru dostanu tuhle hlasku. 

During server start raised exception: RemoteException occurred in server thread; nested exception is: 
	java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
	java.lang.ClassNotFoundException: SearcherImpl_Stub

Co tedy s tim? Chapu ze SearcherImpl_Stub( tedy to vygenerovane pomoci rmic ) nelze serializovat. Nechapu proc? Kdyz teda prehodim a podedim to od UnicastRemoteObject, a volam to primo pres new na strane serveru, tak se mi objevi uplne stejna hlaska...kde delam chybu?

Diky Almer




More information about the NSWI080 mailing list