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 harry clark, 1 year ago
could not obtain pessimistic lock
via Hibernate JIRA by harry clark, 1 year ago
could not obtain pessimistic lock
java.sql.SQLException: [SQL0104] Token UPDATE was not valid. Valid tokens: EXCLUSIVE.	at com.ibm.as400.access.JDError.throwSQLException(JDError.java:650)	at com.ibm.as400.access.JDError.throwSQLException(JDError.java:621)	at com.ibm.as400.access.AS400JDBCStatement.commonPrepare(AS400JDBCStatement.java:1557)	at com.ibm.as400.access.AS400JDBCPreparedStatement.(AS400JDBCPreparedStatement.java:193)	at com.ibm.as400.access.AS400JDBCConnection.prepareStatement(AS400JDBCConnection.java:2025)	at com.ibm.as400.access.AS400JDBCConnection.prepareStatement(AS400JDBCConnection.java:1824)	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:601)	at org.hibernate.engine.jdbc.internal.proxy.ConnectionProxyHandler.continueInvocation(ConnectionProxyHandler.java:138)	at org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.invoke(AbstractProxyHandler.java:81)	at sun.proxy.$Proxy21.prepareStatement(Unknown Source)	at org.hibernate.engine.jdbc.internal.StatementPreparerImpl$1.doPrepare(StatementPreparerImpl.java:84)	at org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:166)	at org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareStatement(StatementPreparerImpl.java:71)	at org.hibernate.dialect.lock.PessimisticWriteSelectLockingStrategy.lock(PessimisticWriteSelectLockingStrategy.java:75)	at org.hibernate.persister.entity.AbstractEntityPersister.lock(AbstractEntityPersister.java:1896)	at org.hibernate.event.internal.AbstractLockUpgradeEventListener.upgradeLock(AbstractLockUpgradeEventListener.java:99)	at org.hibernate.event.internal.DefaultLockEventListener.onLock(DefaultLockEventListener.java:85)	at org.hibernate.internal.SessionImpl.fireLock(SessionImpl.java:811)	at org.hibernate.internal.SessionImpl.fireLock(SessionImpl.java:804)	at org.hibernate.internal.SessionImpl.access$2000(SessionImpl.java:172)	at org.hibernate.internal.SessionImpl$LockRequestImpl.lock(SessionImpl.java:2365)	at com.kve.vanguard.model.orm.dao.Dao.lock(Dao.java:258)	at com.kve.locktest.main.Main.main(Main.java:46)