getting "Content-Type must be 'text/x-gwt-rpc' with 'charset=utf-8'" after updating to gwt 1.5RC1

1,376 views
Skip to first unread message

TimTimGo

unread,
Aug 11, 2008, 6:56:28 AM8/11/08
to Google Web Toolkit
Hi,
after updating to gwt 1.5, I'm getting this error:

2008-08-11 12:16:33.899:/:WARN: Exception while dispatching incoming
RPC call
javax.servlet.ServletException: Content-Type must be 'text/x-gwt-rpc'
with 'charset=utf-8'.
at
com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8(RPCServletUtils.java:
141)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:
76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
443)
... (and so on)

I already read similar postings in this google group, but they didn't
adress excactly this error. For example
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/c06fd940ba44036a/044bb472161dab43?lnk=raot
. The difference is that the error message in this discussion is
"Content Type must be text/plain" and my error message is "Content
Type must be 'text/x-gwt-rpc'". I figured the proposed solution to
replace the server libraries would work for me too. Thus I replaced
client jars and also server jars.

Nevertheless, I still get this errormessage. Maybe I forgot to update
a library somewhere. Actually, I don't believe that, as I created a
new project completely with gwt 1.5. I guessed this way gwt should use
the new libraries, but the error still keeps showing up.

I really don't know how to solve this, but maybe you professionals
here have another clue for me.

I guess for helping me, you will need some information about my setup:
For development, I'm using Cypal Studio for gwt in Eclipse. This will
compile the gwt project.
As server, I use an embedded jetty in an eclipse application. I deploy
the service servlet as well as the static content which is in the
gwtOutput directory to this.

Thanks for helping
TimTimGo

ToOLs

unread,
Aug 26, 2008, 9:28:10 AM8/26/08
to Google Web Toolkit
Maybe this will help you:

http://code.google.com/p/google-web-toolkit/issues/detail?id=2484#c3

On Aug 11, 12:56 pm, TimTimGo <Timo.Kers...@ifta.com> wrote:
> Hi,
> after updating to gwt 1.5, I'm getting this error:
>
> 2008-08-11 12:16:33.899:/:WARN:  Exception while dispatching incoming
> RPC call
> javax.servlet.ServletException: Content-Type must be 'text/x-gwt-rpc'
> with 'charset=utf-8'.
>         at
> com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8(RPCServletUtils.java:
> 141)
>         at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:
> 76)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 443)
> ... (and so on)
>
> I already read similar postings in this google group, but they didn't
> adress excactly this error. For examplehttp://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...

mrpantsuit

unread,
Sep 2, 2008, 6:41:15 PM9/2/08
to Google Web Toolkit
I had the same problem and fixed it by doing a Ctrl-F5 refresh in the
browser.

On Aug 11, 6:56 am, TimTimGo <Timo.Kers...@ifta.com> wrote:
> Hi,
> after updating to gwt 1.5, I'm getting this error:
>
> 2008-08-11 12:16:33.899:/:WARN:  Exception while dispatching incoming
> RPC call
> javax.servlet.ServletException: Content-Type must be 'text/x-gwt-rpc'
> with 'charset=utf-8'.
>         at
> com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8(RPCServlet Utils.java:
> 141)
>         at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceSer vlet.java:
> 76)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 443)
> ... (and so on)
>
> I already read similar postings in this google group, but they didn't
> adress excactly this error. For examplehttp://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
Reply all
Reply to author
Forward
0 new messages