1 Reply Latest reply on Apr 28, 2003 9:49 AM by danbender

    java.io.NotSerializableException: org.jboss.invocation.Invoc

    danbender Newbie

      Has anyone came across this problem and if so, do you know why this is happening? (How to fix it would greatly help as well)

      The code that produced the exception below simply tries to create an EJBObject from a stateless session home interface. This exception happens at the same point everytime in my testing. I am able to create many other EJBObjects prior to this point in testing.

      I am using jboss-3.0.6_tomcat-4.1.18 and am getting the following exception:

      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:1143) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:361)
      at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:263)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
      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:77)
      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
      at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
      at $Proxy18.create(Unknown Source)
      at com.myorg.TestClass.getRemote(TestClass.java:272)
      at junit.framework.TestCase.runBare(TestCase.java:128)
      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:121)


      Thanks,
      Dan

        • 1. Re: java.io.NotSerializableException: org.jboss.invocation.I
          danbender Newbie

          Problem resolved:

          I had an error in my jboss.xml file with the ejb.jar META-INF directory.

          The problem was that I specified 'container-name' instead of 'configuration-name'. I stupid mistake on my part; however, debugging this was extremily difficult because nothing in the exception message implied an error in the jboss.xml file.


          I originally had:


          <ejb-name>my.ejb</ejb-name>
          <jndi-name>my.ejb.jndi.name</jndi-name>
          <container-name>Standard Stateless SessionBean</container-name>
          true


          Should have been:


          <ejb-name>my.ejb</ejb-name>
          <jndi-name>my.ejb.jndi.name</jndi-name>
          <configuration-name>Standard Stateless SessionBean</configuration-name>
          true



          or, just leave it out and let jboss except the default (what i ended up doing):


          <ejb-name>my.ejb</ejb-name>
          <jndi-name>my.ejb.jndi.name</jndi-name>
          true