Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 41968 invoked from network); 11 Jul 2006 16:55:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Jul 2006 16:55:37 -0000 Received: (qmail 5478 invoked by uid 500); 11 Jul 2006 16:55:31 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 5453 invoked by uid 500); 11 Jul 2006 16:55:31 -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 5442 invoked by uid 99); 11 Jul 2006 16:55:31 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 09:55:31 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 09:55:30 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 37B167141F5 for ; Tue, 11 Jul 2006 16:53:32 +0000 (GMT) Message-ID: <669456.1152636812224.JavaMail.jira@brutus> Date: Tue, 11 Jul 2006 16:53:32 +0000 (GMT+00:00) From: "Rick Hillegas (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-409) ClientDataSource setConnectionAttributes("create=true") fails with "An attempt was made to access a database, mydbcreate=true, which was not found." In-Reply-To: <976563501.1120080358805.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-409?page=all ] Rick Hillegas updated DERBY-409: -------------------------------- Component: JDBC Assigning to JDBC component. > ClientDataSource setConnectionAttributes("create=true") fails with "An attempt was made to access a database, mydbcreate=true, which was not found." > ------------------------------------------------------------------------------------------------------------------------------------------------------ > > Key: DERBY-409 > URL: http://issues.apache.org/jira/browse/DERBY-409 > Project: Derby > Type: Bug > Components: JDBC > Versions: 10.1.1.0, 10.2.0.0 > Reporter: Kathey Marsden > Assignee: Philip Wilder > Fix For: 10.2.0.0, 10.1.2.0, 10.1.1.1 > Attachments: ConnectionAttributes.java, Derby409.patch > > ClientDataSource setConnectionAttributes("create=true") fails with "An attempt was made to access a database, mydbcreate=true, which was not found." The method does not seem to insert a semicolon before the attributes. > run attached repro to produce the error below > $java ConnectionAttributes > embedded setConnectionAttributes > client setConnectionAttributes > org.apache.derby.client.am.DisconnectException: The application server rejected establishment of the connection. An attempt was made to access a database, mydbcreate=true, which was not found. > at org.apache.derby.client.net.NetConnectionReply.parseRDBNFNRM(NetConnectionReply.java) > at org.apache.derby.client.net.NetConnectionReply.parseAccessRdbError(NetConnectionReply.java) > at org.apache.derby.client.net.NetConnectionReply.parseACCRDBreply(NetConnectionReply.java) > at org.apache.derby.client.net.NetConnectionReply.readAccessDatabase(NetConnectionReply.java) > at org.apache.derby.client.net.NetConnection.readSecurityCheckAndAccessRdb(NetConnection.java) > at org.apache.derby.client.net.NetConnection.flowSecurityCheckAndAccessRdb(NetConnection.java) > at org.apache.derby.client.net.NetConnection.flowUSRIDPWDconnect(NetConnection.java) > at org.apache.derby.client.net.NetConnection.flowConnect(NetConnection.java) > at org.apache.derby.client.net.NetConnection.initialize(NetConnection.java) > at org.apache.derby.client.net.NetConnection.(NetConnection.java) > at org.apache.derby.jdbc.ClientDataSource.getConnection(ClientDataSource.java) > at org.apache.derby.jdbc.ClientDataSource.getConnection(ClientDataSource.java) > at ConnectionAttributes.main(ConnectionAttributes.java:28) > $ -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira