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)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • AS 4.2.0 GA
    • EJB 3.0 RC8 - FD
    • None
    • None

      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

              ben.wang_jira Ben Wang (Inactive)
              rhn-engineering-cdewolf Carlo de Wolf
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: