Uploaded image for project: 'XML-RPC'
  1. XML-RPC
  2. XMLRPC-165

Misformatted request causes NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.1
    • 3.1.2
    • None
    • None
    • Solaris x86, JDK6

    Description

      03 Mar 2009 17:27:28,096 ERROR java.lang.NullPointerException
      java.lang.NullPointerException
      at java.util.StringTokenizer.<init>(StringTokenizer.java:182)
      at java.util.StringTokenizer.<init>(StringTokenizer.java:219)
      at org.apache.xmlrpc.webserver.HttpServletRequestImpl.<init>(HttpServletRequestImpl.java:108)
      at org.apache.xmlrpc.webserver.ServletConnection.<init>(ServletConnection.java:50)
      at org.apache.xmlrpc.webserver.ServletWebServer.newTask(ServletWebServer.java:145)
      at org.apache.xmlrpc.webserver.WebServer.run(WebServer.java:329)
      at java.lang.Thread.run(Thread.java:619)
      03 Mar 2009 17:27:28,096 ERROR Connection reset
      java.net.SocketException: Connection reset
      at java.net.SocketInputStream.read(SocketInputStream.java:168)
      at com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:293)
      at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:331)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:789)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.waitForClose(SSLSocketImpl.java:1455)
      at com.sun.net.ssl.internal.ssl.HandshakeOutStream.flush(HandshakeOutStream.java:103)
      at com.sun.net.ssl.internal.ssl.Handshaker.sendChangeCipherSpec(Handshaker.java:612)
      at com.sun.net.ssl.internal.ssl.ServerHandshaker.sendChangeCipherAndFinish(ServerHandshaker.java:1120)
      at com.sun.net.ssl.internal.ssl.ServerHandshaker.clientHello(ServerHandshaker.java:449)
      at com.sun.net.ssl.internal.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:139)
      at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:516)
      at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:454)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:884)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1112)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:744)
      at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
      at org.apache.xmlrpc.webserver.HttpServletRequestImpl$2.read(HttpServletRequestImpl.java:94)
      at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:94)
      at org.apache.xmlrpc.webserver.HttpServletRequestImpl.readLine(HttpServletRequestImpl.java:170)
      at org.apache.xmlrpc.webserver.HttpServletRequestImpl.<init>(HttpServletRequestImpl.java:106)
      at org.apache.xmlrpc.webserver.ServletConnection.<init>(ServletConnection.java:50)
      at org.apache.xmlrpc.webserver.ServletWebServer.newTask(ServletWebServer.java:145)
      at org.apache.xmlrpc.webserver.WebServer.run(WebServer.java:329)
      at java.lang.Thread.run(Thread.java:619)
      03 Mar 2009 17:27:28,096 ERROR Broken pipe
      java.net.SocketException: Broken pipe
      at java.net.SocketOutputStream.socketWrite0(Native Method)
      at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
      at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
      at com.sun.net.ssl.internal.ssl.OutputRecord.writeBuffer(OutputRecord.java:295)
      at com.sun.net.ssl.internal.ssl.OutputRecord.write(OutputRecord.java:284)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecordInternal(SSLSocketImpl.java:734)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:722)
      at com.sun.net.ssl.internal.ssl.Handshaker.sendChangeCipherSpec(Handshaker.java:606)
      at com.sun.net.ssl.internal.ssl.ServerHandshaker.sendChangeCipherAndFinish(ServerHandshaker.java:1120)
      at com.sun.net.ssl.internal.ssl.ServerHandshaker.clientHello(ServerHandshaker.java:449)
      at com.sun.net.ssl.internal.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:139)
      at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:516)
      at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:454)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:884)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1112)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:744)
      at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
      at org.apache.xmlrpc.webserver.HttpServletRequestImpl$2.read(HttpServletRequestImpl.java:94)
      at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:94)
      at org.apache.xmlrpc.webserver.HttpServletRequestImpl.readLine(HttpServletRequestImpl.java:170)
      at org.apache.xmlrpc.webserver.HttpServletRequestImpl.<init>(HttpServletRequestImpl.java:106)
      at org.apache.xmlrpc.webserver.ServletConnection.<init>(ServletConnection.java:50)
      at org.apache.xmlrpc.webserver.ServletWebServer.newTask(ServletWebServer.java:145)
      at org.apache.xmlrpc.webserver.WebServer.run(WebServer.java:329)
      at java.lang.Thread.run(Thread.java:619)

      Attachments

        1. HttpServletRequestImpl.patch
          1 kB
          Alan Burlison

        Activity

          People

            jochen@apache.org Jochen Wiedmann
            alanbur Alan Burlison
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: