Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 95565 invoked from network); 17 Sep 2009 15:34:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Sep 2009 15:34:54 -0000 Received: (qmail 18629 invoked by uid 500); 17 Sep 2009 15:34:53 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 18602 invoked by uid 500); 17 Sep 2009 15:34:53 -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 18594 invoked by uid 99); 17 Sep 2009 15:34:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Sep 2009 15:34:53 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jward.dww@gmail.com designates 209.85.221.189 as permitted sender) Received: from [209.85.221.189] (HELO mail-qy0-f189.google.com) (209.85.221.189) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Sep 2009 15:34:42 +0000 Received: by qyk27 with SMTP id 27so186702qyk.13 for ; Thu, 17 Sep 2009 08:34:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=Hy8NDCPrKSzTjsWto3cuBaSLju8t1egTztqsyoqpnvo=; b=H3Hhlci1+agRIneojKxtGDSLzfFhYdHhhDkCG8GucNp/QFh2qIC8QgOYZhjhkSS2Vh 1M1PsPoAa6FOjrHVYH5cMlC/sdhjC4H3nsJgW2p49WqGpzgK2g536/S1vcm8mNCCDwDn ZYjrq6IMAY8Wb1r/FNWMegH7XDxXP2CEG978s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=NcFf/P0LnirHAbBXWENtoOeG10s4FoMdTE5NbMNO95Yg0gzvS/bwrXL+yJXvnMpj9R qDvAvcpiat1qb7b9OUC3YBPUjGm0ywrCjqq3Ye5NVgg66N2irY/0xaw6YmjUomcJB2PO 0rhwF2TP4SDsgykAtZ88Y2t7ppubAy86reihI= Received: by 10.224.44.77 with SMTP id z13mr393135qae.195.1253201660989; Thu, 17 Sep 2009 08:34:20 -0700 (PDT) Received: from ?10.0.1.100? (cmx.mainframes.com [66.173.66.194]) by mx.google.com with ESMTPS id 5sm174391qwg.56.2009.09.17.08.34.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 17 Sep 2009 08:34:19 -0700 (PDT) Message-ID: <4AB256F9.9020202@gmail.com> Date: Thu, 17 Sep 2009 10:34:17 -0500 From: Jason Ward Reply-To: jward.dww@gmail.com User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Derby Discussion Subject: Re: StackOverflowError for large Scrollable result sets References: <4AB0F077.2010608@gmail.com> <4AB12ECC.9020309@amberpoint.com> In-Reply-To: <4AB12ECC.9020309@amberpoint.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Thanks Bryan, I should have included the info from the derby.log. Here's a small snippet of the ~1K lines from the log: 2009-09-17 14:58:48.873 GMT Thread[DRDAConnThread_19,5,derby.daemons] (XID = 5212534), (SESSIONID = 21), (DATABASE = C:/temp/testDB), (DRDAID = NF000001.H0EE-4195946224626394775{15}), Cleanup action starting 2009-09-17 14:58:48.873 GMT Thread[DRDAConnThread_19,5,derby.daemons] (XID = 5212534), (SESSIONID = 21), (DATABASE = C:/temp/testDB), (DRDAID = NF000001.H0EE-4195946224626394775{15}), Failed Statement is: :end parameter java.lang.StackOverflowError at java.io.BufferedInputStream.read(BufferedInputStream.java:317) at java.io.FilterInputStream.read(FilterInputStream.java:116) at org.apache.derby.iapi.services.io.LimitInputStream.read(Unknown Source) at java.io.FilterInputStream.read(FilterInputStream.java:116) at java.io.PushbackInputStream.read(PushbackInputStream.java:169) at java.io.FilterInputStream.read(FilterInputStream.java:116) at java.io.PushbackInputStream.read(PushbackInputStream.java:169) at java.io.FilterInputStream.read(FilterInputStream.java:116) at java.io.PushbackInputStream.read(PushbackInputStream.java:169) at java.io.FilterInputStream.read(FilterInputStream.java:116) at java.io.PushbackInputStream.read(PushbackInputStream.java:169) at java.io.FilterInputStream.read(FilterInputStream.java:116) at java.io.PushbackInputStream.read(PushbackInputStream.java:169) at java.io.FilterInputStream.read(FilterInputStream.java:116) at java.io.PushbackInputStream.read(PushbackInputStream.java:169) at java.io.FilterInputStream.read(FilterInputStream.java:116) ... at java.io.PushbackInputStream.read(PushbackInputStream.java:169) at java.io.FilterInputStream.read(FilterInputStream.java:116) Cleanup action completed Additionally.. unchaining the exception is a little more complicated with Hibernate in the way, but I've gone about doing so... seems it's the end of the chain tho. (Interrogating the exception with debugger confirms that there's no next exception, but I'm not sure if that's only because someone's swallowing it along the line.) Thanks, JW ----- SQLException ----- SQLState: XJ001 Error Code: -1 Message: DERBY SQL error: SQLCODE: -1, SQLSTATE: XJ001, SQLERRMC: java.lang.StackOverflowErrorXJ001.U Any thoughts on where I should focus my attention? I can't be the only one using Derby and scrolling on large result-sets can I? Bryan Pendleton wrote: >> Caused by: org.apache.derby.client.am.SqlException: DERBY SQL error: >> SQLCODE: -1, SQLSTATE: XJ001, SQLERRMC: >> java.lang.StackOverflowErrorXJ001.U >> at org.apache.derby.client.am.ResultSet.completeSqlca(Unknown Source) > > Is there a more detailed exception trace in your derby.log file? > > I'd expect to see a stack trace with hundreds, perhaps thousands, of > stack frames in it, which is what I usually see in the cases where I've > had stack overflow errors. Usually such a stack trace makes it pretty > easy to see where there is code that is re-entering itself (possibly > indirectly), and causing the stack overflow. > > If you can't find a more detailed exception trace in the derby.log > file, here's another thing you can try to do to get more information: > http://wiki.apache.org/db-derby/UnwindExceptionChain > > thanks, > > bryan > >