My Oracle Support Banner

NullPointerException When Reading Object With Mapped Database Column of Type CHAR Containing Just Space Characters With Weaving (Doc ID 1304382.1)

Last updated on OCTOBER 25, 2016

Applies to:

Oracle TopLink - Version to [Release Oracle11g]
Information in this document applies to any platform.


EclipseLink throws a NullPointerException when reading objects that have an attribute mapped to a database column of type CHAR containing only SPACE characters respectively NULL if weaving is enabled.

An error message and stack trace like the following appears:


at test.TestEntity._persistence_set(Unknown Source)
at org.eclipse.persistence.internal.descriptors.PersistenceObjectAttributeAccessor.setAttributeValueInObject(
at org.eclipse.persistence.mappings.DatabaseMapping.setAttributeValueInObject(
at org.eclipse.persistence.mappings.DatabaseMapping.readFromRowIntoObject(




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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.