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 11.1.1.3.0 to 11.1.1.5.0 [Release Oracle11g]
Information in this document applies to any platform.

Symptoms

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:

 

java.lang.NullPointerException
at test.TestEntity._persistence_set(Unknown Source)
at org.eclipse.persistence.internal.descriptors.PersistenceObjectAttributeAccessor.setAttributeValueInObject(PersistenceObjectAttributeAccessor.java:46)
at org.eclipse.persistence.mappings.DatabaseMapping.setAttributeValueInObject(DatabaseMapping.java:1368)
at org.eclipse.persistence.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1259)

 

 

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
Cause
Solution
References

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