Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Moxy JAXB context creation failed(Getting stackoverflow error while creating JAXB Context for json)
Moxy JAXB context creation failed [message #1549892] Tue, 06 January 2015 20:14
Balasubramanian Ponmariappan is currently offline Balasubramanian PonmariappanFriend
Messages: 1
Registered: January 2015
Junior Member
Hi,
i am using moxy 2,6. i created moxy jaxb context for producing json. when creating jaxb context using jaxbContext = JAXBContextFactory.createContext(beanArray, null); it will throw the below error messages. please help me to solve this issue.

Caused by: java.lang.StackOverflowError
at java.lang.ClassLoader.getClassLoadingLock(ClassLoader.java:464) [rt.jar:1.7.0_80-ea]
at java.lang.ClassLoader.loadClass(ClassLoader.java:405) [rt.jar:1.7.0_80-ea]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) [rt.jar:1.7.0_80-ea]
at java.lang.ClassLoader.loadClass(ClassLoader.java:358) [rt.jar:1.7.0_80-ea]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:370) [jboss-modules.jar:1.3.0.Final-redhat-2]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:118) [jboss-modules.jar:1.3.0.Final-redhat-2]
at org.eclipse.persistence.internal.jaxb.JaxbClassLoader.loadClass(JaxbClassLoader.java:107) [eclipselink.jar:2.6.0.v20141224-924f6b4]
at org.eclipse.persistence.jaxb.javamodel.reflection.JavaModelImpl.getClass(JavaModelImpl.java:97) [eclipselink.jar:2.6.0.v20141224-924f6b4]
at org.eclipse.persistence.jaxb.javamodel.Helper.getJavaClass(Helper.java:214) [eclipselink.jar:2.6.0.v20141224-924f6b4]
at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.processChoiceProperty(AnnotationsProcessor.java:2485) [eclipselink.jar:2.6.0.v20141224-924f6b4]
at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.processPropertyTypes(AnnotationsProcessor.java:1193) [eclipselink.jar:2.6.0.v20141224-924f6b4]
at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.buildNewTypeInfo(AnnotationsProcessor.java:4948) [eclipselink.jar:2.6.0.v20141224-924f6b4]
at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.processReferencedClass(AnnotationsProcessor.java:918) [eclipselink.jar:2.6.0.v20141224-924f6b4]
at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.processChoiceProperty(AnnotationsProcessor.java:2511) [eclipselink.jar:2.6.0.v20141224-924f6b4]
at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.processPropertyTypes(AnnotationsProcessor.java:1193) [eclipselink.jar:2.6.0.v20141224-924f6b4]
at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.buildNewTypeInfo(AnnotationsProcessor.java:4948) [eclipselink.jar:2.6.0.v20141224-924f6b4]

Please look at the attached error log file for more detail.
Previous Topic:upgrade 2.4.2 to 2.5.2 give NoSuchMethodError _persistence_propertyChange on all mapped superclasses
Next Topic:Nondeterministic exception when creating JAXBContext
Goto Forum:
  


Current Time: Wed Oct 09 10:13:33 GMT 2024

Powered by FUDForum. Page generated in 0.04394 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top