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

Bug 330966

Summary: NPE AT MAPPINGSGENERATOR.GENERATEDESCRIPTOR
Product: z_Archived Reporter: Matt MacIvor <matt.macivor>
Component: EclipselinkAssignee: Matt MacIvor <matt.macivor>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed Fix none

Description Matt MacIvor CLA 2010-11-23 15:23:07 EST
jaxws-ri use asm to generate some jaxb content class (for wrapper bean and
faultInfo bean) in the runtime, and use these dynamically generated classes
to create a jaxbContext. I have tried dump these in-memery classes(as
byte[]s) into .class files, but the same error cannot be reproduced by this
way.

Caused by: java.lang.NullPointerException
    at
org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateDescriptor(Map
pingsGenerator.java:227)
    at
org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateProject(Mappin
gsGenerator.java:181)
    at
org.eclipse.persistence.jaxb.compiler.Generator.generateProject(Generator.java
:176)
    at
org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFacto
ry.java:313)
    at
org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFacto
ry.java:245)
Comment 1 Matt MacIvor CLA 2010-11-23 15:34:12 EST
Created attachment 183708 [details]
Proposed Fix
Comment 2 Matt MacIvor CLA 2010-11-23 15:35:27 EST
Attached patch checked in to SVN
Reviewed by David McCann
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:09:02 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink