Skip to content

Upgrade issue in 2.0.6 [JIRA: CLIENTS-845] #619

@jplock

Description

@jplock

I think you may be aware of this, but I wanted to let you know of an issue I ran into while upgrading from 2.0.5 to 2.0.6 within my Dropwizard 0.9.2 application. Dropwizard 0.9.2 currently depends on Jackson 2.6.3 (and will be upgrading to Jackson 2.7.4 in Dropwizard 1.0.0).

As part of the Riak client 2.0.6 version, #615 upgraded Jackson to 2.7.3 which changed the method signature of checkAndFixAccess in jackson-databind, which resulted in a lot of these errors being thrown within my application (since I was creating a shaded-jar with Jackson 2.6.3 from Dropwizard taking precedence over Jackson 2.7.3 in the Riak client):

ERROR [2016-05-08 17:34:47,907] com.basho.riak.client.core.RiakNode: Operation onException() channel: id:-2069448905 127.0.0.1:8087 {}
    ! java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.util.ClassUtil.checkAndFixAccess(Ljava/lang/reflect/Member;Z)V
    ! at com.basho.riak.client.api.convert.reflection.ClassUtil.checkAndFixAccess(ClassUtil.java:40) ~[notification-application-1.2.0.jar:1.2.0]
    ! at com.basho.riak.client.api.convert.reflection.AnnotationInfo$Builder.withRiakBucketNameField(AnnotationInfo.java:1240) ~[notification-application-1.2.0.jar:1.2.0]

Just pointing this out in case anyone else runs into this. For the time being, I'm going to stick with the 2.0.5 Riak client when using Dropwizard 0.9.2 instead of messing around with my shaded jar settings.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions