Derby
  1. Derby
  2. DERBY-5158

Incomprehensible error message on client if attempting rollback after database has been shut down.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.8.2.2, 10.9.1.0
    • Component/s: None
    • Labels:
      None
    • Issue & fix info:
      Repro attached
    • Bug behavior facts:
      Embedded/Client difference

      Description

      Cf the attached repro: when performing the rollback after the database has been shutdown, we see this error:

      There was 1 error:
      1) testShutdown(org.apache.derbyTesting.functionTests.tests.store.Foo)java.sql.SQLNonTransientConnectionException: Network protocol exception: actual code point, 4,692, does not match expected code point, 9,224. The connection has been terminated.
      at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(SQLExceptionFactory40.java:71)
      at org.apache.derby.client.am.SqlException.getSQLException(SqlException.java:358)
      at org.apache.derby.client.am.Connection.rollback(Connection.java:659)
      at org.apache.derbyTesting.junit.BaseJDBCTestCase.rollback(BaseJDBCTestCase.java:387)
      at org.apache.derbyTesting.functionTests.tests.store.Foo.testShutdown(Foo.java:100)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:112)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      at junit.extensions.TestSetup.run(TestSetup.java:25)
      at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      at junit.extensions.TestSetup.run(TestSetup.java:25)
      Caused by: org.apache.derby.client.am.DisconnectException: Network protocol exception: actual code point, 4,692, does not match expected code point, 9,224. The connection has been terminated.
      at org.apache.derby.client.net.Reply.parseLengthAndMatchCodePoint(Reply.java:1075)
      at org.apache.derby.client.net.NetConnectionReply.parseSQLCARD(NetConnectionReply.java:2572)
      at org.apache.derby.client.net.NetConnectionReply.parseRDBRLLBCKreply(NetConnectionReply.java:219)
      at org.apache.derby.client.net.NetConnectionReply.readLocalRollback(NetConnectionReply.java:141)
      at org.apache.derby.client.net.ConnectionReply.readLocalRollback(ConnectionReply.java:48)
      at org.apache.derby.client.net.NetConnection.readLocalRollback_(NetConnection.java:1515)
      at org.apache.derby.client.am.Connection.readRollback(Connection.java:707)
      at org.apache.derby.client.am.Connection.flowRollback(Connection.java:690)
      at org.apache.derby.client.am.Connection.rollback(Connection.java:655)
      ... 29 more

      1. Derby5158Repro.java
        3 kB
        Dag H. Wanvik
      2. DERBY-5158b.stat
        0.2 kB
        Dag H. Wanvik
      3. DERBY-5158b.diff
        7 kB
        Dag H. Wanvik
      4. DERBY-5158a.stat
        0.2 kB
        Dag H. Wanvik
      5. DERBY-5158a.diff
        6 kB
        Dag H. Wanvik

        Issue Links

          Activity

          Dag H. Wanvik created issue -
          Dag H. Wanvik made changes -
          Field Original Value New Value
          Attachment Derby5158Repro.java [ 12474788 ]
          Dag H. Wanvik made changes -
          Attachment DERBY-5158a.diff [ 12475381 ]
          Attachment DERBY-5158a.stat [ 12475382 ]
          Dag H. Wanvik made changes -
          Assignee Dag H. Wanvik [ dagw ]
          Dag H. Wanvik made changes -
          Bug behavior facts [Embedded/Client difference]
          Issue & fix info [Patch Available]
          Dag H. Wanvik made changes -
          Issue & fix info [Patch Available] [Patch Available, Repro attached]
          Dag H. Wanvik made changes -
          Link This issue relates to DERBY-2477 [ DERBY-2477 ]
          Dag H. Wanvik made changes -
          Attachment DERBY-5158b.diff [ 12475543 ]
          Attachment DERBY-5158b.stat [ 12475544 ]
          Dag H. Wanvik made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Issue & fix info [Repro attached, Patch Available] [Repro attached]
          Resolution Fixed [ 1 ]
          Kathey Marsden made changes -
          Fix Version/s 10.9.0.0 [ 12316344 ]
          Myrna van Lunteren made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Myrna van Lunteren made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Fix Version/s 10.8.1.6 [ 12316676 ]
          Resolution Fixed [ 1 ]
          Myrna van Lunteren made changes -
          Fix Version/s 10.8.2.0 [ 12317955 ]
          Fix Version/s 10.8.1.6 [ 12316676 ]
          Myrna van Lunteren made changes -
          Fix Version/s 10.8.2.2 [ 12317968 ]
          Fix Version/s 10.8.2.0 [ 12317955 ]
          Gavin made changes -
          Workflow jira [ 12608866 ] Default workflow, editable Closed status [ 12801211 ]

            People

            • Assignee:
              Dag H. Wanvik
              Reporter:
              Dag H. Wanvik
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development