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

Client driver: ResultSet.beforeFirst() gives protocol error on scrollable, updatable result sets that are downgraded to read-only

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.2.1.6
    • 10.2.1.6
    • JDBC, Network Client
    • None

    Description

      When a statement that produces scrollable, updatable result sets executes a query which cannot produce an updatable result set (a join for instance), ResultSet.beforeFirst() fails with the following error:

      Exception in thread "main" java.sql.SQLException: A network protocol error was encountered and the connection has been terminated: Network protocol exception: DSS length not 0 at end of same id chain parse. The connection has been terminated.
      at org.apache.derby.client.am.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)
      at org.apache.derby.client.am.SqlException.getSQLException(SqlException.java:344)
      at org.apache.derby.client.am.ResultSet.beforeFirst(ResultSet.java:2101)
      at Repro.main(Repro.java:16)
      Caused by: org.apache.derby.client.am.DisconnectException: A network protocol error was encountered and the connection has been terminated: Network protocol exception: DSS length not 0 at end of same id chain parse. The connection has been terminated.
      at org.apache.derby.client.am.ResultSet.flowPositioningFetch(ResultSet.java:3888)
      at org.apache.derby.client.am.ResultSet.moveToBeforeFirst(ResultSet.java:4149)
      at org.apache.derby.client.am.ResultSet.beforeFirstX(ResultSet.java:2118)
      at org.apache.derby.client.am.ResultSet.beforeFirst(ResultSet.java:2096)
      ... 1 more

      Attachments

        1. derby-1481.diff
          2 kB
          Fernanda Pizzorno
        2. derby-1481.stat
          0.2 kB
          Fernanda Pizzorno
        3. Repro.java
          0.7 kB
          Knut Anders Hatlen

        Activity

          People

            fernanda Fernanda Pizzorno
            knutanders Knut Anders Hatlen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: