Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JAXB : Exception in thread "main" java.lang.ExceptionInInitializerError

843834Mar 4 2008
Hi,
maybe someone could help me with my problem because i cannot figure it out.
I have an XML file and I use JAXB to access its data. I have to mention that it is impossible to have different different versions for the JAXB libraries, because these libraries are included in the jar(so the app is run with the same libraries all the time) and i'm not using any resource file.
Using the same xml file, on some computers(including mine) works just fine, but while running on others the following error message appears:


Exception in thread "main" java.lang.ExceptionInInitializerError
at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChild
Element(Loader.java:71)
at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.childElement(Loader.j
ava:65)
at com.sun.xml.bind.v2.runtime.unmarshaller.StructureLoader.childElement
(StructureLoader.java:209)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startE
lement(UnmarshallingContext.java:364)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startEl
ement(UnmarshallingContext.java:345)
at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SA
XConnector.java:117)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startEle
ment(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scan
StartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDispatcher.dispatch(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
known Source)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(
UnmarshallerImpl.java:200)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(U
nmarshallerImpl.java:173)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnm
arshallerImpl.java:137)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnm
arshallerImpl.java:142)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnm
arshallerImpl.java:151)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnm
arshallerImpl.java:169)
at com.siemens.ts.eng_rules_check.Main.readXmlFile(Main.java:328)
at com.siemens.ts.eng_rules_check.Main.readRouteTableXmlFile(Main.java:3
08)
at com.siemens.ts.eng_rules_check.Main.main(Main.java:117)
Caused by: java.util.MissingResourceException: Can't find bundle for base name com.sun.xml.bind.v2.runtime.unmarshaller.Messages, locale zh_CN
at java.util.ResourceBundle.throwMissingResourceException(Unknown Source
)
at java.util.ResourceBundle.getBundleImpl(Unknown Source)
at java.util.ResourceBundle.getBundle(Unknown Source)
at com.sun.xml.bind.v2.runtime.unmarshaller.Messages.<clinit>(Messages.j
ava:18)
... 23 more

also i can get: the same error but
Caused by: java.util.MissingResourceException: Can't find bundle for base name com.sun.xml.bind.v2.runtime.unmarshaller.Messages, locale de_DE
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 1 2008
Added on Mar 4 2008
0 comments
482 views