Claus Ibsen created CAMEL-19936:
-----------------------------------
Summary: camel-xml-io - Parsing error with line precise error
Key: CAMEL-19936
URL: https://issues.apache.org/jira/browse/CAMEL-19936
Project: Camel
Issue Type: Improvement
Components: camel-jbang
Reporter: Claus Ibsen
Assignee: Claus Ibsen
Fix For: 4.1.0
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)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)