[MWy] Unmarshaling problem

Lukáš Kopenec lukaskopenec at seznam.cz
Wed Mar 26 19:52:39 CET 2008


Ahoj!

Já tam nevidím nic o serializaci, ale ClassNotFound, třída nenalezena. A 
důvod bude asi ten, že ta Tvoje třída Searcher nedědí od 
UnicastRemoteObject.

Lukáš

----- Original Message ----- 
From: <almer.sis at seznam.cz>
To: <mwy at dsrg.mff.cuni.cz>
Sent: Wednesday, March 26, 2008 7:46 PM
Subject: [MWy] Unmarshaling problem


> 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
>
> _______________________________________________
> MWy mailing list
> MWy at dsrg.mff.cuni.cz
> https://dsrg.mff.cuni.cz/mailman/listinfo/mwy
> 





More information about the NSWI080 mailing list