Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] NullPointerException in sequence of persistent property mutations

On Thu, Sep 5, 2013 at 4:30 PM, Laird Nelson <ljnelson@xxxxxxxxx> wrote:
java.lang.NullPointerException
at org.eclipse.persistence.mappings.ObjectReferenceMapping.setNewValueInChangeRecord(ObjectReferenceMapping.java:218)
at org.eclipse.persistence.mappings.ObjectReferenceMapping.internalBuildChangeRecord(ObjectReferenceMapping.java:207)
at org.eclipse.persistence.mappings.ObjectReferenceMapping.updateChangeRecord(ObjectReferenceMapping.java:1400)
at org.eclipse.persistence.internal.descriptors.changetracking.AttributeChangeListener.internalPropertyChange(AttributeChangeListener.java:149)
at org.eclipse.persistence.internal.descriptors.changetracking.AttributeChangeListener.propertyChange(AttributeChangeListener.java:111)
at com.jenzabar.ngp.constituent.cx.jpa.AlternateAddressRecordEntity._persistence_propertyChange(AlternateAddressRecordEntity.java)
at com.jenzabar.ngp.constituent.cx.jpa.AlternateAddressRecordEntity._persistence_set_constituent(AlternateAddressRecordEntity.java)
at com.jenzabar.ngp.constituent.cx.jpa.AlternateAddressRecordEntity.setConstituent(AlternateAddressRecordEntity.java:1368) // this is the line where I set the old organization back; just a regular old setter call

Seems like I'm hitting https://bugs.eclipse.org/bugs/show_bug.cgi?id=323471, which is closed as INVALID.  The (apparently related) forum discussion is here: http://www.eclipse.org/forums/index.php?t=rview&goto=554630

In my case, what's interesting is that the setConstituent() call is happening when the AlternateAddressRecordEntity is detached.  I'm not sure why change tracking would be on here if I've detached the entity?  Shouldn't detach() turn off change tracking?

I'll obviously see if I can put a test case together, but it's going to take a while.

Best,
Kaurd 

--
http://about.me/lairdnelson

Back to the top