org.jboss.cache.optimistic.DataVersioningException in JBoss EPP 5

Solution Verified - Updated -

Issue

The following errors occur in EPP 5 under load.

WARN  [org.jboss.cache.interceptors.OptimisticTxInterceptor] (ajp-xxx.xxx.xxx.xxx-8009-35) Caught exception, will now set transaction to roll back
org.jboss.cache.optimistic.DataVersioningException: Transaction attempted to create /org/hibernate/cache/StandardQueryCache/QUERY/sql: select this_.ID as ID6_0_, this_.NAME as NAME6_0_ from jbid_realm this_ where this_.NAME=?; parameters: idm_realm_commdash, ; transformer: org.hibernate.transform.CacheableResultTransformer@110f2 anew.  It has already been created since this transaction started, by another (possibly remote) transaction.  We have a concurrent creation event.
    at org.jboss.cache.interceptors.OptimisticValidatorInterceptor.visitOptimisticPrepareCommand(OptimisticValidatorInterceptor.java:116)
    at org.jboss.cache.commands.tx.OptimisticPrepareCommand.acceptVisitor(OptimisticPrepareCommand.java:55)
    at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
  • How to use MVCC for JBoss cache node locking in JBoss Portal 5?

Environment

  • Red Hat JBoss Enterprise Portal Platform (EPP)

    • 5.1
    • 5.2
  • Red Hat Enterprise Application Platform (EAP)

    • 5.x (when conf files have been migrated from EAP 4)

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