• Post Reply Bookmark Topic Watch Topic
  • New Topic

Content-Type must be 'text/plain' with 'charset=utf-8' (or unspecified charset)  RSS feed

 
Sanket L Shah
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am developing one application using GWT + Servlet.

When I am making call to server It gives me exception like...

SEVERE: [1242799965682000] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call
javax.servlet.ServletException: Content-Type must be 'text/plain' with 'charset=utf-8' (or unspecified charset)



Please help me...
Thanks :-)
 
Rob Spoor
Sheriff
Posts: 21133
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doesn't the exception specify the problem? Your content type is probably text/html, so you need to change it to text/plain.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!