7 Replies Latest reply on Oct 27, 2002 12:34 PM by TJ

    Jetty add additional stuff inside the response header???HELP

    TJ Newbie

      I have a problem when I tried to send the response back from a Servlet. I'm using Jboss 3.0.3 that comes with Jetty. The exception that I got is
      10:55:35,526 WARN [jbossweb] WARNING: Invalid length: Content-Length=17 written
      =19 for http://localhost:8080/

      The strange thing is if I add 2 into the message.length then it will stop complain. So When I'm sending String with length of 17 and I add 2 = 19 it will stop complaining. This has caused my POST connection a BIG problem. Anybody especially JBOSS developer know how to handle this????

      This is the snippet of the code

      message = "somemessage";
      PrintWriter out = response.getWriter();