"IllegalStateException: Expected one insert row but got 0" when using a JDBC cache loader with JBoss Cache

Solution Verified - Updated -

Issue

  • When persisting cache entries to a database in JBoss Cache with the JDBCCacheLoader, the following exception is thrown:

    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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.