javax.servlet.ServletException: Content-Type was 'text/x-gwt-rpc; charset=utf-8'. Expected 'application/json'.

Icesoft | SrArcos | 6 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Re:ServerPushCommandContext example

    Icesoft | 6 years ago | SrArcos
    javax.servlet.ServletException: Content-Type was 'text/x-gwt-rpc; charset=utf-8'. Expected 'application/json'.

    Root Cause Analysis

    1. javax.servlet.ServletException

      Content-Type was 'text/x-gwt-rpc; charset=utf-8'. Expected 'application/json'.

      at com.google.gwt.user.server.rpc.RPCServletUtils.checkContentTypeIgnoreCase()
    2. Jetty Contrib :: jetty-gwt RemoteServiceServlet
      RPCServletUtils.readContent
      1. com.google.gwt.user.server.rpc.RPCServletUtils.checkContentTypeIgnoreCase(RPCServletUtils.java:427)
      2. com.google.gwt.user.server.rpc.RPCServletUtils.readContent(RPCServletUtils.java:160)
      2 frames
    3. com.google.gwt
      RequestFactoryServlet.doPost
      1. com.google.gwt.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java:97)
      1 frame
    4. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      2 frames
    5. Jetty Server
      SelectChannelEndPoint.run
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
      7. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      8. org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
      9. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      10. org.mortbay.jetty.Server.handle(Server.java:324)
      11. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
      12. org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
      13. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
      14. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
      15. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
      16. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
      16 frames
    6. Jetty Util
      QueuedThreadPool$PoolThread.run
      1. org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
      1 frame