在执行一些依赖于生成的 xmlbeans 类的代码时,我得到了一个 RuntimeException。我不知道这是否是:
- 我在代码生成或打包过程中遗漏了一些东西
- 缺少运行时依赖项
- 一个误导性的错误信息,我应该在别处寻找。
xbean.jar 版本在构建和执行环境中是一样的。有人以前见过这个或有任何想法吗?
谢谢。
……剪……
原因:java.lang.RuntimeException:无法实例化 SchemaTypeSystemImpl (java.lang.reflect.InvocationTargetException):xbean.jar 的版本是否正确?
在 schemaorg_apache_xmlbeans.system.s2B8331230CBD98F4933B0B025B6BF726.TypeSystemHolder.loadTypeSystem(未知来源)
在 schemaorg_apache_xmlbeans.system.s2B8331230CBD98F4933B0B025B6BF726.TypeSystemHolder.(未知来源)
... 38 更多
引起:java.lang.reflect.InvocationTargetException
在 sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
在 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
在 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
在 java.lang.reflect.Constructor.newInstance(Constructor.java:494)
... 40 更多
原因:org.apache.xmlbeans.SchemaTypeLoaderException:XML-BEANS 编译模式:找不到编译模式资源 schemaorg_apache_xmlbeans/system/s2B8331230CBD98F4933B0B025B6BF726/index.xsb(schemaorg_apache_xmlbeans.system.s2B8331230CBD98F4933B0B025B6BF726.index)-
在 org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$XsbReader.(SchemaTypeSystemImpl.java:1504)
在 org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.initFromHeader(SchemaTypeSystemImpl.java:260)
在 org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.(SchemaTypeSystemImpl.java:183)
... 44 更多
……剪……