2 Replies Latest reply on Feb 19, 2010 9:29 AM by Marcello Marchesoli

    Problems to run Seam 2.2.0.GA in Clustered JBoss EAP 4.3

    Marcello Marchesoli Newbie
      Hi, I'm trying to run a Seam application on JBoss EAP 4.3 with Seam 2.2.0 GA.
      The starting of the server is Ok and I have no errors. At the moment to use the application I have the following errors:

      17:43:07,116 ERROR [JBossCacheService] externalizeSession(): exception occurred externalizing session SessionBasedClusteredSession[id: 5A5C89A99B74A315BC04CFD2476E4366 lastAccessedTime: 1266511382507 version: 2 lastOutdated: 0]
      java.io.NotSerializableException: org.jboss.seam.util.AnnotatedBeanProperty
           at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)

      Of course the error is telling me that AnnotatedBeanProperty is not serializable.
      It's sound very strange to me because if I'm using EJB3 with annotations it should work.

      I was looking arround but I cannot find any clue or solution.

      Any idea???

      Thanks

      Marcello
        • 1. Re: Problems to run Seam 2.2.0.GA in Clustered JBoss EAP 4.3
          Nikolay Elenkov Master

          Marcello Marchesoli wrote on Feb 18, 2010 18:15:


          Of course the error is telling me that AnnotatedBeanProperty is not serializable.
          It's sound very strange to me because if I'm using EJB3 with annotations it should work.



          It seems AnnotatedBeanProperty is used in JpaIdentityStore and friends which are Serializable. So it is a bug, you should file a JIRA.
          Did you customize JpaIdentityStore in some way? By default it is application scoped, so it is strange that you are getting session
          serialization errors. Post the full stack trace.


          • 2. Re: Problems to run Seam 2.2.0.GA in Clustered JBoss EAP 4.3
            Marcello Marchesoli Newbie
            I was cheking the code to see is there is any costumization of JpaIdentityStore. At the moment I didn't find.

            I post the full stack trace.

            09:23:53,329 ERROR [JBossCacheService] externalizeSession(): exception occurred externalizing session SessionBasedClusteredSession[id: QDahPJU8K5sMzSZxFUG9jA** lastAccessedTime: 1266567828501 version: 2 lastOutdated: 0]
            java.io.NotSerializableException: org.jboss.seam.util.AnnotatedBeanProperty
                 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
                 at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
                 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
                 at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
                 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
                 at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
                 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
                 at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
                 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
                 at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
                 at java.util.ArrayList.writeObject(ArrayList.java:570)
                 at sun.reflect.GeneratedMethodAccessor276.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
                 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
                 at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
                 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
                 at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
                 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
                 at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
                 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
                 at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
                 at java.util.concurrent.ConcurrentHashMap.writeObject(ConcurrentHashMap.java:1247)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
                 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
                 at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
                 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
                 at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
                 at org.jboss.web.tomcat.service.session.SessionBasedClusteredSession.writeExternal(SessionBasedClusteredSession.java:175)
                 at org.jboss.web.tomcat.service.session.JBossCacheService.externalizeSession(JBossCacheService.java:1033)
                 at org.jboss.web.tomcat.service.session.JBossCacheService.putSession(JBossCacheService.java:322)
                 at org.jboss.web.tomcat.service.session.JBossCacheClusteredSession.processSessionRepl(JBossCacheClusteredSession.java:125)
                 at org.jboss.web.tomcat.service.session.JBossCacheManager.processSessionRepl(JBossCacheManager.java:1153)
                 at org.jboss.web.tomcat.service.session.JBossCacheManager.storeSession(JBossCacheManager.java:702)
                 at org.jboss.web.tomcat.service.session.InstantSnapshotManager.snapshot(InstantSnapshotManager.java:49)
                 at org.jboss.web.tomcat.service.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:108)
                 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
                 at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
                 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                 at java.lang.Thread.run(Thread.java:619)