Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: fuse-7.6-DR1
    • Fix Version/s: fuse-7.7-GA
    • Component/s: Camel, WildFly Camel
    • Labels:
      None
    • Service / (sub)product:
      Fuse Standalone
    • Prod build version:
      fuse-7.7-build1
    • QE Test Coverage:
      +

      Description

      I am getting error

      java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/JsonParser
      	at org.apache.camel.component.telegram.model.UnixTimestampDeserializer.deserialize(UnixTimestampDeserializer.java:40)
      	at org.apache.camel.component.telegram.model.UnixTimestampDeserializer.deserialize(UnixTimestampDeserializer.java:33)
      	at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:129)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)
      	at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:129)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)
      	at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:286)
      	at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:245)
      	at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:27)
      	at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:129)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)
      	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4014)
      	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3071)
      

      You can see that https://github.com/jboss-fuse/camel/blob/2.21.x.redhat-7-x/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/UnixTimestampDeserializer.java#L23 is using com.fasterxml.jackson.core.JsonParser class but there is no dependency on <module name="com.fasterxml.jackson.core.jackson-core"/> in module.xml file.

      <?xml version="1.0" encoding="UTF-8"?>^M
      <module name="org.apache.camel.component.telegram" xmlns="urn:jboss:module:1.1">
        <resources>
          <resource-root path="camel-telegram-2.21.0.fuse-760018-redhat-00001.jar"/>
        </resources>
        <dependencies>
          <module name="javax.ws.rs.api"/>
      +  <module name="com.fasterxml.jackson.core.jackson-core"/>
          <module name="com.fasterxml.jackson.core.jackson-annotations"/>
          <module name="com.fasterxml.jackson.core.jackson-databind"/>
          <module name="org.apache.cxf.impl"/>
          <module name="org.slf4j"/>
          <module name="com.fasterxml.jackson.jaxrs.jackson-jaxrs-json-provider"/>
          <module name="javax.xml.bind.api"/>
          <module name="org.apache.camel.core"/>
          <module name="org.apache.cxf.ext"/>
        </dependencies>
      </module>
      

      Fixed my problem.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  zhfeng Zheng Feng
                  Reporter:
                  jbouska Jan Bouska
                  Tester:
                  Tomas Veskrna
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: