Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 51842 invoked from network); 3 Apr 2005 20:20:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Apr 2005 20:20:54 -0000 Received: (qmail 80584 invoked by uid 500); 3 Apr 2005 20:20:47 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 80566 invoked by uid 500); 3 Apr 2005 20:20:47 -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 80553 invoked by uid 99); 3 Apr 2005 20:20:47 -0000 X-ASF-Spam-Status: No, hits=1.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from e35.co.us.ibm.com (HELO e35.co.us.ibm.com) (32.97.110.133) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 03 Apr 2005 13:20:45 -0700 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e35.co.us.ibm.com (8.12.10/8.12.9) with ESMTP id j33KKhLg330122 for ; Sun, 3 Apr 2005 16:20:43 -0400 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay04.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j33KKhT3182126 for ; Sun, 3 Apr 2005 14:20:43 -0600 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j33KKgBs025966 for ; Sun, 3 Apr 2005 14:20:42 -0600 Received: from [192.168.1.101] (sig-9-48-121-167.mts.ibm.com [9.48.121.167]) by d03av04.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j33KKgLK025961 for ; Sun, 3 Apr 2005 14:20:42 -0600 Message-ID: <42505019.9060201@sbcglobal.net> Date: Sun, 03 Apr 2005 13:20:41 -0700 From: Kathey Marsden User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Derby Discussion Subject: Re: No current connection exception References: In-Reply-To: X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N SBarboza@ILSTechnology.com wrote: >Hi, > I have apache derby 10.0 running on a MontaVista Linux system (3.1 >Professional with Linux/i686 2.4.20) in embedded mode. >The java level is Sun's jre 1.4.2_04. >There are around 500,000 records in a table in the DB. >I have one thread inserting rows into this table at a rate of around 50 >msecs. >Another thread is periodically doing selects on this table and some >deletes. >After running for about 10 hours the thread that is inserting rows catches >a SQLException with the follwing details: > >SQLError is 40000 > SQLState is 08003 > SQL Error Message is 'No current connection' > >No other thread in the VM has issed a shutdown request to derby. > >What conditions could cause the DB to close connections to it ? Has anyone >else seen this error before ? >The error does not occur consistently. > >Thanks in advance. >Sunil. > > > > > > > No clear cut answers except to say it doesn't sound like you should lose your connection in the scenario you describe. Sounds like something went wrong before you lost your connection, so I am not sure how helpful it would be to look at the trace at the time you got the "no Current Connection" error. Here are a few hints for debugging the problem. Check the derby.log and see if you see a trace. Check the connection on the thread doing the select to determine if it is a problem specific to this connection or to the entire derby system. If that is not revealing make a file called derby.properties in derby.system.home (or the directory where java starts if derby.system.home is not set) and put the following lines in it., rerun and look at the derby.log again. derby.stream.error.logSeverityLevel=0 derby.language.logStatementText=true This might generate a lot of output in your scenario, but is usually helpful in debugging something like this since the problem shows up right at the end of the derby.log if the program exits after the failure. Kathey