Jetty
  1. Jetty
  2. JETTY-922

NullPointerException in the SocketEndPoint

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.1.15.rc3
    • Fix Version/s: 6.1.15.rc5
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      The call stack is below. This error is very rare. According to the Java spec:

      Socket.getRemoteSocketAddress()
      Returns the address of the endpoint this socket is connected to, or null if it is unconnected.

      The SocketEndPoint methods relying on the getRemoteSocketAddress() should check for NULLs.

      EXCEPTION java.lang.NullPointerException
      at org/mortbay/io/bio/SocketEndPoint.getRemoteAddr (SocketEndPoint.java:133)
      at org/mortbay/jetty/Request.getRemoteAddr (Request.java:893)
      at org/mortbay/jetty/NCSARequestLog.log (NCSARequestLog.java:258)
      at org/mortbay/jetty/handler/RequestLogHandler.handle (RequestLogHandler.java:52)
      at org/mortbay/jetty/handler/HandlerCollection.handle (HandlerCollection.java:129)
      at org/mortbay/jetty/handler/HandlerWrapper.handle (HandlerWrapper.java:153)
      at org/mortbay/jetty/Server.handle (Server.java:325)
      at org/mortbay/jetty/HttpConnection.handleRequest (HttpConnection.java:536)
      at org/mortbay/jetty/HttpConnection$RequestHandler.headerComplete (HttpConnection.java:865)
      at org/mortbay/jetty/HttpParser.parseNext (HttpParser.java:539)
      at org/mortbay/jetty/HttpParser.parseAvailable (HttpParser.java:212)
      at org/mortbay/jetty/HttpConnection.handle (HttpConnection.java:404)
      at org/mortbay/jetty/bio/SocketConnector$Connection.run (SocketConnector.java:228)
      at com/videoiq/fusion/camera/webserver/WebServerThreadPool$PoolThread.run (WebServerThreadPool.java:476)

        Activity

        Greg Wilkins made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 7.0.0.pre6 [ 14687 ]
        Fix Version/s 6.1.15.rc5 [ 15040 ]
        Greg Wilkins made changes -
        Fix Version/s 7.0.0.pre6 [ 14687 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: