Comments (8)
The error appears on response received. You probably contacted the server but you sent a media type it does not support. Do you have any error log in your server ? You can also look at Chrome or Firefox dev tools and the network tab. You should see your request and the response the server send.
from gwt-jackson.
Response Headers:
Cache-Control: private
Content-Length: 1048
Content-Type: text/html;charset=utf-8
Date: Mon, 22 Sep 2014 17:16:25 GMT
Expires: Thu, 01 Jan 1970 12:00:00 NZST
Server: Apache-Coyote/1.1
Request Headers:
Accept: application/json
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.5
Connection: keep-alive
Content-Length: 31043
Content-Type: application/json; charset=utf-8
Cookie: JSESSIONID=3787B91FCF31893299BF1E45489EC7C1; incidentId=4; IMS_SECURED=iow4cahibff8e6lc2e8ndp15e; m=34e2:|2663:t|4e99:t|6967:t|2c69:t|18c3:t|1d98:t
Host: localhost:8080
Referer: http://localhost:8080/ims/?gwt.codesvr=127.0.0.1:9997
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0
X-CSRF-Token: iow4cahibff8e6lc2e8ndp15e
X-GWT-Module-Base: http://localhost:8080/ims/api
There's nothing wrong with what I see here. application/json is what i've been using the whole time.
from gwt-jackson.
But the server is responding with a text/html;charset=utf-8 and not application/json.
What's the status code of the response ? 200 ?
from gwt-jackson.
Its returning:
<html><head><title>Apache Tomcat/7.0.42 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 415 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server refused this request because the request entity is in a format not supported by the requested resource for the requested method.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.42</h3></body></html>
Which is the tomcat response to 415 error code.
from gwt-jackson.
Maybe the server was not able to deserialize your request ?
from gwt-jackson.
Perhaps, this is the json being passed to the server: http://jsonblob.com/5420761de4b085deb6f74b7b can't see anything wrong with it.
from gwt-jackson.
Got it resolved, wasn't anything to do with this library so I won't keep spamming here.
from gwt-jackson.
For anyone else that may run into this, I have posted an issue on the Jackson github: FasterXML/jackson-databind#555
from gwt-jackson.
Related Issues (20)
- HashMap <SimplePojo, Set <Integer>> ...does not serialize into Json HOT 2
- No source code is available for type com.fasterxml.jackson.databind.ObjectMapper; did you forget to inherit a required module? HOT 3
- Support for java.util.Optional HOT 1
- Expected a string but was BEGIN_OBJECT at line 1 column 2 HOT 1
- Please REVERT the dependency on Jackson 2.9.*, Jackson 2.9.* is NOT compatible with GWT. HOT 2
- Support for @JsonCreator(mode = Mode.DELEGATING)
- Custom deserializer compilation error
- Getter returning Optional<T> of nullable T causing compilation error HOT 2
- GWT 2.6.1 + GwtJackson 0.15.3 HOT 3
- JsonSerializationContext.Builder override not working as expected
- Error:GWT Compiler: No source code is available for type com.fasterxml.jackson.annotation.JsonTypeInfo.As; did you forget to inherit a required module?
- JsonTypeInfo defaultImpl attribute not working HOT 1
- Update jackson dependency to 2.9.8
- Update javapoet dependency to 1.11.1
- Support for JsonFormat.Feature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE
- Annotations on Java8 default interface are ignored HOT 1
- Can't figure out the stackoverflow I am getting
- More (de)serialization customization (JsonFilter or equivalent)
- Double.NaN / NEGATIVE_INFINITY / POSITIVE_INFINITY - Numeric values must be finite, but was
- Many compile problems
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwt-jackson.