Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 11063 invoked from network); 5 Aug 2009 20:39:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Aug 2009 20:39:32 -0000 Received: (qmail 50944 invoked by uid 500); 5 Aug 2009 20:39:40 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 50906 invoked by uid 500); 5 Aug 2009 20:39:40 -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 50898 invoked by uid 99); 5 Aug 2009 20:39:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Aug 2009 20:39:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Aug 2009 20:39:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B23DD29A0022 for ; Wed, 5 Aug 2009 13:39:15 -0700 (PDT) Message-ID: <1190771726.1249504755729.JavaMail.jira@brutus> Date: Wed, 5 Aug 2009 13:39:15 -0700 (PDT) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-1191) Some SQLExceptions, for example those generated from BrokeredStatements, do not print to derby.log even when derby.stream.error.logSeverityLevel=0 In-Reply-To: <516166057.1144421603676.JavaMail.jira@ajax> 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-1191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12739735#action_12739735 ] Kathey Marsden commented on DERBY-1191: --------------------------------------- We certainly could take a different approach on the branches, If we choose option 2 on trunk and do not backport it may indeed interfere with merging unrelated fixes since so many methods will be impacted. > Some SQLExceptions, for example those generated from BrokeredStatements, do not print to derby.log even when derby.stream.error.logSeverityLevel=0 > ----------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-1191 > URL: https://issues.apache.org/jira/browse/DERBY-1191 > Project: Derby > Issue Type: Bug > Components: JDBC > Affects Versions: 10.1.3.1, 10.2.1.6 > Reporter: Kathey Marsden > Attachments: ReproDerby1191.java > > > I found this when working on DERBY-1047. Exceptions thrown using > org.apache.derby.impl.jdbc.Util.generateCsSQLException() > do not print to derby.log even when derby.stream.error.logSeverityLevel=0 > For example the attached repro generates an expected exception but does not print the error to the log. > java -Dderby.stream.error.logSeverityLevel=0 Derby1047 > This causes an expected exception to be thrown but it does not print to the derby.log > 10.2.0.0 alpha > Apache Derby > Apache Derby Embedded JDBC Driver > done creating table > COL1 > ----------- > 1 > 2 > PASS: Expected Exception can'tholdable cusror in global xact:Cannot set holdability ResultSet.HOLD_CURSORS_OVER_COMMIT for a global transaction. > COL1 > ----------- > 1 > 2 > 3 > The code generating the exception is in org.apache.derby.iapi.jdbc.BrokeredStatement > final void checkHoldability() throws SQLException { > int holdability = controlCheck().checkHoldCursors(resultSetHoldability); > if (holdability != resultSetHoldability) > throw Util.generateCsSQLException(SQLState.CANNOT_HOLD_CURSOR_XA); > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.