Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-657

StatefulBean passivation is broken (ClassCastException in org.jboss.ejb3.stateful.NestedStatefulBeanContext)

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: EJB 3.0 RC8 - FD
    • Fix Version/s: AS 4.2.0 GA
    • Component/s: None
    • Labels:
      None

      Description

      StatefulBean passivation is broken, because there is a conflict between what gets serialized (attribute contains) and what gets unserialized (attribute beanMO).

      11:41:37,109 ERROR [STDERR] Caused by: java.lang.ClassCastException: java.util.ArrayList
      11:41:37,109 ERROR [STDERR] at org.jboss.ejb3.stateful.NestedStatefulBeanContext.readExternal(Neste
      dStatefulBeanContext.java:60)
      11:41:37,109 ERROR [STDERR] at org.jboss.serial.persister.ExternalizePersister.readData(Externalize
      Persister.java:72)
      11:41:37,109 ERROR [STDERR] at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectD
      escriptionFromStreaming(ObjectDescriptorFactory.java:411)
      11:41:37,109 ERROR [STDERR] at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromD
      escription(ObjectDescriptorFactory.java:81)
      11:41:37,109 ERROR [STDERR] at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectIn
      put.readObject(DataContainer.java:639)
      11:41:37,109 ERROR [STDERR] at org.jboss.serial.persister.ObjectInputStreamProxy.readObjectOverride
      (ObjectInputStreamProxy.java:68)
      11:41:37,109 ERROR [STDERR] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:333)
      11:41:37,109 ERROR [STDERR] at java.util.ArrayList.readObject(ArrayList.java:592)
      11:41:37,109 ERROR [STDERR] ... 74 more

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ben.wang Ben Wang (Inactive)
                  Reporter:
                  wolfc Carlo de Wolf
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: