  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | - StaleStateException from entity activation | - StaleStateException from entity activation 2007-07-12 - By matt.drees
Back Hi,
I'm getting the following exception in a test of mine. The FacesRequest previous to it ended a nested conversation, and also updated the entity in question. I'm not sure if this is my problem or Seam's. Any ideas? Thanks!
| org.hibernate.StaleStateException : current database version number does not match passivated version number | at org.jboss.seam.persistence.HibernatePersistenceProvider.checkVersion (HibernatePersistenceProvider.java:174) | at org.jboss.seam.persistence.HibernatePersistenceProvider.checkVersion (HibernatePersistenceProvider.java:134) | at org.jboss.seam.contexts.PassivatedEntity.checkVersion(PassivatedEntity .java:133) | at org.jboss.seam.contexts.PassivatedEntity.getEntityFromEntityManager (PassivatedEntity.java:118) | at org.jboss.seam.contexts.PassivatedEntity.toEntityReference (PassivatedEntity.java:73) | at org.jboss.seam.contexts.EntityBean.activate(EntityBean.java:67) | at org.jboss.seam.contexts.ServerConversationContext.unflush (ServerConversationContext.java:234) | at org.jboss.seam.contexts.FacesLifecycle.resumeConversation (FacesLifecycle.java:129) | at org.jboss.seam.jsf.SeamPhaseListener.afterRestoreView(SeamPhaseListener .java:373) | at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase (SeamPhaseListener.java:211) | at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java :184) | at org.jboss.seam.mock.BaseSeamTest$Request.restoreViewPhase(BaseSeamTest .java:706) | at org.jboss.seam.mock.BaseSeamTest$Request.emulateJsfLifecycle (BaseSeamTest.java:544) | at org.jboss.seam.mock.BaseSeamTest$Request.run(BaseSeamTest.java:487) | at org.uscm.crs.registration.CustomQuestionsAdmin.recreateCustomQuestions (CustomQuestionsAdmin.java:200) | at org.uscm.crs.registration.CustomQuestionsAdmin.adminCreatingQuestions (CustomQuestionsAdmin.java:101) | 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 (Method.java:585) | at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:645) | at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:479) | ... | at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:122) |
| cid = new FacesRequest(expectedEditPage, cid) { | | @(protected) | protected void updateModelValues() throws Exception { | assert Manager.instance().isNestedConversation(); | assert Manager.instance().isLongRunningConversation(); | Context conversationContext = Contexts.getConversationContext(); | assert conversationContext.get("conference") != null; | setValue("#{customQuestionsDisplayListItemHome.instance.text}", text); | } | | @(protected) | protected void invokeApplication() throws Exception { | invokeAction("#{customQuestionsDisplayListItemHome.persist}"); / /ends nested conversation via navigation rule | } | | }.run(); | | cid = new NonFacesRequest(conferencePage, cid) { | }.run(); //exception occurs here | |
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic &p=4063331#4063331
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode =reply&p=4063331 __ ____ ____ ____ ____ ____ ____ ____ ____ ____ jboss-user mailing list jboss-user@(protected) https://lists.jboss.org/mailman/listinfo/jboss-user
|
|
 |