Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6341085

Should send a default HTTP code when there is an error in HttpHandler

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 6
    • core-libs
    • None
    • generic
    • generic

      * If HttpHandler throws a runtime exception, server doesn't send a 500 Internal error response. It is true that it is the problem with the application, but HttpServer implementation can do something about it. Otherwise, the client programs just hang waiting for a response.

      * If the executors are not set, and the HttpHandler throws a runtime exception, then the server jvm terminates. Comment out the line no: 24 and try it.

      Attaching a program which produces both these problems.

            michaelm Michael McMahon
            jkotamra Jitendra Kotamraju (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: