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

Bug 355978

Summary: NPE adding persistence-unit-defaults element to eclipselink-orm.xml file
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: JPAAssignee: Karen Butzke <karenfbutzke>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jolene.moffitt, neil.hauge
Version: 3.0Flags: neil.hauge: pmc_approved+
neil.hauge: review+
Target Milestone: 3.0.1   
Hardware: PC   
OS: Windows XP   
Whiteboard: fix_ready
Attachments:
Description Flags
proposed patch against maintenance none

Description Karen Butzke CLA 2011-08-26 16:15:58 EDT
In an eclipselink-orm.xml file add the persistence-unit-defaults element to the source and you get the following NPE in the error log. This NPE continues to be logged every time you edit something else in the persistence-unit-defaults element


java.lang.NullPointerException
	at org.eclipse.wst.common.internal.emf.resource.EMF2DOMAdapterImpl.primUpdateMOFMultiFeature(EMF2DOMAdapterImpl.java:461)
	at org.eclipse.wst.common.internal.emf.resource.EMF2DOMAdapterImpl.primUpdateMOFMultiFeature(EMF2DOMAdapterImpl.java:1556)
	at org.eclipse.wst.common.internal.emf.resource.EMF2DOMAdapterImpl.updateMOFMultiFeature(EMF2DOMAdapterImpl.java:1770)
Comment 1 Karen Butzke CLA 2011-08-26 16:25:10 EDT
Created attachment 202252 [details]
proposed patch against maintenance
Comment 2 Karen Butzke CLA 2011-08-26 16:26:04 EDT
I have fixed this issue in HEAD, Neil do we want to fix this in 3.0.1 maintenance? Very simple fix to change the translators.
Comment 3 Karen Butzke CLA 2011-08-29 10:53:37 EDT
fixed in maintenance
Comment 4 Jolene Moffitt CLA 2011-09-08 11:08:55 EDT
Verified in Maintenance Build M-3.3.1-20110906011014 

Verified you can add persistence-unit-defaults element to the eclipselink-orm.xml file without error.  See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.0.1