I'm not totally sure what Simone is referring to by "stateful bean"...I'm
assuming the class "lds.applayers.ecm.instrument.Share", which is the type
of object contained in the Vector being returned. The EJB named
"QueryShare_Session" is a Stateless Session bean.
One thing to note (and you probably already know this) about the
java.io.Serializable interface:
Just because a super class of the class in question
(lds.applayers.ecm.instrument.Share in this case) implements
java.io.Serializable doesn't automatically make the sub-class serializable.
Simone is correct in that if any of the non-transient fields of said
sub-class are not serializable, the class will still compile fine but will
generate a runtime java.io.NotSerializableException like the one you are
encountering (because some of the fields can't be serialized).
joe
Hey,
I guess that it is a stateful bean, and probably one of the non-transient
fields of your bean is not serializable.
Simon
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: venerdi 2 febbraio 2001 16:11
> To: [EMAIL PROTECTED]
> Subject: [jBoss-User] Session bean : Serializable class problem !
>
>
> I have a Session bean (QueryShare_Session) with a method
> findExprBySymbol
> that must return a collection ( java.util.Vector) that
> I create. This collection contains objects of the class :
> lds.applayers.ecm.instrument.Share
>
> The super class of Share is java.io.Serializable and I have
> the following
> error on the client side :
>
> java.io.NotSerializableException: lds.applayers.ecm.instrument.Share
> at
> sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer
> (StreamRemoteCall.java:245)
> at
> sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCal
> l.java:220)
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
> at
> org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.in
> voke(Unknown
> Source)
> at
> org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.in
> voke(StatelessSessionProxy.java:175)
> at
> org.jboss.proxy.ProxyCompiler$Runtime.invoke(ProxyCompiler.java:74)
> at
> lds.applayers.odata.ui.services.QueryShare_Session$Proxy.findE
> xprBySymbol(Unknown
>
> Source)
>
>
> I have no idea about the problem !!
>
> Can you help me ?
>
> Thanks
>
> Christophe
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]