HTTP Status 406 The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers.


HTTP Status 406


The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers.


Add following JSON jars to Project lib link

1. jackson-annotations-2.2.3.jar
2. jackson-core-2.2.3.jar
3. jackson-databind-2.2.3.jar

Or

Add following dependies

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


Tags: ,

4 Responses to “HTTP Status 406 The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers.”

Abhay said...
September 18, 2015 at 9:37 AM

Thanks it solved my issue.


Ajay Kumar said...
December 1, 2015 at 11:37 AM

Please have a look this URL, how to get rid of this issues in Spring + JSON

https://itexpertsconsultant.wordpress.com/2015/12/01/spring-mvc-json-406-not-acceptable-characteristics-not-acceptable-according-to-the-request-accept-headers/


Unknown said...
August 8, 2016 at 12:06 PM

same above error is coming ,even i added all three jar, i am calling my java call using ajax dojo.io.iframe.send({
url: Eurl,
method: "GET",
handleAs: "json",
load: function(response, ioArgs){
alert("hhh");
return response;
},
error: function(response, ioArgs){
alert("fail");

return response;
}
})


Unknown said...
August 8, 2016 at 12:07 PM

to download my generated excel


Post a Comment

Thanks for your comments

Subscribe

© 2014 Java Frameworks. All rights reserved.
Designed by Blogger