[daisy] xmlbeans
tim_cranfield at goldenboat.net
tim_cranfield at goldenboat.net
Tue Jul 4 22:17:13 CDT 2006
I am trying to use xmlbeans with the daisy detachment.
I have able to generate the source code from a schema file.
When I try and run this code:
DetachmentDocumentDocument1 doc =
DetachmentDocumentDocument1.Factory.parse(docFile);
I get these errors:
Exception in thread "main"
java.lang.ExceptionInInitializerError
at
org.outerx.daisy.x10.DetachmentDocumentDocument1.<clinit>(DetachmentDocumentDocument1.java:19)
at
org.outerx.daisy.x10.DetachmentDocumentDocument1$Factory.parse(DetachmentDocumentDocument1.java:1224)
at org.outerj.daisy.detachmentGUI.Main.main(Main.java:25)
Caused by: java.lang.RuntimeException: Could not instantiate
SchemaTypeSystemImpl
(java.lang.reflect.InvocationTargetException): is the version
of xbean.jar correct?
at
schema.system.s6D981B8035E06A1AB11FEAC4CB2A6099.TypeSystemHolder.loadTypeSystem(TypeSystemHolder.java:12)
at
schema.system.s6D981B8035E06A1AB11FEAC4CB2A6099.TypeSystemHolder.<clinit>(TypeSystemHolder.java:6)
... 3 more
Caused by: java.lang.reflect.InvocationTargetException
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
schema.system.s6D981B8035E06A1AB11FEAC4CB2A6099.TypeSystemHolder.loadTypeSystem(TypeSystemHolder.java:10)
... 4 more
Caused by: org.apache.xmlbeans.SchemaTypeLoaderException:
XML-BEANS compiled schema: Could not locate compiled schema
resource
schema/system/s6D981B8035E06A1AB11FEAC4CB2A6099/index.xsb
(schema.system.s6D981B8035E06A1AB11FEAC4CB2A6099.index) - code
0
at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$XsbReader.<init>(SchemaTypeSystemImpl.java:1069)
at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.initFromHeader(SchemaTypeSystemImpl.java:271)
at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:151)
... 9 more
Any help would be appreciated.
More information about the daisy
mailing list