Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-2036

Project with Data Transformation cannot be run as Local Camel Context

XMLWordPrintable

      1. import the attached project into JBDS
      2. run it as Local Camel Context
    • Hide

      Do the following changes in pom.xml:

      1. remove used property camel.version
      2. change jboss.fuse.bom.version property to 6.3.0.redhat-159 (JBoss Fuse 6.3.0.CR1)
      3. remove <version>2.17.0.redhat-630077</version> from dependecies
      4. change version of camel-maven-plugin to 2.17.0.redhat-630159
      Show
      Do the following changes in pom.xml : remove used property camel.version change jboss.fuse.bom.version property to 6.3.0.redhat-159 (JBoss Fuse 6.3.0.CR1) remove <version>2.17.0.redhat-630077</version> from dependecies change version of camel-maven-plugin to 2.17.0.redhat-630159

      If I create a new Fuse Integration project with a data transformation, I'm unable to run it as Local Camel Context Out of the Box. The following error occurred:

      [read #2 - file://src/main/data] DefaultErrorHandler            ERROR Failed delivery for (MessageId: ID-tsedmikntb-39089-1471346991907-0-13 on ExchangeId: ID-tsedmikntb-39089-1471346991907-0-14). Exhausted after delivery attempt: 1 caught: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[ID-tsedmikntb-39089-1471346991907-0-14]
      
      Message History
      ---------------------------------------------------------------------------------------------------------------------------------------
      RouteId              ProcessorId          Processor                                                                        Elapsed (ms)
      [_route1           ] [_route1           ] [file://src/main/data?noop=true                                                ] [         3]
      [_route1           ] [_to1              ] [ref:xml2json                                                                  ] [         3]
      
      Stacktrace
      ---------------------------------------------------------------------------------------------------------------------------------------
      org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[ID-tsedmikntb-39089-1471346991907-0-14]
      	at org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1706)
      	at org.apache.camel.impl.DefaultExchange.setException(DefaultExchange.java:348)
      	at org.apache.camel.processor.MarshalProcessor.process(MarshalProcessor.java:74)
      	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109)
      	at org.apache.camel.processor.MarshalProcessor.process(MarshalProcessor.java:50)
      	at org.apache.camel.component.dozer.DozerProducer.process(DozerProducer.java:100)
      	at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
      	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:145)
      	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)
      	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190)
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190)
      	at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:454)
      	at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:226)
      	at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:190)
      	at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:175)
      	at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:102)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.util.BeanUtil.okNameForGetter(Lcom/fasterxml/jackson/databind/introspect/AnnotatedMethod;Z)Ljava/lang/String;
      	at com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector.findNameForSerialization(JaxbAnnotationIntrospector.java:824)
      	at com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair.findNameForSerialization(AnnotationIntrospectorPair.java:472)
      	at com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector._addGetterMethod(POJOPropertiesCollector.java:552)
      	at com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector._addMethods(POJOPropertiesCollector.java:510)
      	at com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector.collect(POJOPropertiesCollector.java:238)
      	at com.fasterxml.jackson.databind.introspect.BasicClassIntrospector.collectProperties(BasicClassIntrospector.java:142)
      	at com.fasterxml.jackson.databind.introspect.BasicClassIntrospector.forSerialization(BasicClassIntrospector.java:68)
      	at com.fasterxml.jackson.databind.introspect.BasicClassIntrospector.forSerialization(BasicClassIntrospector.java:11)
      	at com.fasterxml.jackson.databind.SerializationConfig.introspect(SerializationConfig.java:529)
      	at com.fasterxml.jackson.databind.ser.BeanSerializerFactory.createSerializer(BeanSerializerFactory.java:133)
      	at com.fasterxml.jackson.databind.SerializerProvider._createUntypedSerializer(SerializerProvider.java:1077)
      	at com.fasterxml.jackson.databind.SerializerProvider._createAndCacheUntypedSerializer(SerializerProvider.java:1037)
      	at com.fasterxml.jackson.databind.SerializerProvider.findValueSerializer(SerializerProvider.java:445)
      	at com.fasterxml.jackson.databind.SerializerProvider.findTypedValueSerializer(SerializerProvider.java:599)
      	at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:92)
      	at com.fasterxml.jackson.databind.ObjectWriter._configAndWriteValue(ObjectWriter.java:800)
      	at com.fasterxml.jackson.databind.ObjectWriter.writeValue(ObjectWriter.java:642)
      	at org.apache.camel.component.jackson.JacksonDataFormat.marshal(JacksonDataFormat.java:154)
      	at org.apache.camel.processor.MarshalProcessor.process(MarshalProcessor.java:69)
      	... 23 more
      [read #2 - file://src/main/data] GenericFileOnCompletion        WARN  Rollback file strategy: org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy@2d05025b for file: GenericFile[abc-order.xml]
      

        1. Bildschirmfoto von »2016-08-26 22-34-13«.png
          233 kB
          Lars Heinemann

              lheinema@redhat.com Lars Heinemann
              tsedmik Tomáš Sedmík
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: