2 Replies Latest reply on Dec 19, 2001 1:33 PM by Ignacio

    SFSB not working? HttpRequest not Serializable

    Ignacio Newbie

      I'm trying to pass the Handle of a Stateful Session Bean to a Stateless SB method. When I do that I get an awful Exception.

      In my SFSB every field is of basic type (java.lang.Inteegr and so on) except of one that is assigned null in ejbPassivate. In particular org.mortbay.http.HttpRequest and javax.servlet.http.HttpServletRequest are passed in any form to any EJB method.

      I'm lost. After this exception the cache becomes corrupt and a hot-redeploy of the app gets an endlessly chain of internal LRU cache exceptions.

      I'll let this on the users forum for a day or two, then will ask on the dev forums if nothing comes in clear.

      java.rmi.ServerException: null
      Embedded Exception
      java.rmi.ServerException: Could not get EJBObject; nested exception is:
      java.io.NotSerializableException: org.mortbay.http.HttpRequest; nested exception is:
      javax.ejb.EJBException: null
      Embedded Exception
      java.rmi.ServerException: Could not get EJBObject; nested exception is:
      java.io.NotSerializableException: org.mortbay.http.HttpRequest
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:156)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:65)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:131)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
      at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:334)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:5
      06)
      at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:346)

      at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.
      java:123)
      at $Proxy23.addLineas(Unknown Source)

      the code:
      =========
      Handle handle = profile.getHandle(); // this is the SFSB
      home.create().addLineas(clienteId, lineas, handle); // this is the SLSB call