0 Replies Latest reply on Aug 12, 2002 6:23 AM by Raffaele Spazzoli

    org.jboss.invocation.Invocation not serializable

    Raffaele Spazzoli Newbie

      I receive this error message when I try invoke a stateless session bean:

      java.rmi.MarshalException: error marshalling arguments; nested exception is:
      java.io.NotSerializableException: org.jboss.invocation.Invocation
      java.io.NotSerializableException: org.jboss.invocation.Invocation
      at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
      at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:268)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:106)
      at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
      at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
      at $Proxy0.create(Unknown Source)
      at it.imolinfo.monthlyReport.server.config.unitTest.ConfigTest.setUp(ConfigTest.java:40)
      at junit.framework.TestCase.runBare(TestCase.java:138)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:131)
      at junit.framework.TestSuite.runTest(TestSuite.java:173)
      at junit.framework.TestSuite.run(TestSuite.java:168)
      at junit.framework.TestSuite.runTest(TestSuite.java:173)
      at junit.framework.TestSuite.run(TestSuite.java:168)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:231)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:409)

      the only thing in which this bean differs from the other (that work correctly)is the container configuration that has the following settings

      <container-configurations>
      <container-configuration extends="Standard Stateless SessionBean">
      <container-name>Unsecured</container-name>
      <security-domain/>
      </container-configuration>
      </container-configurations>


      and the bean uses this container:


      <ejb-name>Config</ejb-name>
      <jndi-name>MonthlyReport/ejb/Config</jndi-name>
      <configuration-name>Unsecured</configuration-name>
      True


      all other bean use a security domain which is working. If the config bean is invoked from inside the application from the other beans everything works ok, if the bean is invoked from an outer client I receive the error. Any idea?