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

Bug 328961

Summary: Thread safety issue with generated wrapper classes
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
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 XP   
Whiteboard:
Attachments:
Description Flags
MOXy - Fix (WIP with debug statements)
none
Updated MOXy Patch with Debug Statements
none
MOXy - Fix none

Description Blaise Doughan CLA 2010-10-28 14:27:54 EDT
There appears to be a thread safety issue with generated wrapper classes that can result in the following exception:

Caused By: java.lang.NoClassDefFoundError: org/eclipse/persistence/jaxb/generated0
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:462)
   at org.eclipse.persistence.internal.jaxb.JaxbClassLoader.generateClass(JaxbClassLoader.java:105)
   at org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateWrapperClass(MappingsGenerator.java:2198)
   at org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateWrapperClassAndDescriptor(MappingsGenerator.java:1989)
   at org.eclipse.persistence.jaxb.compiler.MappingsGenerator.processGlobalElements(MappingsGenerator.java:1931)
   at org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateProject(MappingsGenerator.java:188)
   at org.eclipse.persistence.jaxb.compiler.Generator.generateProject(Generator.java:172)
   at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:266)
   at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:199)
Comment 1 Blaise Doughan CLA 2010-10-28 14:28:54 EDT
Created attachment 181977 [details]
MOXy - Fix (WIP with debug statements)
Comment 2 Matt MacIvor CLA 2010-10-28 16:31:48 EDT
Created attachment 181995 [details]
Updated MOXy Patch with Debug Statements
Comment 3 Blaise Doughan CLA 2010-10-28 21:21:32 EDT
Created attachment 182006 [details]
MOXy - Fix
Comment 4 Blaise Doughan CLA 2010-10-28 21:58:56 EDT
Fix checked into trunk at rev:  8440
Comment 5 Blaise Doughan CLA 2010-10-29 12:50:45 EDT
Fix checked into 2.1.2 at rev:  8441
Comment 6 Blaise Doughan CLA 2010-10-29 13:31:18 EDT
Fix checked into 2.0.3 at rev:  8443
Comment 7 Eclipse Webmaster CLA 2022-06-09 10:15:23 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 8 Eclipse Webmaster CLA 2022-06-09 10:19:50 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink