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

Network server fails with DRDAProtocolException if a BLOB with size 2147483647 is streamed from client

    XMLWordPrintableJSON

Details

    • Normal

    Description

      When executing a program which inserts a BLOB of size 2GB-1, the Network server fails with DRDAProtocolException. This happens before it starts handling the actual LOB data:

      java org.apache.derby.drda.NetworkServerControl start
      Apache Derby Network Server - 10.2.0.4 alpha started and ready to accept connections on port 1527 at 2006-07-26 14:15:21.284 GMT
      Execution failed because of a Distributed Protocol Error: DRDA_Proto_SYNTAXRM; CODPNT arg = 0; Error Code Value = c
      org.apache.derby.impl.drda.DRDAProtocolException
      at org.apache.derby.impl.drda.DRDAConnThread.throwSyntaxrm(DRDAConnThread.java:441)
      at org.apache.derby.impl.drda.DDMReader.readLengthAndCodePoint(DDMReader.java:554)
      at org.apache.derby.impl.drda.DDMReader.getCodePoint(DDMReader.java:617)
      at org.apache.derby.impl.drda.DRDAConnThread.parseSQLDTA_work(DRDAConnThread.java:4072)
      at org.apache.derby.impl.drda.DRDAConnThread.parseSQLDTA(DRDAConnThread.java:3928)
      at org.apache.derby.impl.drda.DRDAConnThread.parseEXCSQLSTTobjects(DRDAConnThread.java:3806)
      at org.apache.derby.impl.drda.DRDAConnThread.parseEXCSQLSTT(DRDAConnThread.java:3640)
      at org.apache.derby.impl.drda.DRDAConnThread.processCommands(DRDAConnThread.java:928)
      at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:254)
      null
      org.apache.derby.impl.drda.DRDAProtocolException
      at org.apache.derby.impl.drda.DRDAConnThread.throwSyntaxrm(DRDAConnThread.java:441)
      at org.apache.derby.impl.drda.DDMReader.readLengthAndCodePoint(DDMReader.java:554)
      at org.apache.derby.impl.drda.DDMReader.getCodePoint(DDMReader.java:617)
      at org.apache.derby.impl.drda.DRDAConnThread.parseSQLDTA_work(DRDAConnThread.java:4072)
      at org.apache.derby.impl.drda.DRDAConnThread.parseSQLDTA(DRDAConnThread.java:3928)
      at org.apache.derby.impl.drda.DRDAConnThread.parseEXCSQLSTTobjects(DRDAConnThread.java:3806)
      at org.apache.derby.impl.drda.DRDAConnThread.parseEXCSQLSTT(DRDAConnThread.java:3640)
      at org.apache.derby.impl.drda.DRDAConnThread.processCommands(DRDAConnThread.java:928)
      at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:254)

      Attachments

        1. derby-1595-1a-client_write6bytes.diff
          4 kB
          Kristian Waagan
        2. derby-1595-2a-client_int_overflow.diff
          8 kB
          Kristian Waagan

        Issue Links

          Activity

            People

              kristwaa Kristian Waagan
              andreask Andreas Korneliussen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: