[MWy] Unmarshaling problem

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


Chci říct třída SearcherImpl...Není třeba, aby implementovala Serializable, 
ale musí dědit od UnicastRemoteObject.

----- Original Message ----- 
From: "Lukáš Kopenec" <lukaskopenec at seznam.cz>
To: <mwy at dsrg.mff.cuni.cz>
Sent: Wednesday, March 26, 2008 7:52 PM
Subject: Re: [MWy] Unmarshaling problem


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





More information about the NSWI080 mailing list