org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA

Terracotta Project Issue Tracker | Taylor Gautier | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    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'.

    Terracotta Project Issue Tracker | 9 years ago | Taylor Gautier
    org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA
  2. 0

    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'.

    Terracotta Project Issue Tracker | 9 years ago | Taylor Gautier
    org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA
  3. 0

    XMLBeans: Exception when parsing a valid XML

    Google Groups | 1 decade ago | thelinu...@yahoo.com
    org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA [Loaded java.lang.StackTraceElement from /apps/opt/jdk142_06/jre/lib/rt.jar]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    parse fails on doc xmlbeans just saved

    xmlbeans-user | 6 years ago | Tim Watts
    org.apache.xmlbeans.XmlException: /home/timtw/work/junk.xml:1:1: error: Unexpected element: CDATA
  6. 0

    RE: parse fails on doc xmlbeans just saved

    xmlbeans-user | 6 years ago | Duane Zamrok
    org.apache.xmlbeans.XmlException: /home/timtw/work/junk.xml:1:1: error: Unexpected element: CDATA

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.xml.sax.SAXParseException

      Unexpected element: CDATA

      at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError()
    2. XmlBeans
      SchemaTypeLoaderBase.parse
      1. org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)[bootjar]
      2. org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)[bootjar]
      3. org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3435)[bootjar]
      4. org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1270)[bootjar]
      5. org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1257)[bootjar]
      6. org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)[bootjar]
      6 frames
    3. com.terracottatech.config
      DsoApplication$Factory.parse
      1. com.terracottatech.config.DsoApplication$Factory.parse(DsoApplication.java:260)[bootjar]
      1 frame
    4. com.tc.plugins
      ModulesLoader$2.callback
      1. com.tc.plugins.ModulesLoader.loadConfiguration(ModulesLoader.java:288)[bootjar]
      2. com.tc.plugins.ModulesLoader.access$100(ModulesLoader.java:53)[bootjar]
      3. com.tc.plugins.ModulesLoader$2.callback(ModulesLoader.java:137)[bootjar]
      3 frames
    5. com.tc.bundles
      KnopflerfishOSGi.startBundles
      1. com.tc.bundles.KnopflerfishOSGi.startBundle(KnopflerfishOSGi.java:84)[bootjar]
      2. com.tc.bundles.KnopflerfishOSGi.startBundles(KnopflerfishOSGi.java:64)[bootjar]
      2 frames
    6. com.tc.plugins
      ModulesLoader.initModules
      1. com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:151)[bootjar]
      2. com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:95)[bootjar]
      2 frames
    7. com.tc.object
      BootJarTool.main
      1. com.tc.object.tools.BootJarTool.<init>(BootJarTool.java:219)[bootjar]
      2. com.tc.object.tools.BootJarTool.main(BootJarTool.java:2564)[bootjar]
      2 frames