java.lang.RuntimeException: org.xml.sax.SAXParseException: Content is not allowed in prolog.

Spring JIRA | Hendy Irawan | 7 years ago
  1. 0

    Project is created using spring-osgi-bundle archetype 1.2.0 with some fixes Doing mvn clean package works alright After the first package, the second package always fails with this error So I have to mvn clean each time I want to build without error Switching to maven-bundle-plugin works fine The obvious question: Why SpringSource created Bundlor, why not just extend/collaborate/improve on maven-bundle-plugin? :-( open source fragmentation... Complete error: [INFO] [com.springsource.bundlor.:transform {execution: bundle-manifest}] [Fatal Error] :1:1: Content is not allowed in prolog. [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] org.xml.sax.SAXParseException: Content is not allowed in prolog. [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.RuntimeException: org.xml.sax.SAXParseException: Content is not allowed in prolog. at com.springsource.bundlor.support.SpringApplicationContextParser.parseDocument(SpringApplicationContextParser.java:207) at com.springsource.bundlor.support.SpringApplicationContextParser.parseApplicationContext(SpringApplicationContextParser.java:146) at com.springsource.bundlor.support.StandardBundleTransformer$2.analyse(StandardBundleTransformer.java:407) at com.springsource.bundlor.support.StandardBundleTransformer.analyseEntryWithTemplate(StandardBundleTransformer.java:533) at com.springsource.bundlor.support.StandardBundleTransformer.analyseEntry(StandardBundleTransformer.java:405) at com.springsource.bundlor.support.StandardBundleTransformer.analyseEntries(StandardBundleTransformer.java:357) at com.springsource.bundlor.support.StandardBundleTransformer.generateManifest(StandardBundleTransformer.java:206) at com.springsource.bundlor.maven.plugin.AbstractBundlorMojo.execute(AbstractBundlorMojo.java:207) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) at org.apache.maven.cli.MavenCli.main(MavenCli.java:356) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog. at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283) at com.springsource.bundlor.support.SpringApplicationContextParser.parseDocument(SpringApplicationContextParser.java:203) ... 25 more

    Spring JIRA | 7 years ago | Hendy Irawan
    java.lang.RuntimeException: org.xml.sax.SAXParseException: Content is not allowed in prolog.
  2. 0

    Project is created using spring-osgi-bundle archetype 1.2.0 with some fixes Doing mvn clean package works alright After the first package, the second package always fails with this error So I have to mvn clean each time I want to build without error Switching to maven-bundle-plugin works fine The obvious question: Why SpringSource created Bundlor, why not just extend/collaborate/improve on maven-bundle-plugin? :-( open source fragmentation... Complete error: [INFO] [com.springsource.bundlor.:transform {execution: bundle-manifest}] [Fatal Error] :1:1: Content is not allowed in prolog. [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] org.xml.sax.SAXParseException: Content is not allowed in prolog. [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.RuntimeException: org.xml.sax.SAXParseException: Content is not allowed in prolog. at com.springsource.bundlor.support.SpringApplicationContextParser.parseDocument(SpringApplicationContextParser.java:207) at com.springsource.bundlor.support.SpringApplicationContextParser.parseApplicationContext(SpringApplicationContextParser.java:146) at com.springsource.bundlor.support.StandardBundleTransformer$2.analyse(StandardBundleTransformer.java:407) at com.springsource.bundlor.support.StandardBundleTransformer.analyseEntryWithTemplate(StandardBundleTransformer.java:533) at com.springsource.bundlor.support.StandardBundleTransformer.analyseEntry(StandardBundleTransformer.java:405) at com.springsource.bundlor.support.StandardBundleTransformer.analyseEntries(StandardBundleTransformer.java:357) at com.springsource.bundlor.support.StandardBundleTransformer.generateManifest(StandardBundleTransformer.java:206) at com.springsource.bundlor.maven.plugin.AbstractBundlorMojo.execute(AbstractBundlorMojo.java:207) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) at org.apache.maven.cli.MavenCli.main(MavenCli.java:356) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog. at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283) at com.springsource.bundlor.support.SpringApplicationContextParser.parseDocument(SpringApplicationContextParser.java:203) ... 25 more

    Spring JIRA | 7 years ago | Hendy Irawan
    java.lang.RuntimeException: org.xml.sax.SAXParseException: Content is not allowed in prolog.
  3. 0

    Regs record & submit

    jvoicexml | 8 years ago | jagath_kumara
    org.jvoicexml.event.error.BadFetchError: error.badfetch: org.xml.sax.SAXParseException: Content is not allowed in prolog.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    XML Problem on Mac

    GitHub | 3 years ago | GypsiDanger
    org.xml.sax.SAXParseException: Content is not allowed in prolog.
  6. 0

    Error when Eclipse started and now my package explorer is empty

    Stack Overflow | 7 years ago | Ian Carpenter
    org.eclipse.ui.WorkbenchException: Content is not allowed in prolog.

  1. tvrmsmith 1 times, last 4 months ago
10 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

    Content is not allowed in prolog.

    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse()
  2. Java RT
    DocumentBuilderImpl.parse
    1. com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
    2. com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
    2 frames
  3. com.springsource.bundlor
    AbstractBundlorMojo.execute
    1. com.springsource.bundlor.support.SpringApplicationContextParser.parseDocument(SpringApplicationContextParser.java:203)
    2. com.springsource.bundlor.support.SpringApplicationContextParser.parseApplicationContext(SpringApplicationContextParser.java:146)
    3. com.springsource.bundlor.support.StandardBundleTransformer$2.analyse(StandardBundleTransformer.java:407)
    4. com.springsource.bundlor.support.StandardBundleTransformer.analyseEntryWithTemplate(StandardBundleTransformer.java:533)
    5. com.springsource.bundlor.support.StandardBundleTransformer.analyseEntry(StandardBundleTransformer.java:405)
    6. com.springsource.bundlor.support.StandardBundleTransformer.analyseEntries(StandardBundleTransformer.java:357)
    7. com.springsource.bundlor.support.StandardBundleTransformer.generateManifest(StandardBundleTransformer.java:206)
    8. com.springsource.bundlor.maven.plugin.AbstractBundlorMojo.execute(AbstractBundlorMojo.java:207)
    8 frames
  4. Maven Plugin
    DefaultPluginManager.executeMojo
    1. org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
    1 frame
  5. Maven Core
    DefaultMaven.execute
    1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
    2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
    3. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
    4. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
    5. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
    6. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
    7. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
    8. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
    8 frames
  6. M3 Interceptor
    MavenCli.main
    1. org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
    1 frame
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  8. Plexus
    Launcher.main
    1. org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    2. org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    3. org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    4. org.codehaus.classworlds.Launcher.main(Launcher.java:375)
    4 frames