Derby
  1. Derby
  2. DERBY-4959

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 10.8.1.2
    • Fix Version/s: 10.8.1.2
    • Component/s: JDBC, Network Server, SQL
    • Labels:
      None
    • Issue & fix info:
      Repro attached
    • Bug behavior facts:
      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.

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

        Issue Links

          Activity

          Rick Hillegas created issue -
          Rick Hillegas made changes -
          Field Original Value New Value
          Attachment zz.java [ 12467573 ]
          Rick Hillegas made changes -
          Issue & fix info [Repro attached]
          Rick Hillegas made changes -
          Link This issue blocks DERBY-4066 [ DERBY-4066 ]
          Rick Hillegas made changes -
          Link This issue blocks DERBY-4869 [ DERBY-4869 ]
          Rick Hillegas made changes -
          Assignee Rick Hillegas [ rhillegas ]
          Rick Hillegas made changes -
          Attachment derby-4959-01-aa-detectNulls.diff [ 12467579 ]
          Rick Hillegas made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Fix Version/s 10.8.0.0 [ 12315561 ]
          Resolution Fixed [ 1 ]
          Rick Hillegas made changes -
          Affects Version/s 10.8.1.1 [ 12316356 ]
          Affects Version/s 10.8.1.0 [ 12315561 ]
          Fix Version/s 10.8.1.1 [ 12316356 ]
          Fix Version/s 10.8.1.0 [ 12315561 ]
          Rick Hillegas made changes -
          Affects Version/s 10.8.1.2 [ 12316362 ]
          Affects Version/s 10.8.1.1 [ 12316356 ]
          Fix Version/s 10.8.1.2 [ 12316362 ]
          Fix Version/s 10.8.1.1 [ 12316356 ]
          Gavin made changes -
          Workflow jira [ 12541663 ] Default workflow, editable Closed status [ 12801003 ]

            People

            • Assignee:
              Rick Hillegas
              Reporter:
              Rick Hillegas
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development