当前位置: 技术问答>java相关
运行一个RMI时报了以下的异常,请各位高手看看可能是什么原因?
来源: 互联网 发布时间:2015-04-17
本文导语: Exception: java.rmi.activation.ActivateFailedException: failed to activate objec t; nested exception is: java.rmi.activation.ActivationException: exception in object constructor ; nested exception is: java.io.StreamCorruptedException: Ca...
Exception: java.rmi.activation.ActivateFailedException: failed to activate objec
t; nested exception is:
java.rmi.activation.ActivationException: exception in object constructor
; nested exception is:
java.io.StreamCorruptedException: Caught EOFException while reading the
stream header
java.rmi.activation.ActivateFailedException: failed to activate object; nested e
xception is:
java.rmi.activation.ActivationException: exception in object constructor
; nested exception is:
java.io.StreamCorruptedException: Caught EOFException while reading the
stream header
java.rmi.activation.ActivationException: exception in object constructor; nested
exception is:
java.io.StreamCorruptedException: Caught EOFException while reading the
stream header
java.io.StreamCorruptedException: Caught EOFException while reading the stream h
eader
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknow
n Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at sun.rmi.server.Activation$ActivatorImpl_Stub.activate(Unknown Source)
at java.rmi.activation.ActivationID.activate(Unknown Source)
at sun.rmi.server.ActivatableRef.activate(Unknown Source)
at sun.rmi.server.ActivatableRef.invoke(Unknown Source)
at examples.activation.MyPersistentClass_Stub.calltheServer(Unknown Sour
ce)
at examples.activation.Client4.main(Client4.java:68)
t; nested exception is:
java.rmi.activation.ActivationException: exception in object constructor
; nested exception is:
java.io.StreamCorruptedException: Caught EOFException while reading the
stream header
java.rmi.activation.ActivateFailedException: failed to activate object; nested e
xception is:
java.rmi.activation.ActivationException: exception in object constructor
; nested exception is:
java.io.StreamCorruptedException: Caught EOFException while reading the
stream header
java.rmi.activation.ActivationException: exception in object constructor; nested
exception is:
java.io.StreamCorruptedException: Caught EOFException while reading the
stream header
java.io.StreamCorruptedException: Caught EOFException while reading the stream h
eader
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknow
n Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at sun.rmi.server.Activation$ActivatorImpl_Stub.activate(Unknown Source)
at java.rmi.activation.ActivationID.activate(Unknown Source)
at sun.rmi.server.ActivatableRef.activate(Unknown Source)
at sun.rmi.server.ActivatableRef.invoke(Unknown Source)
at examples.activation.MyPersistentClass_Stub.calltheServer(Unknown Sour
ce)
at examples.activation.Client4.main(Client4.java:68)
|
java.io.StreamCorruptedException: Caught EOFException while
reading the stream header.
你的程序是怎么写的, 应该是序列化有问题.
reading the stream header.
你的程序是怎么写的, 应该是序列化有问题.