Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 34517 invoked from network); 6 Jul 2009 19:49:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jul 2009 19:49:29 -0000 Received: (qmail 38693 invoked by uid 500); 6 Jul 2009 19:49:39 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 38643 invoked by uid 500); 6 Jul 2009 19:49:39 -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 38635 invoked by uid 99); 6 Jul 2009 19:49:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2009 19:49:39 +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; Mon, 06 Jul 2009 19:49:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CF204234C04C for ; Mon, 6 Jul 2009 12:49:14 -0700 (PDT) Message-ID: <2123549589.1246909754847.JavaMail.jira@brutus> Date: Mon, 6 Jul 2009 12:49:14 -0700 (PDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-3669) ClientXADataSource fetched from JNDI not identical as originally bound; some properties have String "null" instead of null In-Reply-To: <865844397.1210287415881.JavaMail.jira@brutus> 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-3669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen updated DERBY-3669: -------------------------------------- Issue & fix info: [Patch Available] Derbyall and suites.All ran cleanly. > ClientXADataSource fetched from JNDI not identical as originally bound; some properties have String "null" instead of null > -------------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-3669 > URL: https://issues.apache.org/jira/browse/DERBY-3669 > Project: Derby > Issue Type: Bug > Components: Network Client > Affects Versions: 10.6.0.0 > Reporter: Myrna van Lunteren > Assignee: Knut Anders Hatlen > Priority: Minor > Attachments: d3669-1a.diff > > > Running the test XAJNDITest (from old xaJNDI.java) with network server fails because the XADataSource as bound to JNDI, and then fetch from JNDI are not identical. > This is what the test does to get the XADataSource & to bind & get it from JNDI: > ---------------- > ... > XADataSource xads = J2EEDataSource.getXADataSource(); > String dbName = TestConfiguration.getCurrent().getDefaultDatabaseName(); > JDBCDataSource.setBeanProperty(xads, "databaseName", dbName); > JDBCDataSource.setBeanProperty(xads, "createDatabase", "create"); > JDBCDataSource.setBeanProperty(xads, "description", "XA DataSource"); > Hashtable env = new Hashtable(); > env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); > // using a system property - these will have to be passed in somehow. > env.put(Context.PROVIDER_URL, "ldap://" + ldapServer + ":" + ldapPort); > env.put(Context.SECURITY_AUTHENTICATION, "simple"); > ic.rebind("cn=compareDS, o=" + dnString, xads); > javax.sql.XADataSource ads = > (javax.sql.XADataSource)ic.lookup("cn=compareDS, o=" + dnString); > ... > ------------------- > Further checking showed that the fetched datasource has a String with value "null" rather than a null value for the following properties: > dataSourceName, connectionAttributes, traceDirectory, traceFile. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.