CMP Deployment fails with BufferOverflowException, OutOfMemory, Code Too Large errors
(Doc ID 329706.1)
Last updated on AUGUST 25, 2023
Applies to:Oracle Containers for J2EE - Version 10.1.2.0.0 and later
Information in this document applies to any platform.
CMP EJB with many fields (e.g., over 400)
You are deploying a J2EE application to Oracle Containers for J2EE standalone or running as a component of the fuller Oracle Application Server product. Your application contains an EJB module where you are utilizing Container Managed Persistence (CMP) and have an Entity bean whose implementation contains a large number of fields to be persisted (>400).
During deployment you encounter the following, unexpected, deployment error:
If you are able to comment out many of the persistent fields to significantly reduce the number of fields used by the affected bean then the application may successfully deploy with no other changes.
It is possible that you have recently migrated from an OC4J release prior to 10.1.2, where there was a fixed 512-field limit imposed on CMP Entity beans, or have recently modified the implementation of one of the entity beans such that the number and size of fields increased and exposed the error.
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