2 Replies Latest reply on Sep 22, 2002 5:10 PM by dmaclaren

    PASSIVATE ERORS

    dmaclaren

      Hello, I have looked through posts and have not found answers that have worked. Please help, I am in tight times.

      I am in use of these versions of Jboss.
      jboss-3.0.0_tomcat-4.0.3
      jboss-3.0.2_tomcat-4.0.4

      Now, I looked into the Logger not serializing. So I got the source and made it implement Serializable. I thought that it would fix the fact that I get an error when Jboss wante to passivate. I know tht the error happens after call back method ejbPassivate() is called. My new errors are
      1.
      [ERROR] [org.jboss.logging.Log4jService$ThrowableListenerLoggingAdapter] [unhandled throwable]
      java.rmi.ServerException: Could not passivate; nested exception is:
      java.rmi.MarshalException: Invalid remote object
      2.
      [ERROR] [org.jboss.logging.Log4jService$ThrowableListenerLoggingAdapter] [unhandled throwable]
      java.rmi.ServerException: Could not passivate; nested exception is:
      java.io.NotSerializableException: org.apache.log4j.helpers.AppenderAttachableImpl
      at org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:294)
      at org.jboss.ejb.plugins.StatefulSessionInstanceCache.passivate(StatefulSessionInstanceCache.java:78)
      at org.jboss.ejb.plugins.AbstractInstanceCache$1.execute(AbstractInstanceCache.java:615)
      at org.jboss.util.WorkerQueue$QueueLoop.run(WorkerQueue.java:206)
      at java.lang.Thread.run(Thread.java:536)
      Caused by: java.io.NotSerializableException: org.apache.log4j.helpers.AppenderAttachableImpl


      Any help? This happens for the 3.0.0 instance. I have not tried the 3.0.2 since I cant get the JNDI to bind MYSQL-service.xml correctly. It looks like it is bound but I cannot do any lookup. I do get an mbean error during startup and it vives me a depends on. But it looks like in those printouts that it worked and in the 8082 view, I see the pool and the jndi naming.

      HELLLLLLLLLLLLLLLLP PLEASE!!!!!!!!!!!!!!!!!!!!!


      Thank you

        • 1. Re: PASSIVATE ERORS
          l.g.

          Marked as transient and instantiated it in setSessionContext().

          • 2. Re: PASSIVATE ERORS
            dmaclaren

            I figured out the Passivation issue,
            I wrap my normal functioning classed by the Session object, This way, the objects functionality wull work in another environment outside EJB.
            Now, I had a class that held another and in that I had an inner class that did not implement Serializable.

            Now, I still have issues with the JNDI not binging the MYSQL using the -service.xml. It is exact as many others mentioned except I change the name and specific database connection info.

            ANY IDEASS????????????