Jetty
  1. Jetty
  2. JETTY-450

Jetty throw "java.lang.IllegalStateException: response" sometimes.

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 6.1.6rc0
    • Fix Version/s: 6.1.6rc1
    • Component/s: HTTP
    • Labels:
      None
    • Number of attachments :
      0

      Description

      the full stack is:

      2007-10-23 06:35:17.609::WARN: handle failed
      java.lang.IllegalStateException: response
      at org.mortbay.jetty.HttpConnection$RequestHandler.startResponse(HttpConnection.java:864)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:403)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
      at java.lang.Thread.run(Thread.java:619)

        Activity

        Hide
        Greg Wilkins added a comment -

        This appears due to a bad request.
        Anything with a request line starting with digits will be considered a response.

        I will try to be less verbose about this and just do a bad request response.

        Show
        Greg Wilkins added a comment - This appears due to a bad request. Anything with a request line starting with digits will be considered a response. I will try to be less verbose about this and just do a bad request response.
        Hide
        Greg Wilkins added a comment -

        Bad request response is now sent
        and the logging is at debug level

        Show
        Greg Wilkins added a comment - Bad request response is now sent and the logging is at debug level
        Hide
        Kevin Conaway added a comment -

        So is the following request not a valid http request:

        GET 2/content HTTP/1.1

        It must be:

        GET /2/content HTTP/1.1

        ?

        Show
        Kevin Conaway added a comment - So is the following request not a valid http request: GET 2/content HTTP/1.1 It must be: GET /2/content HTTP/1.1 ?

          People

          • Assignee:
            Unassigned
            Reporter:
            Boyce Lee
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: