Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-4959

NPE in network server trying to return a null LOB as a procedure output arg

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.8.1.2
    • 10.8.1.2
    • JDBC, Network Server, SQL
    • None
    • Repro attached
    • Crash

    Description

      The server stumbles on the following error if you try to return a null LOB as a procedure output arg:

      java.lang.NullPointerException
      at org.apache.derby.impl.drda.EXTDTAInputStream.length(EXTDTAInputStream.java:280)
      at org.apache.derby.impl.drda.EXTDTAInputStream.isEmptyStream(EXTDTAInputStream.java:274)
      at org.apache.derby.impl.drda.DRDAConnThread.writeFdocaVal(DRDAConnThread.java:7930)
      at org.apache.derby.impl.drda.DRDAConnThread.writeFDODTA(DRDAConnThread.java:7183)
      at org.apache.derby.impl.drda.DRDAConnThread.parseEXCSQLSTT(DRDAConnThread.java:4179)
      at org.apache.derby.impl.drda.DRDAConnThread.processCommands(DRDAConnThread.java:1021)
      at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:294)

      This kills the connection. I will attach a repro.

      Attachments

        1. derby-4959-01-aa-detectNulls.diff
          4 kB
          Richard N. Hillegas
        2. zz.java
          6 kB
          Richard N. Hillegas

        Issue Links

          Activity

            People

              rhillegas Richard N. Hillegas
              rhillegas Richard N. Hillegas
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: