Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-8652

camel-box broken by Jackson BOM dependency

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: FIS 2.0
    • Fix Version/s: fuse-7.0
    • Component/s: FIS-Camel
    • Labels:
      None
    • Sprint:
      Fuse 7.0 Sprint 6

      Description

      We obtain lot of errors which are related to fabric8-project-bom-camel-spring-boot as BOM for camel-box tests. Because when we manually add

      			<dependency>
      				<groupId>com.fasterxml.jackson.core</groupId>
      				<artifactId>jackson-databind</artifactId>
      				<version>2.7.4</version>
      			</dependency>
      			<dependency>
      				<groupId>com.fasterxml.jackson.core</groupId>
      				<artifactId>jackson-annotations</artifactId>
      				<version>2.7.4</version>
      			</dependency>
      			<dependency>
      				<groupId>com.fasterxml.jackson.core</groupId>
      				<artifactId>jackson-core</artifactId>
      				<version>2.7.4</version>
      			</dependency>
      

      our testsuite is working.

      These errors occur:

      Caused by: java.lang.IllegalArgumentException: Class com.box.boxjavalibv2.dao.BoxTypedObject not subtype of [simple type, class com.box.boxjavalibv2.dao.BoxServerError]
      at com.fasterxml.jackson.databind.type.TypeFactory.constructSpecializedType(TypeFactory.java:359)

      Caused by: java.lang.IllegalArgumentException: Class com.box.boxjavalibv2.dao.BoxItem not subtype of [simple type, class com.box.boxjavalibv2.dao.BoxFolder]
      at com.fasterxml.jackson.databind.type.TypeFactory.constructSpecializedType(TypeFactory.java:359)

      Caused by: java.lang.IllegalArgumentException: Class com.box.boxjavalibv2.dao.BoxUserBase not subtype of [simple type, class com.box.boxjavalibv2.dao.BoxUser]
      at com.fasterxml.jackson.databind.type.TypeFactory.constructSpecializedType(TypeFactory.java:359)

      One full exception:

      Caused by: java.lang.IllegalArgumentException: Class com.box.boxjavalibv2.dao.BoxUserBase not subtype of [simple type, class com.box.boxjavalibv2.dao.BoxUser]
      at com.fasterxml.jackson.databind.type.TypeFactory.constructSpecializedType(TypeFactory.java:359)
      at com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder.buildTypeDeserializer(StdTypeResolverBuilder.java:118)
      at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.findTypeDeserializer(BasicDeserializerFactory.java:1359)
      at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.findPropertyTypeDeserializer(BasicDeserializerFactory.java:1494)
      at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.resolveMemberAndTypeAnnotations(BasicDeserializerFactory.java:1843)
      at com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.constructSettableProperty(BeanDeserializerFactory.java:728)
      at com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.addBeanProps(BeanDeserializerFactory.java:516)
      at com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.buildBeanDeserializer(BeanDeserializerFactory.java:226)
      at com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.createBeanDeserializer(BeanDeserializerFactory.java:141)
      at com.fasterxml.jackson.databind.deser.DeserializerCache._createDeserializer2(DeserializerCache.java:406)
      at com.fasterxml.jackson.databind.deser.DeserializerCache._createDeserializer(DeserializerCache.java:352)
      at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCache2(DeserializerCache.java:264)
      ... 27 more

      So camel-box probably doesn't work well with versions of com.fasterxml.jackson dependencies from BOM.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                llowinge Lukáš Löwinger
                Tester:
                Jan Kasztura
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: