0 Replies Latest reply on Jul 26, 2011 11:56 AM by Hong Kong

    NotSerializableException in seam AnnotatedBeanProperty

    Hong Kong Newbie

      When i switch between debug false/true, I get a NotSerializableException when the session tries to serialize identity and remember me while debug is false.
      I have not extended these two classes.
      (with debug true this Exception does not show, but it is very slow 22 seconds for the first request instead of 8)


      16:40:25,558 WARN  [[/]] Cannot serialize session attribute org.jboss.seam.security.identity for session A83F6E955AF2A0C1D3331F5410829A6C
      java.io.NotSerializableException: org.jboss.seam.util.AnnotatedBeanProperty
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
              at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1515)
              at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:959)
              at org.apache.catalina.session.FileStore.save(FileStore.java:372)
              at org.apache.catalina.session.PersistentManagerBase.writeSession(PersistentManagerBase.java:850)
              at org.apache.catalina.session.PersistentManagerBase.swapOut(PersistentManagerBase.java:821)
              at org.apache.catalina.session.PersistentManagerBase.processMaxIdleSwaps(PersistentManagerBase.java:1041)
              at org.apache.catalina.session.PersistentManagerBase.processPersistenceChecks(PersistentManagerBase.java:569)
              at org.apache.catalina.session.PersistentManagerBase.processExpires(PersistentManagerBase.java:550)
              at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:666)
              at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1315)
              at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1600)
              at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1609)
              at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1609)
              at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1589)
              at java.lang.Thread.run(Thread.java:662)




      16:40:25,560 WARN  [[/]] Cannot serialize session attribute org.jboss.seam.security.rememberMe for session 79A5FC121813A35A2C0C4D3F3ECAFB46
      java.io.NotSerializableException: org.jboss.seam.util.AnnotatedBeanProperty
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
              at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1515)
              at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:959)
              at org.apache.catalina.session.FileStore.save(FileStore.java:372)
              at org.apache.catalina.session.PersistentManagerBase.writeSession(PersistentManagerBase.java:850)
              at org.apache.catalina.session.PersistentManagerBase.swapOut(PersistentManagerBase.java:821)
              at org.apache.catalina.session.PersistentManagerBase.processMaxIdleSwaps(PersistentManagerBase.java:1041)
              at org.apache.catalina.session.PersistentManagerBase.processPersistenceChecks(PersistentManagerBase.java:569)
              at org.apache.catalina.session.PersistentManagerBase.processExpires(PersistentManagerBase.java:550)
              at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:666)
              at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1315)
              at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1600)
              at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1609)
              at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1609)
              at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1589)
              at java.lang.Thread.run(Thread.java:662)