jersey
  1. jersey
  2. JERSEY-2056

SocketTimeoutException is not captured by ExceptionMapper

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.6
    • Fix Version/s: 2.3
    • Component/s: core
    • Labels:
      None

      Description

      If the exception is from WebComponent.isEntityPresent, it seems the exception mapper cannot capture it. Found in 1.6.

      java.net.SocketTimeoutException
          at org.apache.tomcat.util.net.NioBlockingSelector.read(NioBlockingSelector.java:191)
          at org.apache.tomcat.util.net.NioSelectorPool.read(NioSelectorPool.java:246)
          at org.apache.tomcat.util.net.NioSelectorPool.read(NioSelectorPool.java:227)
          at org.apache.coyote.http11.InternalNioInputBuffer.readSocket(InternalNioInputBuffer.java:437)
          at org.apache.coyote.http11.InternalNioInputBuffer.fill(InternalNioInputBuffer.java:808)
          at org.apache.coyote.http11.InternalNioInputBuffer$SocketInputBuffer.doRead(InternalNioInputBuffer.java:833)
          at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:124)
          at org.apache.coyote.http11.AbstractInputBuffer.doRead(AbstractInputBuffer.java:346)
          at org.apache.coyote.Request.doRead(Request.java:422)
          at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:290)
          at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:431)
          at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:315)
          at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:200)
          at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
          at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
          at com.sun.jersey.spi.container.servlet.WebComponent.isEntityPresent(WebComponent.java:861)
          at com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters(WebComponent.java:824)
          at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:405)
          at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
          at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
          ....
      

        Activity

        Hide
        Marek Potociar added a comment - - edited

        Will not fix - a minor bug in old Jersey 1.x version.

        Show
        Marek Potociar added a comment - - edited Will not fix - a minor bug in old Jersey 1.x version.

          People

          • Assignee:
            Unassigned
            Reporter:
            DanielYWoo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: