Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355978 - NPE adding persistence-unit-defaults element to eclipselink-orm.xml file
Summary: NPE adding persistence-unit-defaults element to eclipselink-orm.xml file
Status: VERIFIED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0.1   Edit
Assignee: Karen Butzke CLA
QA Contact:
URL:
Whiteboard: fix_ready
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-26 16:15 EDT by Karen Butzke CLA
Modified: 2011-09-08 11:08 EDT (History)
2 users (show)

See Also:
neil.hauge: pmc_approved+
neil.hauge: review+


Attachments
proposed patch against maintenance (1.23 KB, patch)
2011-08-26 16:25 EDT, Karen Butzke CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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