0 Replies Latest reply on Jul 9, 2002 7:49 AM by Mustermann

    Problem with handle to stateful session bean

    Mustermann Newbie

      hi friends,

      My Servlet tries to write the handle to the remote interface of a stateful session bean to the outputstream.
      Following error occurs:
      Marshalling Exception. (see below).
      When testing with a stateless SB it works fine.
      So any ideas?
      thanx in advance
      heinz


      2002-07-09 11:46:03,664 ERROR [org.jboss.web.localhost.Engine] ----- Root Cause -----
      java.rmi.MarshalException: Invalid remote object
      at java.rmi.server.RemoteObject.writeObject(RemoteObject.java:332)
      at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:780)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1294)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
      at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.writeExternal(JRMPInvokerProxy.java:149)
      at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1265)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1243)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1330)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)