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

java.lang.IllegalArgumentException: Data format 'jacksonxml' could not be created

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: 3.9.0
    • Fix Version/s: 3.9.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      I have made a simple blueprint application that uses Apache Camel 3.9.0 deployed on karaf 4.2.11.

       

        <dataFormats> <jacksonxml id="jacksonxml" /> </dataFormats>
      <route id="myRoute1"> <from uri="activemq:queue:FROM_Q1" /> <marshal> <custom ref="jacksonxml"></custom> </marshal> <bean ref="bean1" method="m1" /> <log message="RECEIVE MESSAGE FROM QUEUE  ${body}" loggingLevel="INFO" />
       </route>
      

       

      Exception happened:

      021-04-21T14:50:24,235 | ERROR | Blueprint Event Dispatcher: 1 | BlueprintCamelContext            | 169 - org.apache.camel.karaf.camel-blueprint - 3.9.0 | Error occurred during starting CamelContext: groupManagerContext021-04-21T14:50:24,235 | ERROR | Blueprint Event Dispatcher: 1 | BlueprintCamelContext            | 169 - org.apache.camel.karaf.camel-blueprint - 3.9.0 | Error occurred during starting CamelContext: groupManagerContextjava.lang.IllegalArgumentException: Data format 'jacksonxml' could not be created. Ensure that the data format is valid and the associated Camel component is present on the classpath at org.apache.camel.reifier.dataformat.DataFormatReifier.createDataFormat(DataFormatReifier.java:284) ~[!/:3.9.0] at org.apache.camel.impl.DefaultModelReifierFactory.createDataFormat(DefaultModelReifierFactory.java:54) ~[!/:3.9.0] at org.apache.camel.impl.DefaultCamelContext.bindDataFormats(DefaultCamelContext.java:596) ~[!/:3.9.0] at org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamelContext.java:2744) ~[!/:3.9.0] at org.apache.camel.support.service.BaseService.init(BaseService.java:83) ~[!/:3.9.0] at org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2490) ~[!/:3.9.0] at org.apache.camel.support.service.BaseService.start(BaseService.java:111) ~[!/:3.9.0] at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2507) ~[!/:3.9.0] at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:174) ~[!/:3.9.0] at org.apache.camel.blueprint.BlueprintCamelContext.start(BlueprintCamelContext.java:241) ~[!/:3.9.0] at org.apache.camel.blueprint.BlueprintCamelContext.maybeStart(BlueprintCamelContext.java:283) ~[!/:3.9.0] at org.apache.camel.blueprint.BlueprintCamelContext.blueprintEvent(BlueprintCamelContext.java:188) [!/:3.9.0] at org.apache.aries.blueprint.container.BlueprintEventDispatcher$3.call(BlueprintEventDispatcher.java:197) [!/:1.10.3] at org.apache.aries.blueprint.container.BlueprintEventDispatcher$3.call(BlueprintEventDispatcher.java:195) [!/:1.10.3] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_191] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_191] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_191] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_191] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_191] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_191] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_191] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_191] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_191] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]2021-04-21T14:50:24,239 | INFO  | features-2-thread-1 | FeaturesServiceImpl              | 13 - org.apache.karaf.features.core - 4.2.11 | Done.

       

      I have attached a simple application that simulate the same issue on Karaf 4.2.11:

      To reproduce the issue:

      feature:repo-add mvn:com.test.karaftest/simplekarafapp/1.0/xml/features

      feature:install -v myfeature

        Attachments

        1. simpleKarafApp.rar
          27 kB
          nizar.ben.mansour

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nizar.ben.mansour@gmail.com nizar.ben.mansour
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: