Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 25004 invoked from network); 29 Mar 2011 22:35:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Mar 2011 22:35:46 -0000 Received: (qmail 67782 invoked by uid 500); 29 Mar 2011 22:35:46 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 67747 invoked by uid 500); 29 Mar 2011 22:35:46 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 67700 invoked by uid 99); 29 Mar 2011 22:35:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Mar 2011 22:35:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Mar 2011 22:35:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B18C78604E for ; Tue, 29 Mar 2011 22:35:05 +0000 (UTC) Date: Tue, 29 Mar 2011 22:35:05 +0000 (UTC) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Message-ID: <209723387.20075.1301438105723.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2091828629.16976.1301330585914.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DERBY-5158) Incomprehensible error message on client if attempting rollback after database has been shut down. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-5158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13012751#comment-13012751 ] Dag H. Wanvik commented on DERBY-5158: -------------------------------------- By adding setAUtoCommit(false) in Derby5158Repro#setUp, we see the issue also for commit. > Incomprehensible error message on client if attempting rollback after database has been shut down. > -------------------------------------------------------------------------------------------------- > > Key: DERBY-5158 > URL: https://issues.apache.org/jira/browse/DERBY-5158 > Project: Derby > Issue Type: Bug > Reporter: Dag H. Wanvik > Priority: Minor > Attachments: Derby5158Repro.java > > > 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 -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira