Dynamic Moxy Exception for createContextFromXSD [message #1237680] |
Thu, 30 January 2014 10:03 |
Marco Allenspach Messages: 1 Registered: January 2014 |
Junior Member |
|
|
Hi, I am using the eclipselink dynamic Moxy(2.5.1) to generate the classes from the XSD. While creating the dynamic JAXBContext I get a NullPointerException.
Exception in thread "main" java.lang.NullPointerException
at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.buildReferenceProperty(AnnotationsProcessor.java:2407)
at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.buildNewProperty(AnnotationsProcessor.java:1933)
at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.getFieldPropertiesForClass(AnnotationsProcessor.java:1877)
at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.getFieldPropertiesForClass(AnnotationsProcessor.java:1859)
at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.getPropertiesForClass(AnnotationsProcessor.java:1845)
at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.buildTypeInfo(AnnotationsProcessor.java:816)
at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.postBuildTypeInfo(AnnotationsProcessor.java:734)
at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.processClassesAndProperties(AnnotationsProcessor.java:280)
at org.eclipse.persistence.jaxb.compiler.Generator.<init>(Generator.java:106)
at org.eclipse.persistence.jaxb.dynamic.DynamicJAXBContext$SchemaContextInput.createContextState(DynamicJAXBContext.java:317)
at org.eclipse.persistence.jaxb.JAXBContext.<init>(JAXBContext.java:182)
at org.eclipse.persistence.jaxb.dynamic.DynamicJAXBContext.<init>(DynamicJAXBContext.java:71)
at org.eclipse.persistence.jaxb.dynamic.DynamicJAXBContextFactory.createContextFromXSD(DynamicJAXBContextFactory.java:279)
at EbicsSchemaHelper.getJaxbContext(EbicsSchemaHelper.java:23)
at EbicsSchemaHelper.main(EbicsSchemaHelper.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
I this problem the same like https://bugs.eclipse.org/bugs/show_bug.cgi?id=421438 ??
I have attached the sample code and the schemas.
|
|
|
Powered by
FUDForum. Page generated in 0.03425 seconds