Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 62841 invoked from network); 24 Dec 2008 05:01:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Dec 2008 05:01:16 -0000 Received: (qmail 97194 invoked by uid 500); 24 Dec 2008 05:01:15 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 97176 invoked by uid 500); 24 Dec 2008 05:01:15 -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 97167 invoked by uid 99); 24 Dec 2008 05:01:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Dec 2008 21:01:15 -0800 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, 24 Dec 2008 05:01:07 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 67C92234C464 for ; Tue, 23 Dec 2008 21:00:46 -0800 (PST) Message-ID: <1428001544.1230094846423.JavaMail.jira@brutus> Date: Tue, 23 Dec 2008 21:00:46 -0800 (PST) From: "Sabari S Kumar (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-2532) Client does not return SQLException on XAConnection.getXAResource() on a closed connection, Embedded does In-Reply-To: <6027124.1176098072227.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-2532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sabari S Kumar updated DERBY-2532: ---------------------------------- Attachment: ClientXAConnection.diff Please test this patch.It seems to resolve the issue.The change has to be made on ClientXAConnection.java I have also uploaded a java file to test the issue > Client does not return SQLException on XAConnection.getXAResource() on a closed connection, Embedded does > --------------------------------------------------------------------------------------------------------- > > Key: DERBY-2532 > URL: https://issues.apache.org/jira/browse/DERBY-2532 > Project: Derby > Issue Type: Bug > Components: Network Client > Affects Versions: 10.3.1.4 > Reporter: Myrna van Lunteren > Assignee: Sabari S Kumar > Attachments: ClientXAConnection.diff, Simple.java > > > In the following scenario from converted test DataSourceTest: > (non-tested code based on the test code) > ---------------- > ClientXADataSource dsx = new ClientXADataSource(); > dsx.setDatabaseName("tstdb"); > XAConnection xac = dsx.getXAConnection(); > XAConnection xac2 = dsx.getXAConnection(); > XAResource xar2 = xac2.getXAResource(); > xac2.close(); > // allow close on already closed XAConnection > xac2.close(); > try { > xac2.getXAResource(); > // Network Server does not think this is worth an exception. > } catch (SQLException sqle) { > System.out.println("expect a 08003 as with Embedded"); > } > ------------------ > With DerbyNetClient, the xac2.getXAResource() does not return an SQLException. > This ought to be documented if expected, or fixed. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.