0 Replies Latest reply on Oct 16, 2013 1:27 PM by Cory Dahlstrom

    Seam 2.3 on JBoss 7.1.1 StaleStateException...

    Cory Dahlstrom Novice

      Afternoon,

       

      We are getting the below stack trace when we modify an entity in a nested conversation that was loaded in the parent conversation.  This issue is described here in an older version of Seam:  Problem with versionning and passivating entities.

      Does anyone know a solution to this issue?

       

      Thanks,

       

      Cory.

       

      13:50:57,214 WARN  [org.jboss.seam.jsf.SeamPhaseListener] (http-localhost-127.0.0.1-8080-1) uncaught exception, passing to exception handler: org.hibernate.StaleStateException: current database version number does not match passivated version number

          at org.jboss.seam.persistence.HibernatePersistenceProvider.checkVersion(HibernatePersistenceProvider.java:351) [jboss-seam.jar:2.3.0.Final]

          at org.jboss.seam.persistence.HibernatePersistenceProvider.checkVersion(HibernatePersistenceProvider.java:251) [jboss-seam.jar:2.3.0.Final]

          at org.jboss.seam.contexts.PassivatedEntity.checkVersion(PassivatedEntity.java:133) [jboss-seam.jar:2.3.0.Final]

          at org.jboss.seam.contexts.PassivatedEntity.getEntityFromEntityManager(PassivatedEntity.java:118) [jboss-seam.jar:2.3.0.Final]

          at org.jboss.seam.contexts.PassivatedEntity.toEntityReference(PassivatedEntity.java:73) [jboss-seam.jar:2.3.0.Final]

          at org.jboss.seam.contexts.EntityBean.activate(EntityBean.java:67) [jboss-seam.jar:2.3.0.Final]

          at org.jboss.seam.contexts.ServerConversationContext.unflush(ServerConversationContext.java:259) [jboss-seam.jar:2.3.0.Final]

          at org.jboss.seam.contexts.FacesLifecycle.resumeConversation(FacesLifecycle.java:175) [jboss-seam.jar:2.3.0.Final]

          at org.jboss.seam.contexts.Contexts.isPageContextActive(Contexts.java:123) [jboss-seam.jar:2.3.0.Final]

          at org.jboss.seam.jsf.SeamPhaseListener.afterRestoreView(SeamPhaseListener.java:388) [jboss-seam.jar:2.3.0.Final]

          at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:229) [jboss-seam.jar:2.3.0.Final]

          at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:195) [jboss-seam.jar:2.3.0.Final]

          at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-2.1.7-jbossorg-2.jar:]