5 Replies Latest reply on Oct 18, 2002 5:00 PM by L.G.

    Activate/Pasivate problem when redeploying app on RC1

    ljubisak Newbie

      I was happy to see RC1 working without ERRORs related to activation/ pasivation mech. (as I had with Alpha version), since I deploy my app on it, untill I made a changes and redeploy the application.
      I dropped my new EAR file into deploy dir. and got following exception (and of course my web client has complained that couldn't activate :
      ----------client reported exception---------------
      Could not activate; nested exception is:
      java.io.FileNotFoundException: C:\jboss3\server\default\db\sessions\AdminScheduleClientControllerEJB\1020375249898.ser (The system cannot find the file specified))
      -----------------------------------------

      -----EJB reported exception-------------
      10:05:36,790 INFO [MainDeployer] Undeploying file:/C:/jboss3/server/default/dep
      loy/airpass.ear
      10:05:36,790 INFO [EjbModule] Stopping
      10:05:36,790 INFO [EjbModule] Stopped
      10:05:36,790 INFO [EjbModule] Stopping
      10:05:36,870 INFO [EjbModule] Stopped
      10:05:36,870 INFO [EjbModule] Stopping
      10:05:36,880 INFO [EjbModule] Stopped
      10:05:36,880 INFO [EjbModule] Stopping
      10:05:36,880 INFO [EjbModule] Stopped
      10:05:36,880 INFO [EjbModule] Stopping
      10:05:36,890 INFO [EjbModule] Stopped
      10:05:36,890 INFO [EARDeployer] Undeploying J2EE application, destroy step: fil
      e:/C:/jboss3/server/default/deploy/airpass.ear
      10:05:36,890 INFO [EjbModule] Destroying
      10:05:36,920 INFO [EjbModule] Remove JSR-77 EJB Module: jboss.management.single
      :J2EEApplication=airpass.ear,J2EEServer=Single,j2eeType=EJBModule,name=ejb-jar-i
      c9.jar
      10:05:36,920 INFO [EJBModule] Stopping
      10:05:36,920 INFO [EJBModule] Stopped
      10:05:36,920 INFO [EjbModule] Destroyed
      10:05:36,930 ERROR [Log4jService$ThrowableListenerLoggingAdapter] unhandled thro
      wable
      java.rmi.ServerException: Could not passivate; nested exception is:
      java.io.NotSerializableException: org.jboss.ejb.plugins.local.BaseLocalC
      ontainerInvoker$EntityProxy
      java.io.NotSerializableException: org.jboss.ejb.plugins.local.BaseLocalContainer
      Invoker$EntityProxy
      at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)

      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
      at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:
      1841)
      at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java
      :480)
      at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)

      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
      at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:
      1841)
      at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java
      :480)
      at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)

      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
      at org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.passivate
      Session(StatefulSessionFilePersistenceManager.java:288)
      at org.jboss.ejb.plugins.StatefulSessionInstanceCache.passivate(Stateful
      SessionInstanceCache.java:68)
      at org.jboss.ejb.plugins.AbstractInstanceCache$1.execute(AbstractInstanc
      eCache.java:594)
      at org.jboss.util.WorkerQueue$QueueLoop.run(WorkerQueue.java:206)
      at java.lang.Thread.run(Thread.java:484)
      10:05:36,930 INFO [MainDeployer] not deleting localUrl, it is null or not a cop
      y: njar:file:/C:/jboss3/server/default/tmp/deploy/C/jboss3/server/default/deploy
      /airpass.ear/79.airpass.ear^/ejb-jar-ic9.jar
      10:05:36,930 INFO [MainDeployer] Undeployed njar:file:/C:/jboss3/server/default
      /tmp/deploy/C/jboss3/server/default/deploy/airpass.ear/79.airpass.ear^/ejb-jar-i
      c9.jar
      10:05:36,940 INFO [EjbModule] Destroying
      10:05:36,950 INFO [EjbModule] Remove JSR-77 EJB Module: jboss.management.single
      :J2EEApplication=airpass.ear,J2EEServer=Single,j2eeType=EJBModule,name=ejb-jar-i
      c91.jar
      10:05:36,960 ERROR [Log4jService$ThrowableListenerLoggingAdapter] unhandled thro
      wable
      java.lang.NullPointerException
      at org.jboss.ejb.plugins.AbstractInstanceCache$1.execute(AbstractInstanc
      eCache.java:616)
      at org.jboss.util.WorkerQueue$QueueLoop.run(WorkerQueue.java:206)
      at java.lang.Thread.run(Thread.java:484)
      10:05:36,960 ERROR [Log4jService$ThrowableListenerLoggingAdapter] unhandled thro
      --------------------------------------------------

      Has somebody experienced similar problems?
      Is this a Bug or problem with my code?
      I did declared "transient" all non serializable objects inside my EJBs.