CacheFullException After Calling remove() on Entity Beans
(Doc ID 1587026.1)
Last updated on SEPTEMBER 13, 2023
Applies to:
Oracle WebLogic Server - Version 12.1.1.0 and laterInformation 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();
}
}
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |