Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328961 - Thread safety issue with generated wrapper classes
Summary: Thread safety issue with generated wrapper classes
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-28 14:27 EDT by Blaise Doughan CLA
Modified: 2022-06-09 10:19 EDT (History)
0 users

See Also:


Attachments
MOXy - Fix (WIP with debug statements) (6.80 KB, patch)
2010-10-28 14:28 EDT, Blaise Doughan CLA
no flags Details | Diff
Updated MOXy Patch with Debug Statements (7.50 KB, patch)
2010-10-28 16:31 EDT, Matt MacIvor CLA
no flags Details | Diff
MOXy - Fix (5.34 KB, patch)
2010-10-28 21:21 EDT, Blaise Doughan CLA
no flags Details | Diff

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