java.lang.RuntimeException

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.

  • 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
    via by Hendy Irawan,
  • 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
    via by Hendy Irawan,
  • Regs record & submit
    via jvoicexml by jagath_kumara
    ,
  • XML Problem on Mac
    via GitHub by GypsiDanger
    ,
  • SAXParseException using 0.7 API.
    via by Federico Tolomei,
  • New version crashes
    via freecol by daverd
    ,
  • ODE vie Servicemix HelloWorld2 Exception
    via by DocHoliday,
    • 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

    Users with the same issue

    tvrmsmith
    4 times, last one,
    jpvee
    1 times, last one,
    Andreas Häber
    19 times, last one,
    chenjunjun
    1 times, last one,
    Unknown visitor1 times, last one,
    11 more bugmates