javax.persistence.PersistenceException

org.hibernate.exception.LockAcquisitionException: could not load an entity: [org.apache.camel.examples.VersionedItem#1]

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web7

  • via Unknown by Chris Watts,
  • via Unknown by Chris Watts,
  • Stack trace

    • javax.persistence.PersistenceException: org.hibernate.exception.LockAcquisitionException: could not load an entity: [org.apache.camel.examples.VersionedItem#1] at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1387) at org.hibernate.ejb.AbstractEntityManagerImpl.refresh(AbstractEntityManagerImpl.java:949) 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.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:366) at com.sun.proxy.$Proxy20.refresh(Unknown Source) at org.apache.camel.component.jpa.JpaConsumer.lockEntity(JpaConsumer.java:315) at org.apache.camel.component.jpa.JpaConsumer.processBatch(JpaConsumer.java:171) at org.apache.camel.component.jpa.JpaConsumer$1.doInTransaction(JpaConsumer.java:118) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131) at org.apache.camel.component.jpa.JpaConsumer.poll(JpaConsumer.java:94) Caused by: org.hibernate.exception.LockAcquisitionException: could not load an entity: [org.apache.camel.examples.VersionedItem#1] at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:94) at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125) at org.hibernate.loader.Loader.loadEntity(Loader.java:2125) at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:82) at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:72) at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3927) at org.hibernate.event.internal.DefaultRefreshEventListener.onRefresh(DefaultRefreshEventListener.java:144) at org.hibernate.event.internal.DefaultRefreshEventListener.onRefresh(DefaultRefreshEventListener.java:63) at org.hibernate.internal.SessionImpl.fireRefresh(SessionImpl.java:1138) at org.hibernate.internal.SessionImpl.refresh(SessionImpl.java:1127) at org.hibernate.internal.SessionImpl.refresh(SessionImpl.java:1123) at org.hibernate.ejb.AbstractEntityManagerImpl.refresh(AbstractEntityManagerImpl.java:939)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.