Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Hibernate JIRA by Arcadiy Ivanov, 1 year ago
Newer version [null] of entity [[com.csc.hibernate146.Person#2]] found in database
via Hibernate JIRA by Arcadiy Ivanov, 2 years ago
Newer version [null] of entity [[com.csc.hibernate146.Person#2]] found in database
via Stack Overflow by TISid
, 2 years ago
Newer version [3] of entity [[com.careem.backend.domain.model.Booking#23153]] found in database
via Stack Overflow by Andreas_D
, 2 years ago
Newer version [null] of entity [[com.example.entities.MyEntity#10001]] found in database
org.hibernate.OptimisticLockException: Newer version [null] of entity [[com.csc.hibernate146.Person#2]] found in database	at org.hibernate.action.internal.EntityVerifyVersionProcess.doBeforeTransactionCompletion(EntityVerifyVersionProcess.java:60)	at org.hibernate.engine.spi.ActionQueue$BeforeTransactionCompletionProcessQueue.beforeTransactionCompletion(ActionQueue.java:715)	at org.hibernate.engine.spi.ActionQueue.beforeTransactionCompletion(ActionQueue.java:389)	at org.hibernate.internal.SessionImpl.beforeTransactionCompletion(SessionImpl.java:516)	at org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorNonTrackingImpl.beforeCompletion(SynchronizationCallbackCoordinatorNonTrackingImpl.java:119)	at org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization.beforeCompletion(RegisteredSynchronization.java:50)	at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:76)	at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:358)	at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:91)	at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:162)	at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1166)	at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126)	at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)	at org.jboss.as.ejb3.tx.CMTTxInterceptor.endTransaction(CMTTxInterceptor.java:93)	at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:277)	at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:340)	at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)	at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)	at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)	at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:95)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)	at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)	at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)	at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)	at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)	at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)	at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)	at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:448)	at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)	at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)	at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)	at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)	at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:185)	at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:182)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)	at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)	at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)	at com.csc.hibernate146.PersonManagementBean$$$view1.getByNameAndDeletePersonLocked(Unknown Source)	at com.csc.hibernate146.test.Hibernate146Test.createAndDeletePersonLocked(Hibernate146Test.java:59)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:606)	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)	at org.jboss.arquillian.junit.Arquillian$6$1.invoke(Arquillian.java:301)	at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:606)	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)	at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)	at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)	at org.jboss.arquillian.container.test.impl.execution.ContainerTestExecuter.execute(ContainerTestExecuter.java:38)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:606)	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)	at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)	at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:102)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:606)	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)	at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:84)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:606)	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)	at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:65)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:606)	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)	at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:111)	at org.jboss.arquillian.junit.Arquillian$6.evaluate(Arquillian.java:294)	at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:267)	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)	at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:193)	at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:345)	at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:49)	at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:207)	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)	at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:155)	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)	at org.junit.runner.JUnitCore.run(JUnitCore.java:138)	at org.jboss.arquillian.junit.container.JUnitTestRunner.execute(JUnitTestRunner.java:66)	at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.executeTest(ServletTestRunner.java:160)	at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.execute(ServletTestRunner.java:126)	at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.doGet(ServletTestRunner.java:90)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)	at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)	at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)	at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)	at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)	at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113)	at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56)	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)	at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)	at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61)	at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)	at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)	at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)	at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)	at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240)	at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)	at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)	at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)	at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177)	at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)	at java.lang.Thread.run(Thread.java:745)