[MWy] hromada erroru :(
Vlastimil Babka
babka at dsrg.mff.cuni.cz
Tue Mar 25 21:22:05 CET 2008
Martina wrote:
> Ahoj,
>
> tak jsem chtela doresit ulohu z dnesniho cviceni (prvni uloha) a zasekla jsem se
> na tom, ze kdyz spustim klienta, tak to na me zacne chrlit podivne hlasky typu
> (je jich par stovek):
>
>
> Client Exception: error marshalling arguments; nested exception is:
> java.io.NotSerializableException: NodeImpl
> java.rmi.MarshalException: error marshalling arguments; nested exception is:
> java.io.NotSerializableException: NodeImpl
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:138)
> at
> java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
> at
> java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
> at $Proxy0.getDistance(Unknown Source)
> at ExampleClient.searchBenchmarkAll(ExampleClient.java:141)
> at ExampleClient.main(ExampleClient.java:193)
> Caused by: java.io.NotSerializableException: NodeImpl
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:274)
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
> ... 5 more
>
>
> O jaky typ chyby muze jit? :-o Prosim, nevahejte s odpovedi, nejen, ze bych se
> rada vyspala, ale taky bych to potrebovala do pulnoci odeslat....
Co rika API doc o teto exception?
http://java.sun.com/javase/6/docs/api/java/io/NotSerializableException.html
"Thrown when an instance is required to have a Serializable interface."
A nazev tridy ktere se to tyka mate hned za nazvem vyjimky...
Souvisi to z otazkou na slajdech: "Jak se server dostane k sousedním
uzlům předávaných dvou uzlů?" cili jakym zpusobem se v Java RMI
predavaji non-remote objekty?
--
Vlastimil Babka
Ph.D. student
Distributed Systems Research Group
Department of Software Engineering
Faculty of Mathematics and Physics
Charles University in Prague
Czech Republic
http://dsrg.mff.cuni.cz/
More information about the NSWI080
mailing list