Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 91918 invoked from network); 12 Feb 2008 11:56:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2008 11:56:25 -0000 Received: (qmail 9245 invoked by uid 500); 12 Feb 2008 11:56:16 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 9221 invoked by uid 500); 12 Feb 2008 11:56:16 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 9210 invoked by uid 99); 12 Feb 2008 11:56:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2008 03:56:16 -0800 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.18.6.21] (HELO gmp-eb-mail-1.sun.com) (192.18.6.21) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2008 11:55:44 +0000 Received: from fe-emea-10.sun.com (gmp-eb-lb-2-fe2.eu.sun.com [192.18.6.11]) by gmp-eb-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m1CBtn8g001524 for ; Tue, 12 Feb 2008 11:55:49 GMT Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JW400301JFSO800@fe-emea-10.sun.com> (original mail from Dyre.Tjeldvoll@Sun.COM) for derby-user@db.apache.org; Tue, 12 Feb 2008 11:55:49 +0000 (GMT) Received: from khepri32.sun.com ([129.159.112.244]) by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JW400GI5JSVA410@fe-emea-10.sun.com> for derby-user@db.apache.org; Tue, 12 Feb 2008 11:55:43 +0000 (GMT) Date: Tue, 12 Feb 2008 12:55:43 +0100 From: Dyre.Tjeldvoll@Sun.COM Subject: Re: NullPointerException in Derby driver (from at least 10.2.2.0) In-reply-to: <5268113955D1B54ABB357F639594DAB205E44D@bcdc.boxicom.lan> Sender: Dyre.Tjeldvoll@Sun.COM To: Derby Discussion Message-id: MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT References: <5268113955D1B54ABB357F639594DAB205E43A@bcdc.boxicom.lan> <200802061516.45234.daniel@nuix.com> <5268113955D1B54ABB357F639594DAB205E44D@bcdc.boxicom.lan> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (usg-unix-v) X-Virus-Checked: Checked by ClamAV on apache.org Eric Floehr writes: > Daniel, > > Yes, we see that as well, but not always. Following is the stack trace of that. Did you ever find the solution to the problem? Thanks so much! > > SQL Error code: 40000 > SQL State: 08003 > java.sql.SQLNonTransientConnectionException: No current connection. > at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source) > at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) > at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) > at org.apache.derby.impl.jdbc.Util.noCurrentConnection(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedConnection.checkIfClosed(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedConnection.setupContextStack(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedConnection.rollback(Unknown Source) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at com.ibatis.common.jdbc.SimpleDataSource$SimplePooledConnection.invoke(SimpleDataSource.java:958) > at $Proxy5.rollback(Unknown Source) > at com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransaction.rollback(JdbcTransaction.java:72) > at com.ibatis.sqlmap.engine.transaction.TransactionManager.end(TransactionManager.java:87) > at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.endTransaction(SqlMapExecutorDelegate.java:724) > at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.endTransaction(SqlMapSessionImpl.java:176) > at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.endTransaction(SqlMapClientImpl.java:153) > at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.autoEndTransaction(SqlMapExecutorDelegate.java:825) > at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.insert(SqlMapExecutorDelegate.java:400) > at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.insert(SqlMapSessionImpl.java:82) > at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.insert(SqlMapClientImpl.java:58) > at com. > at com. > at com. > at java.lang.Thread.run(Unknown Source) > Caused by: java.sql.SQLException: No current connection. > at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) > at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source) > ... 26 more > Seems like a bug to me. Unless someone can point to an existing Jira for this I think it would be good to create one. -- dt