java - RuntimeException from xmlbeans - can't find compiled schema -


When performing some sequence, I'm getting a runtime exception that depends on the generated xmlbeans classes. I do not know what this is:

  • I'm missing something during code-generation or packaging
  • A runtime dependency is missing
  • A misleading error message, and I should look elsewhere.

The xbean.jar version is similar to the build and execution environment.

Thank you .... Made by: java.lang.RuntimeException: SchemaTypeSystemImpl could not instantiate (java.lang.Review.InvocationTargetException): is the version of xbean.jar correct? . Sun.reflect.NativeConstructorAccessorImpl.newInstance0 on java.lang.reflect.InvocationTargetException: schemaorg_apache_xmlbeans.system.s2B8331230CBD98F4933B0B025B6BF726.TypeSystemHolder.loadTypeSystem (Unknown Source) at schemaorg_apache_xmlbeans.system.s2B8331230CBD98F4933B0B025B6BF726.TypeSystemHolder (Unknown Source) ... 38 more due Sun.reflect.NativeConstructorAccessorImpl.newInstance (at NativeConstructorAccessorImpl.java39) at sun.reflect.DeligatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java27) java.lang.reflect.Constructor.newInstance (ConstructorLocated 94). 40 more reasons: org.apache.xmlbeans.SchemaTypeLoaderException: XML-BEANS Compiled schema: compiled schema resource schemaorg_apache_xmlbeans / System / s2B8331230CBD98F4933B0B025B6BF726 / index.xsb could not be addressed (schemaorg_apache_xmlbeans.system.s2B8331230CBD98F4933B0B025B6BF726.index) - Code 0 at org.apache.xmlbeans.impl.schema.Sche on MaTypeSystemImpl $ XsbReader. (SchemaProSystemMode.java.1504) org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.initFromHeader (Schema Type-Size Impressor, JavaWise 60) at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl. (SchemaInceSystemEmple.JavaA: 183) ... 44 more ... cutting ...

John's answer It was a good sign for me that I created Java classes with XMLBeans and manually copied my project to get the source out of "noNamespace". Unfortunately I did not know that class files were also generated in the "Skyragram_pace_xmlbins" folder and they did not copy them. Everything went well for me after going to use the generated file.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -