Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19936

camel-xml-io - Parsing error with line precise error

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.1.0
    • camel-jbang
    • None
    • Unknown

    Description

      XML IO should have better parsing error for unknown elements and whatnot. That is needed for migration to Camel v4 for users of legacy Karaf.

      ~/wo/camel-karaf-examples/examples/camel-example-olingo4-blueprint main ?1 ❯ camel transform src/main/resources/OSGI-INF/blueprint/odata.xml ✘ INT
      org.apache.camel.RuntimeCamelException: org.apache.camel.xml.io.XmlPullParserException: Unexpected element '

      {http://www.osgi.org/xmlns/blueprint/v1.0.0}

      string'
      at org.apache.camel.RuntimeCamelException.wrapRuntimeException(RuntimeCamelException.java:66)
      at org.apache.camel.main.RoutesConfigurer.configureModeline(RoutesConfigurer.java:314)
      at org.apache.camel.main.BaseMainSupport.modelineRoutes(BaseMainSupport.java:561)
      at org.apache.camel.main.BaseMainSupport.autoconfigure(BaseMainSupport.java:434)
      at org.apache.camel.main.MainSupport.autoconfigure(MainSupport.java:73)
      at org.apache.camel.main.KameletMain.autoconfigure(KameletMain.java:592)
      at org.apache.camel.main.BaseMainSupport.postProcessCamelContext(BaseMainSupport.java:639)
      at org.apache.camel.main.MainSupport.initCamelContext(MainSupport.java:339)
      at org.apache.camel.main.KameletMain.doInit(KameletMain.java:306)
      at org.apache.camel.support.service.BaseService.init(BaseService.java:78)
      at org.apache.camel.support.service.BaseService.start(BaseService.java:105)
      at org.apache.camel.dsl.jbang.core.commands.Run.runKameletMain(Run.java:929)
      at org.apache.camel.dsl.jbang.core.commands.Run.run(Run.java:708)
      at org.apache.camel.dsl.jbang.core.commands.Run.runTransform(Run.java:294)
      at org.apache.camel.dsl.jbang.core.commands.Transform.doCall(Transform.java:94)
      at org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:71)
      at org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:36)
      at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
      at picocli.CommandLine.access$1500(CommandLine.java:148)
      at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
      at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
      at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
      at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
      at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
      at picocli.CommandLine.execute(CommandLine.java:2170)
      at org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:163)
      at main.CamelJBang.main(CamelJBang.java:36)

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: