Skip to content

Instantly share code, notes, and snippets.

@kovacs
Created July 8, 2013 15:54
Show Gist options
  • Save kovacs/5950052 to your computer and use it in GitHub Desktop.
Save kovacs/5950052 to your computer and use it in GitHub Desktop.
Exception in thread "main" java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.deser.BeanDeserializerBuilder.build()Lcom/fasterxml/jackson/databind/JsonDeserializer;
at com.fasterxml.jackson.module.afterburner.deser.CustomDeserializerBuilder.build(CustomDeserializerBuilder.java:17)
at com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.buildBeanDeserializer(BeanDeserializerFactory.java:289)
at com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.createBeanDeserializer(BeanDeserializerFactory.java:171)
at com.fasterxml.jackson.databind.deser.DeserializerCache._createDeserializer(DeserializerCache.java:388)
at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCache2(DeserializerCache.java:264)
at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCacheValueDeserializer(DeserializerCache.java:244)
at com.fasterxml.jackson.databind.deser.DeserializerCache.findValueDeserializer(DeserializerCache.java:143)
at com.fasterxml.jackson.databind.DeserializationContext.findRootValueDeserializer(DeserializationContext.java:342)
at com.fasterxml.jackson.databind.ObjectMapper._findRootDeserializer(ObjectMapper.java:2899)
at com.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:2764)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:1478)
at com.codahale.dropwizard.configuration.ConfigurationFactory.build(ConfigurationFactory.java:104)
at com.codahale.dropwizard.configuration.ConfigurationFactory.build(ConfigurationFactory.java:69)
at com.codahale.dropwizard.cli.ConfiguredCommand.parseConfiguration(ConfiguredCommand.java:85)
at com.codahale.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:54)
at com.codahale.dropwizard.cli.Cli.run(Cli.java:69)
at com.codahale.dropwizard.Application.run(Application.java:72)
@jamel
Copy link

jamel commented Jul 20, 2013

I have the same problem after updating DW to 0.7.0-SNAPSHOT.
Did you found solution how to fix this?

@jamel
Copy link

jamel commented Jul 20, 2013

Exclude transitive dependency of jackson-databind from mongojack :

        <dependency>
            <groupId>org.mongojack</groupId>
            <artifactId>mongojack</artifactId>
            <version>2.0.0-RC5</version>
            <exclusions>
                <exclusion>
                    <groupId>com.fasterxml.jackson.core</groupId>
                    <artifactId>jackson-databind</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

This is helps me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment