Nicola Ferraro created CAMEL-10752:
--------------------------------------
Summary: camel-box does not work with current version of jackson2
Key: CAMEL-10752
URL: https://issues.apache.org/jira/browse/CAMEL-10752
Project: Camel
Issue Type: Bug
Reporter: Nicola Ferraro
Current camel-box component is based on the 'net.box' client library that is
unable to work with Jackson 2.8.x due to this issue
(https://github.com/FasterXML/jackson-databind/issues/1339).
We may want to upgrade the component to the new 'com.box' client library
(https://github.com/box/box-java-sdk), released under Apache 2.0 (not using
Jackson).
Exceptions thrown by the component:
{code}
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
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)