Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.JavaType.isReferenceType()Z

    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 5.62k
    Comment on it

    I was integrating solr with java using maven dependencies 

           <dependency>
    			<groupId>org.apache.solr</groupId>
    			<artifactId>solr-solrj</artifactId>
    			<version>5.5.0</version>
    		</dependency>
    			
    		<dependency>
    			<groupId>org.springframework.data</groupId>
    			<artifactId>spring-data-solr</artifactId>
    			<version>1.5.4.RELEASE</version>
    		</dependency>

    After adding these dependencies the projects starts fine. When I tried to consume the methods, it starts giving me error:

    java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.JavaType.isReferenceType()Z

    So I added these two dependencies and it worked fine after that.

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

     

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: