CacheFullException After Calling remove() On Entity Beans (Doc ID 1587026.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version 12.1.1.0 and later
Information in this document applies to any platform.

Symptoms

Facing "weblogic.ejb20.cache.CacheFullException: cache size after cleaning=50, max allowable cache size=50, extra free space required but not obtainable = 1" while a cmp managed entity bean rolling back immediately after calling remove().

SessionBean (RequiresNew) calls remove() on EntityBean (Required) and directly afterwards an exception is thrown which leads to sessionContext.setRollbackOnly().
    /**
     * @ejb.interface-method view-type="remote"
     */
    public void remove(Long id) throws Exception {
        try {
            TestEntity testEntity = testEntityHome.findByPrimaryKey(id);
            testEntity.remove();

            throw new RuntimeException("Test");

        } catch (Exception e) {
            sessionContext.setRollbackOnly();
        }

    }

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms