Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 323471

Summary: NullPointerException in class ObjectReferenceMapping
Product: z_Archived Reporter: Mikael Nousiainen <mikael.nousiainen>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Mikael Nousiainen CLA 2010-08-24 05:31:33 EDT
Build Identifier: 2.1.0.v20100614-r7608

See discussion in: http://www.eclipse.org/forums/index.php?t=rview&goto=554630

Stack trace:

java.lang.NullPointerException: null
        at org.eclipse.persistence.mappings.ObjectReferenceMapping.setNewValueInChangeRecord(ObjectReferenceMapping.java:186) ~[org.eclipse.persistence.core_2.1.0.v20100614-r7608.jar:2.1.0.v20100614-r7608]
        at org.eclipse.persistence.mappings.ObjectReferenceMapping.internalBuildChangeRecord(ObjectReferenceMapping.java:175) ~[org.eclipse.persistence.core_2.1.0.v20100614-r7608.jar:2.1.0.v20100614-r7608]
        at org.eclipse.persistence.mappings.ObjectReferenceMapping.updateChangeRecord(ObjectReferenceMapping.java:1263) ~[org.eclipse.persistence.core_2.1.0.v20100614-r7608.jar:2.1.0.v20100614-r7608]
        at org.eclipse.persistence.internal.descriptors.changetracking.AttributeChangeListener.internalPropertyChange(AttributeChangeListener.java:149) ~[org.eclipse.persistence.core_2.1.0.v20100614-r7608.jar:2.1.0.v20100614-r7608]
        at org.eclipse.persistence.internal.descriptors.changetracking.AttributeChangeListener.propertyChange(AttributeChangeListener.java:111) ~[org.eclipse.persistence.core_2.1.0.v20100614-r7608.jar:2.1.0.v20100614-r7608]
        at com.moremr.wire.data.AbstractDataObject._persistence_propertyChange(AbstractDataObject.java) ~[wire-core-1.0-SNAPSHOT.jar:na]
        at com.moremr.papa.activity.da.data.SmsPushActivity._persistence_set_targetGroup(SmsPushActivity.java) ~[papa-data-1.0-SNAPSHOT.jar:na]
        at com.moremr.papa.activity.da.data.SmsPushActivity.setTargetGroup(SmsPushActivity.java:63) ~[papa-data-1.0-SNAPSHOT.jar:na]



Reproducible: Always

Steps to Reproduce:
See discussion in: http://www.eclipse.org/forums/index.php?t=rview&goto=554630
Comment 1 Tom Ware CLA 2010-08-24 08:06:29 EDT
Closing as INVALID because there is not enough information in the bug.  A pointer to a forum posting is insufficient.  Please add a description of the problem and how to recreate and then reopen.
Comment 2 Mikael Nousiainen CLA 2010-08-24 11:48:47 EDT
Sorry for posting too few details. I was already constructing a simple test case for this when I noticed that I was actually passing a *proxied* object (constructed using CGLIB) to the setter setTargetGroup(), which caused the NullPointerException as EclipseLink naturally did not recognize the proxied version of the class.

So the bug is indeed invalid and the problem is solved.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:21:58 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink