1 Reply Latest reply on Dec 18, 2009 2:34 PM by German Escobar

    htmlpanelgroup passivation error

    Sascha Janz Master
      i use a stateful session bean in my application with bindings to some htmlpanelgroups

      every htmlpanelgroup is annotated with transient like this

           @Transient
           HtmlPanelGroup rowdatagrid;


      but i get an Problem Passivation thread with following exception.

      any hints what to do?

      18:59:38,487 ERROR [WorkflowPageBean] problem passivation thread
      javax.ejb.EJBException: Could not passivate; failed to save state
              at org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.pas
      sivateSession(StatefulSessionFilePersistenceManager.java:406)
              at org.jboss.ejb3.cache.simple.SimpleStatefulCache.passivate(SimpleState
      fulCache.java:301)
              at org.jboss.ejb3.cache.simple.SimpleStatefulCache$SessionTimeoutTask.ru
      n(SimpleStatefulCache.java:209)
      Caused by: java.io.IOException
              at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod
      (RegularObjectPersister.java:129)
              at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(Regula
      rObjectPersister.java:86)
              at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularOb
      jectPersister.java:62)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObje
      ct(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOut
      put.writeObject(DataContainer.java:206)
              at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields
      (RegularObjectPersister.java:182)
              at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(Regula
      rObjectPersister.java:90)
              at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularOb
      jectPersister.java:62)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObje
      ct(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOut
      put.writeObject(DataContainer.java:206)
              at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields
      (RegularObjectPersister.java:182)
              at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(Regula
      rObjectPersister.java:90)
              at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularOb
      jectPersister.java:62)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObje
      ct(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOut
      put.writeObject(DataContainer.java:206)
              at org.jboss.serial.persister.ArrayPersister.saveObjectArray(ArrayPersis
      ter.java:110)
              at org.jboss.serial.persister.ArrayPersister.writeData(ArrayPersister.ja
      va:101)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObje
      ct(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOut
      put.writeObject(DataContainer.java:206)
              at org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBoss
      ObjectOutputStream.java:181)
              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
              at org.jboss.serial.io.MarshalledObject.<init>(MarshalledObject.java:51)

              at org.jboss.ejb3.stateful.StatefulBeanContext.writeExternal(StatefulBea
      nContext.java:857)
              at org.jboss.serial.persister.ExternalizePersister.writeData(Externalize
      Persister.java:58)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObje
      ct(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOut
      put.writeObject(DataContainer.java:206)
              at org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBoss
      ObjectOutputStream.java:181)
              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
              at org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.pas
      sivateSession(StatefulSessionFilePersistenceManager.java:390)
              ... 2 more
      Caused by: java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod
      (RegularObjectPersister.java:120)
              ... 30 more
      Caused by: java.lang.NullPointerException
              at javax.faces.component.UIComponentBase.saveAttachedState(UIComponentBa
      se.java:1369)
              at javax.faces.component.UIComponentBase.saveBindingsState(UIComponentBa
      se.java:1477)
              at javax.faces.component.UIComponentBase.saveState(UIComponentBase.java:
      1266)
              at javax.faces.component.html.HtmlPanelGroup.saveState(HtmlPanelGroup.ja
      va:170)
              at javax.faces.component.UIComponentBase$AttributesMap.writeObject(UICom
      ponentBase.java:1824)
              ... 35 more
      19:04:38,476 FATAL [RegularObjectPersister] error
      java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod
      (RegularObjectPersister.java:120)
              at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(Regula
      rObjectPersister.java:86)
              at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularOb
      jectPersister.java:62)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObje
      ct(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOut
      put.writeObject(DataContainer.java:206)
              at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields
      (RegularObjectPersister.java:182)
              at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(Regula
      rObjectPersister.java:90)
              at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularOb
      jectPersister.java:62)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObje
      ct(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOut
      put.writeObject(DataContainer.java:206)
              at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields
      (RegularObjectPersister.java:182)
              at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(Regula
      rObjectPersister.java:90)
              at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularOb
      jectPersister.java:62)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObje
      ct(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOut
      put.writeObject(DataContainer.java:206)
              at org.jboss.serial.persister.ArrayPersister.saveObjectArray(ArrayPersis
      ter.java:110)
              at org.jboss.serial.persister.ArrayPersister.writeData(ArrayPersister.ja
      va:101)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObje
      ct(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOut
      put.writeObject(DataContainer.java:206)
              at org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBoss
      ObjectOutputStream.java:181)
              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
              at org.jboss.serial.io.MarshalledObject.<init>(MarshalledObject.java:51)

              at org.jboss.ejb3.stateful.StatefulBeanContext.writeExternal(StatefulBea
      nContext.java:857)
              at org.jboss.serial.persister.ExternalizePersister.writeData(Externalize
      Persister.java:58)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObje
      ct(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOut
      put.writeObject(DataContainer.java:206)
              at org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBoss
      ObjectOutputStream.java:181)
              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
              at org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.pas
      sivateSession(StatefulSessionFilePersistenceManager.java:390)
              at org.jboss.ejb3.cache.simple.SimpleStatefulCache.passivate(SimpleState
      fulCache.java:301)
              at org.jboss.ejb3.cache.simple.SimpleStatefulCache$SessionTimeoutTask.ru
      n(SimpleStatefulCache.java:209)
      Caused by: java.lang.NullPointerException
              at javax.faces.component.UIComponentBase.saveAttachedState(UIComponentBa
      se.java:1369)
              at javax.faces.component.UIComponentBase.saveBindingsState(UIComponentBa
      se.java:1477)
              at javax.faces.component.UIComponentBase.saveState(UIComponentBase.java:
      1266)
              at javax.faces.component.html.HtmlPanelGroup.saveState(HtmlPanelGroup.ja
      va:170)
              at javax.faces.component.UIComponentBase$AttributesMap.writeObject(UICom
      ponentBase.java:1824)
              ... 35 more