org.apache.xmlbeans.XmlException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I had a terracotta.xml in a module that was missing the the correct xml line, the first line was instead: ?xml version="1.0" encoding="UTF-8" ?> Which should have been: <?xml version="1.0" encoding="UTF-8" ?> When I tried to use this module, I got this: [INFO] Starting bootjar tool [INFO] [bootjar] 2007-12-15 16:46:16,029 INFO - Terracotta 2.5-rev6472, as of 20071211-121221 (Revision 6472 by cruise@rh4mo0 from 2.5) [INFO] [bootjar] 2007-12-15 16:46:16,481 INFO - Configuration loaded from the file at '/Users/tgautier/src/forge/projects/labs/pattern-resourcepool/sample/target/classes/tc-config.xml'. [INFO] [bootjar] 2007-12-15 16:46:17,497 WARN - Unable to parse configuration from bundle: org.terracotta.pattern.resourcepool [INFO] [bootjar] org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA [INFO] [bootjar] at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3467) [INFO] [bootjar] at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1270) [INFO] [bootjar] at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1257) [INFO] [bootjar] at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345) [INFO] [bootjar] at com.terracottatech.config.DsoApplication$Factory.parse(DsoApplication.java:260) [INFO] [bootjar] at com.tc.plugins.ModulesLoader.loadConfiguration(ModulesLoader.java:288) [INFO] [bootjar] at com.tc.plugins.ModulesLoader.access$100(ModulesLoader.java:53) [INFO] [bootjar] at com.tc.plugins.ModulesLoader$2.callback(ModulesLoader.java:137) [INFO] [bootjar] at com.tc.bundles.KnopflerfishOSGi.startBundle(KnopflerfishOSGi.java:84) [INFO] [bootjar] at com.tc.bundles.KnopflerfishOSGi.startBundles(KnopflerfishOSGi.java:64) [INFO] [bootjar] at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:151) [INFO] [bootjar] at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:95) [INFO] [bootjar] at com.tc.object.tools.BootJarTool.<init>(BootJarTool.java:219) [INFO] [bootjar] at com.tc.object.tools.BootJarTool.main(BootJarTool.java:2557) [INFO] [bootjar] Caused by: org.xml.sax.SAXParseException: Unexpected element: CDATA [INFO] [bootjar] at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038) [INFO] [bootjar] at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723) [INFO] [bootjar] at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3435) [INFO] [bootjar] ... 13 more [INFO] [bootjar] 2007-12-15 16:46:17,659 WARN - Unable to parse configuration from bundle: org.terracotta.pattern.resourcepool [INFO] [bootjar] org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA [INFO] [bootjar] at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3467) [INFO] [bootjar] at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1270) [INFO] [bootjar] at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1257) [INFO] [bootjar] at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345) [INFO] [bootjar] at com.terracottatech.config.DsoApplication$Factory.parse(DsoApplication.java:260) [INFO] [bootjar] at com.tc.plugins.ModulesLoader.loadConfiguration(ModulesLoader.java:288) [INFO] [bootjar] at com.tc.plugins.ModulesLoader.access$100(ModulesLoader.java:53) [INFO] [bootjar] at com.tc.plugins.ModulesLoader$2.callback(ModulesLoader.java:137) [INFO] [bootjar] at com.tc.bundles.KnopflerfishOSGi.startBundle(KnopflerfishOSGi.java:84) [INFO] [bootjar] at com.tc.bundles.KnopflerfishOSGi.startBundles(KnopflerfishOSGi.java:64) [INFO] [bootjar] at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:151) [INFO] [bootjar] at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:95) [INFO] [bootjar] at com.tc.object.tools.BootJarTool.<init>(BootJarTool.java:219) [INFO] [bootjar] at com.tc.object.tools.BootJarTool.main(BootJarTool.java:2564) [INFO] [bootjar] Caused by: org.xml.sax.SAXParseException: Unexpected element: CDATA [INFO] [bootjar] at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038) [INFO] [bootjar] at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723) [INFO] [bootjar] at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3435) [INFO] [bootjar] ... 13 more [INFO] [bootjar] Creating boot JAR at '/Users/tgautier/src/forge/projects/labs/pattern-resourcepool/sample/target/dso-boot.jar... [INFO] [bootjar] Successfully created boot JAR file at '/Users/tgautier/src/forge/projects/labs/pattern-resourcepool/sample/target/dso-boot.jar'.
    via by Taylor Gautier,
  • I had a terracotta.xml in a module that was missing the the correct xml line, the first line was instead: ?xml version="1.0" encoding="UTF-8" ?> Which should have been: <?xml version="1.0" encoding="UTF-8" ?> When I tried to use this module, I got this: [INFO] Starting bootjar tool [INFO] [bootjar] 2007-12-15 16:46:16,029 INFO - Terracotta 2.5-rev6472, as of 20071211-121221 (Revision 6472 by cruise@rh4mo0 from 2.5) [INFO] [bootjar] 2007-12-15 16:46:16,481 INFO - Configuration loaded from the file at '/Users/tgautier/src/forge/projects/labs/pattern-resourcepool/sample/target/classes/tc-config.xml'. [INFO] [bootjar] 2007-12-15 16:46:17,497 WARN - Unable to parse configuration from bundle: org.terracotta.pattern.resourcepool [INFO] [bootjar] org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA [INFO] [bootjar] at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3467) [INFO] [bootjar] at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1270) [INFO] [bootjar] at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1257) [INFO] [bootjar] at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345) [INFO] [bootjar] at com.terracottatech.config.DsoApplication$Factory.parse(DsoApplication.java:260) [INFO] [bootjar] at com.tc.plugins.ModulesLoader.loadConfiguration(ModulesLoader.java:288) [INFO] [bootjar] at com.tc.plugins.ModulesLoader.access$100(ModulesLoader.java:53) [INFO] [bootjar] at com.tc.plugins.ModulesLoader$2.callback(ModulesLoader.java:137) [INFO] [bootjar] at com.tc.bundles.KnopflerfishOSGi.startBundle(KnopflerfishOSGi.java:84) [INFO] [bootjar] at com.tc.bundles.KnopflerfishOSGi.startBundles(KnopflerfishOSGi.java:64) [INFO] [bootjar] at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:151) [INFO] [bootjar] at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:95) [INFO] [bootjar] at com.tc.object.tools.BootJarTool.<init>(BootJarTool.java:219) [INFO] [bootjar] at com.tc.object.tools.BootJarTool.main(BootJarTool.java:2557) [INFO] [bootjar] Caused by: org.xml.sax.SAXParseException: Unexpected element: CDATA [INFO] [bootjar] at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038) [INFO] [bootjar] at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723) [INFO] [bootjar] at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3435) [INFO] [bootjar] ... 13 more [INFO] [bootjar] 2007-12-15 16:46:17,659 WARN - Unable to parse configuration from bundle: org.terracotta.pattern.resourcepool [INFO] [bootjar] org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA [INFO] [bootjar] at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3467) [INFO] [bootjar] at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1270) [INFO] [bootjar] at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1257) [INFO] [bootjar] at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345) [INFO] [bootjar] at com.terracottatech.config.DsoApplication$Factory.parse(DsoApplication.java:260) [INFO] [bootjar] at com.tc.plugins.ModulesLoader.loadConfiguration(ModulesLoader.java:288) [INFO] [bootjar] at com.tc.plugins.ModulesLoader.access$100(ModulesLoader.java:53) [INFO] [bootjar] at com.tc.plugins.ModulesLoader$2.callback(ModulesLoader.java:137) [INFO] [bootjar] at com.tc.bundles.KnopflerfishOSGi.startBundle(KnopflerfishOSGi.java:84) [INFO] [bootjar] at com.tc.bundles.KnopflerfishOSGi.startBundles(KnopflerfishOSGi.java:64) [INFO] [bootjar] at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:151) [INFO] [bootjar] at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:95) [INFO] [bootjar] at com.tc.object.tools.BootJarTool.<init>(BootJarTool.java:219) [INFO] [bootjar] at com.tc.object.tools.BootJarTool.main(BootJarTool.java:2564) [INFO] [bootjar] Caused by: org.xml.sax.SAXParseException: Unexpected element: CDATA [INFO] [bootjar] at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038) [INFO] [bootjar] at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723) [INFO] [bootjar] at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3435) [INFO] [bootjar] ... 13 more [INFO] [bootjar] Creating boot JAR at '/Users/tgautier/src/forge/projects/labs/pattern-resourcepool/sample/target/dso-boot.jar... [INFO] [bootjar] Successfully created boot JAR file at '/Users/tgautier/src/forge/projects/labs/pattern-resourcepool/sample/target/dso-boot.jar'.
    via by Taylor Gautier,
  • XMLBeans: Exception when parsing a valid XML
    via by thelinu...@yahoo.com,
  • parse fails on doc xmlbeans just saved
    via by Tim Watts,
  • RE: parse fails on doc xmlbeans just saved
    via by Duane Zamrok,
  • Comment déployer correctement un war
    via by Unknown author,
  • TopCoder Forums
    via by Unknown author,
  • Import Config through an Transaction Graph- XML Parse Error
    via by Kartik Pasunuri-Oracle,
    • org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3467)[bootjar] at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1270)[bootjar] at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1257)[bootjar] at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)[bootjar] at com.terracottatech.config.DsoApplication$Factory.parse(DsoApplication.java:260)[bootjar] at com.tc.plugins.ModulesLoader.loadConfiguration(ModulesLoader.java:288)[bootjar] at com.tc.plugins.ModulesLoader.access$100(ModulesLoader.java:53)[bootjar] at com.tc.plugins.ModulesLoader$2.callback(ModulesLoader.java:137)[bootjar] at com.tc.bundles.KnopflerfishOSGi.startBundle(KnopflerfishOSGi.java:84)[bootjar] at com.tc.bundles.KnopflerfishOSGi.startBundles(KnopflerfishOSGi.java:64)[bootjar] at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:151)[bootjar] at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:95)[bootjar] at com.tc.object.tools.BootJarTool.<init>(BootJarTool.java:219)[bootjar] at com.tc.object.tools.BootJarTool.main(BootJarTool.java:2557)[bootjar] Caused by: org.xml.sax.SAXParseException: Unexpected element: CDATA at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)[bootjar] at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)[bootjar] at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3435)[bootjar] ... 13 more

    Users with the same issue

    AndrewProgAndrewProg
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,