openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "C N Davies" <...@cndavies.com>
Subject RE: tomcat6+openjpa+jsf
Date Mon, 31 May 2010 15:43:45 GMT
>From your stack trace it looks like there is a little more going on than I
orginally understood to be the case, are you sure all this is being done in
a single call to your servlet? I think that moving your find inside the
transaction will fix the issue.



-----Original Message-----
From: davidautentico [mailto:davidautentico@hotmail.com] 
Sent: Tuesday, 1 June 2010 1:29 AM
To: users@openjpa.apache.org
Subject: RE: tomcat6+openjpa+jsf


Same error :

javax.faces.el.EvaluationException: <openjpa-2.0.0-r422266:935683 fatal
store error> org.apache.openjpa.persistence.RollbackException: Optimistic
locking errors were detected when flushing to the data store.  The following
objects may have been concurrently modified in another transaction:
[coreservlets.Person-1]
	at
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBind
ingMethodExpressionAdapter.java:102)
	at
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImp
l.java:102)
	at javax.faces.component.UICommand.broadcast(UICommand.java:315)
	at
javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:775)
	at
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1267)
	at
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhas
e.java:82)
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	at
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:233)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127
)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102
)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http
11Protocol.java:588)
	at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Thread.java:619)
Caused by: <openjpa-2.0.0-r422266:935683 fatal store error>
org.apache.openjpa.persistence.RollbackException: Optimistic locking errors
were detected when flushing to the data store.  The following objects may
have been concurrently modified in another transaction:
[coreservlets.Person-1]
	at
org.apache.openjpa.persistence.EntityManagerImpl.commit(EntityManagerImpl.ja
va:583)
	at coreservlets.PersonManager.persist1(PersonManager.java:108)
	at coreservlets.HealthPlanBean.signup(HealthPlanBean.java:12)
	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 org.apache.el.parser.AstValue.invoke(AstValue.java:191)
	at
org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
	at
com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.jav
a:98)
	at
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBind
ingMethodExpressionAdapter.java:88)
	... 20 more
Caused by: <openjpa-2.0.0-r422266:935683 nonfatal store error>
org.apache.openjpa.persistence.OptimisticLockException: Optimistic locking
errors were detected when flushing to the data store.  The following objects
may have been concurrently modified in another transaction:
[coreservlets.Person-1]
	at
org.apache.openjpa.kernel.BrokerImpl.newFlushException(BrokerImpl.java:2291)
	at org.apache.openjpa.kernel.BrokerImpl.flush(BrokerImpl.java:2139)
	at
org.apache.openjpa.kernel.BrokerImpl.flushSafe(BrokerImpl.java:2037)
	at
org.apache.openjpa.kernel.BrokerImpl.beforeCompletion(BrokerImpl.java:1955)
	at
org.apache.openjpa.kernel.LocalManagedRuntime.commit(LocalManagedRuntime.jav
a:81)
	at org.apache.openjpa.kernel.BrokerImpl.commit(BrokerImpl.java:1479)
	at
org.apache.openjpa.kernel.DelegatingBroker.commit(DelegatingBroker.java:925)
	at
org.apache.openjpa.persistence.EntityManagerImpl.commit(EntityManagerImpl.ja
va:559)
	... 30 more
Caused by: <openjpa-2.0.0-r422266:935683 nonfatal store error>
org.apache.openjpa.persistence.OptimisticLockException: An optimistic lock
violation was detected when flushing object instance "coreservlets.Person-1"
to the data store.  This indicates that the object was concurrently modified
in another transaction.
FailedObject: coreservlets.Person-1
	at
org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flushAndUpdate(P
reparedStatementManagerImpl.java:123)
	at
org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flushInternal(Pr
eparedStatementManagerImpl.java:99)
	at
org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flush(PreparedSt
atementManagerImpl.java:87)
	at
org.apache.openjpa.jdbc.kernel.OperationOrderUpdateManager.flushPrimaryRow(O
perationOrderUpdateManager.java:203)
	at
org.apache.openjpa.jdbc.kernel.OperationOrderUpdateManager.flush(OperationOr
derUpdateManager.java:89)
	at
org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.flush(AbstractUpdateMan
ager.java:103)
	at
org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.flush(AbstractUpdateMan
ager.java:76)
	at
org.apache.openjpa.jdbc.kernel.JDBCStoreManager.flush(JDBCStoreManager.java:
751)
	at
org.apache.openjpa.kernel.DelegatingStoreManager.flush(DelegatingStoreManage
r.java:131)
	... 37 more

------
Maybe it is something related to my JSF version. Im using JSF 1.2
-- 
View this message in context:
http://openjpa.208410.n2.nabble.com/tomcat6-openjpa-jsf-tp5120836p5122221.ht
ml
Sent from the OpenJPA Users mailing list archive at Nabble.com.


Mime
View raw message