Exception [IllegalStateException: Expected one insert row but got 0] when I try to persist cache entry into database with JBoss Cache

Solution Verified - Updated -

Issue

  • We are utilizing JBoss Cache with the JDBCCacheLoader to persist cache entries to an Oracle DB. When we try to persist a new entry we see this exception:

    Caused by: java.lang.IllegalStateException: Expected one insert row but got 0
        at org.jboss.cache.loader.AdjListJDBCCacheLoader.insertNode(AdjListJDBCCacheLoader.java:552)
    

Environment

  • Red Hat JBoss Enterprise Application Platform (JBoss EAP)
    • 5.x

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