Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 90663 invoked from network); 16 Aug 2006 14:52:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Aug 2006 14:52:26 -0000 Received: (qmail 94641 invoked by uid 500); 16 Aug 2006 14:52:25 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 94620 invoked by uid 500); 16 Aug 2006 14:52:24 -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 Delivered-To: moderator for derby-dev@db.apache.org Received: (qmail 79090 invoked by uid 99); 16 Aug 2006 11:56:40 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [jira] Commented: (DERBY-1653) Database gets corrupt after throwingNPE while reading Binary Stream data, in chunks Date: Wed, 16 Aug 2006 17:23:42 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [jira] Commented: (DERBY-1653) Database gets corrupt after throwingNPE while reading Binary Stream data, in chunks Thread-Index: Aca70LQYO1yb9zYfReGeYB3DiDlTrAFWYiqw From: "Dipali Sunkersett" To: "Sunitha Kambhampati \(JIRA\)" X-OriginalArrivalTime: 16 Aug 2006 11:53:45.0487 (UTC) FILETIME=[A0A939F0:01C6C12A] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Sunitha, Thanks for you reply.=20 We tried with a new JVM and the DB was still not accessible. Unfortunately, we deleted that DB and hence, do not have log file of derby. We are using jvm ver 1.5.0_05 Currently, we are busy with a major release and hence, wouldn't find time and/or a spare machine to reproduce the problem. Will try that next week and update Derby Bug DB, with more findings. Thank you again, for responding back. Regards, Dipali Sunkersett Symphony Services dipali.sunkersett@symphonysv.com -----Original Message----- From: Sunitha Kambhampati (JIRA) [mailto:derby-dev@db.apache.org]=20 Sent: Wednesday, August 09, 2006 9:57 PM To: Dipali Sunkersett Subject: [jira] Commented: (DERBY-1653) Database gets corrupt after throwingNPE while reading Binary Stream data, in chunks [ http://issues.apache.org/jira/browse/DERBY-1653?page=3Dcomments#action_12= 4 26962 ]=20 =20 Sunitha Kambhampati commented on DERBY-1653: -------------------------------------------- It would be helpful if you can provide more information -- can you attach the derby.log from when the error happened -- have you tried to stop all processes and then start up again and try to access the database. -- will it be possible to attach the corrupt database to the JIRA? -- which jvm are you using.=20 Thanks. > Database gets corrupt after throwing NPE while reading Binary Stream data, in chunks > ------------------------------------------------------------------------ ------------ > > Key: DERBY-1653 > URL: http://issues.apache.org/jira/browse/DERBY-1653 > Project: Derby > Issue Type: Bug > Affects Versions: 10.1.3.1 > Environment: Linux (Debian) Kernel 2.6.16 > Reporter: Dipali Sunkersett > Priority: Critical > > One of the component of our project pushes large text (as a binary stream) into Derby DB. The other component retrieves these texts in chunks and process one text at a time to perform some manipulation. After fetching and processing roughly 30K texts, we get an NPE and the whole DB gets corrupt after that. We can not connect to that DB again. We use the "org.apache.derby.jdbc.EmbeddedDriver" for connecton. The stack trace is as below: > java.lang.NullPointerException > at org.apache.derby.impl.store.raw.data.BasePage.releaseExclusive(Unknown Source) > at org.apache.derby.impl.store.raw.data.CachedPage.releaseExclusive(Unknown Source) > at org.apache.derby.impl.store.raw.data.StoredPage.releaseExclusive(Unknown Source) > at org.apache.derby.impl.store.raw.data.BasePage.unlatch(Unknown Source) > at org.apache.derby.impl.store.raw.data.OverflowInputStream.fillByteHolder( Unknown Source) > at org.apache.derby.impl.store.raw.data.BufferedByteHolderInputStream.avail able(Unknown Source) > at java.io.FilterInputStream.available(FilterInputStream.java:146) > at java.io.FilterInputStream.available(FilterInputStream.java:146) > at sun.nio.cs.StreamDecoder$CharsetSD.inReady(StreamDecoder.java:490) > at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:451) > at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183) > at java.io.InputStreamReader.read(InputStreamReader.java:167) > at java.io.BufferedReader.fill(BufferedReader.java:136) > at java.io.BufferedReader.readLine(BufferedReader.java:299) > at java.io.BufferedReader.readLine(BufferedReader.java:362) > at com.irm.dag.occcalc.command.CorpusWordPhraseOccCalc.calculateOccurrences (CorpusWordPhraseOccCalc.java:128) > at com.irm.dag.occcalc.command.CorpusOccCalc.calculate(CorpusOccCalc.java:4 4) > at com.irm.dag.occcalc.test.WrapperForOccurrenceCalculator.main(WrapperForO ccurrenceCalculator.java:56) --=20 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 =20