Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361993 - NPE creating DynamicJAXBContext from XMLSchema.xsd
Summary: NPE creating DynamicJAXBContext from XMLSchema.xsd
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-25 15:23 EDT by Denise Smith CLA
Modified: 2022-06-09 10:28 EDT (History)
0 users

See Also:


Attachments
Patch (93.35 KB, patch)
2011-10-27 13:09 EDT, Rick Barkhouse CLA
no flags Details | Diff
Patch (93.76 KB, patch)
2011-10-27 17:01 EDT, Rick Barkhouse CLA
no flags Details | Diff

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