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

Bug 361993

Summary: NPE creating DynamicJAXBContext from XMLSchema.xsd
Product: z_Archived Reporter: Denise Smith <denise.mahar>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Patch
none
Patch none

Description Denise Smith CLA 2011-10-25 15:23:53 EDT
Creating a DynamicJAXBContext  from XMLSchema.xsd gives the following NPE


(11:01:26 AM) denise.mahar: java.lang.NullPointerException
 at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.addEnumTypeInfo(AnnotationsProcessor.java:2875)
 at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.buildTypeInfo(AnnotationsProcessor.java:667)
 at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.postBuildTypeInfo(AnnotationsProcessor.java:598)
 at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.processClassesAndProperties(AnnotationsProcessor.java:236)
 at org.eclipse.persistence.jaxb.compiler.Generator.<init>(Generator.java:104)
 at org.eclipse.persistence.jaxb.dynamic.DynamicJAXBContext$SchemaContextInput.createContextState(DynamicJAXBContext.java:310)
 at org.eclipse.persistence.jaxb.JAXBContext.<init>(JAXBContext.java:168)
 at org.eclipse.persistence.jaxb.dynamic.DynamicJAXBContext.<init>(DynamicJAXBContext.java:70)
 at org.eclipse.persistence.jaxb.dynamic.DynamicJAXBContextFactory.createContextFromXSD(DynamicJAXBContextFactory.java:270)
 at org.eclipse.persistence.testing.jaxb.dynamic.DynamicJAXBFromXSDTestCases.testXmlElementRefLargeSchema(DynamicJAXBFromXSDTestCases.java:596)
Comment 1 Rick Barkhouse CLA 2011-10-27 13:09:23 EDT
Created attachment 206085 [details]
Patch
Comment 2 Rick Barkhouse CLA 2011-10-27 17:01:31 EDT
Created attachment 206096 [details]
Patch
Comment 3 Rick Barkhouse CLA 2011-10-27 17:02:21 EDT
Fixed, reviewed by dsmith.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:28:30 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink