java.sql.SQLException: Interrupted attempting lock in EAP 6

Solution In Progress - Updated -

Issue

  • ERROR java.sql.SQLException: Interrupted attempting lock while preparing a statement
... ERROR ... java.sql.SQLException: Interrupted attempting lock: org.jboss.jca.adapters.jdbc.xa.XAManagedConnection...
    at org.jboss.jca.adapters.jdbc.BaseWrapperManagedConnection.tryLock(BaseWrapperManagedConnection.java:408)
    at org.jboss.jca.adapters.jdbc.WrappedConnection.lock(WrappedConnection.java:147)
    at org.jboss.jca.adapters.jdbc.WrappedConnection.prepareStatement(WrappedConnection.java:395)
    ...
  • WARN java.sql.SQLException: Interrupted attempting lock on transaction reaper thread and CPU/Memory spike followed by OutOfMemoryException
... WARN  ... exception clearing maxRows/queryTimeout: java.sql.SQLException: Interrupted attempting lock: org.jboss.jca.adapters.jdbc.local.LocalManagedConnection...
    at org.jboss.jca.adapters.jdbc.BaseWrapperManagedConnection.tryLock(BaseWrapperManagedConnection.java:402)
    at org.jboss.jca.adapters.jdbc.WrappedConnection.lock(WrappedConnection.java:146)
    at org.jboss.jca.adapters.jdbc.WrappedStatement.lock(WrappedStatement.java:114)
    at org.jboss.jca.adapters.jdbc.WrappedStatement.getMaxRows(WrappedStatement.java:541)
    at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:298)
    at org.hibernate.jdbc.AbstractBatcher.closeStatements(AbstractBatcher.java:369)
    at org.hibernate.jdbc.ConnectionManager.afterTransaction(ConnectionManager.java:320)
    at org.hibernate.jdbc.JDBCContext.afterTransactionCompletion(JDBCContext.java:269)
    at org.hibernate.transaction.synchronization.CallbackCoordinator.afterCompletion(CallbackCoordinator.java:146)
    at org.hibernate.transaction.synchronization.HibernateSynchronizationImpl.afterCompletion(HibernateSynchronizationImpl.java:59)
    at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.afterCompletion(SynchronizationImple.java:96)
    at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.afterCompletion(TwoPhaseCoordinator.java:402)
    ...
    at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.cancel(TwoPhaseCoordinator.java:120)
    ...
    at com.arjuna.ats.internal.arjuna.coordinator.ReaperWorkerThread.run(ReaperWorkerThread.java:78)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content