Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 02458997F for ; Fri, 10 Feb 2012 04:20:28 +0000 (UTC) Received: (qmail 66954 invoked by uid 500); 10 Feb 2012 04:20:27 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 66940 invoked by uid 500); 10 Feb 2012 04:20:25 -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 66914 invoked by uid 99); 10 Feb 2012 04:20:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2012 04:20:24 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2012 04:20:21 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DB1631AEC6B for ; Fri, 10 Feb 2012 04:20:00 +0000 (UTC) Date: Fri, 10 Feb 2012 04:20:00 +0000 (UTC) From: "Dag H. Wanvik (Updated) (JIRA)" To: derby-dev@db.apache.org Message-ID: <798761276.23029.1328847600899.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1398462050.63046.1323639760937.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (DERBY-5530) SQLChar.getCollationKey NPE in index-stat-thread MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-5530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dag H. Wanvik updated DERBY-5530: --------------------------------- Attachment: repro-debug.log > SQLChar.getCollationKey NPE in index-stat-thread > ------------------------------------------------ > > Key: DERBY-5530 > URL: https://issues.apache.org/jira/browse/DERBY-5530 > Project: Derby > Issue Type: Bug > Affects Versions: 10.8.2.2 > Environment: Windows 7 - NetBeans 6.9.1 > Reporter: Jean-Yves LINET > Attachments: repro-debug.log, repro.log, repro.sh, script.sh > > > With this JDBC connection url is : jdbc:derby:directory:db_name;territory=fr_FR;collation=TERRITORY_BASED:PRIMARY;create=true > I get a NullPointerException in index-stat-thread > Sun Dec 11 19:33:11 CET 2011 Thread[pool-3-thread-1,5,main] {istat} "PROXIFLEX"."IDAXX_RES": update scheduled, reason=[no stats, row-estimate=375] (queueSize=1) > Sun Dec 11 19:33:11 CET 2011 Thread[index-stat-thread,5,main] {istat,trace@26130360} worker thread started (xid=12049) [q/p/s=1/0/1,err:k/u/c=0/0/0,rej:f/d/o=0/0/0] > Sun Dec 11 19:33:11 CET 2011 Thread[index-stat-thread,5,main] {istat,trace@26130360} processing "PROXIFLEX"."IDAXX_RES" > Sun Dec 11 19:33:11 CET 2011 Thread[index-stat-thread,5,main] {istat} runtime exception during normal operation > java.lang.NullPointerException > at org.apache.derby.iapi.types.SQLChar.getCollationKey(Unknown Source) > at org.apache.derby.iapi.types.WorkHorseForCollatorDatatypes.stringCompare(Unknown Source) > at org.apache.derby.iapi.types.CollatorSQLVarchar.stringCompare(Unknown Source) > at org.apache.derby.iapi.types.SQLChar.compare(Unknown Source) > at org.apache.derby.impl.services.daemon.IndexStatisticsDaemonImpl$KeyComparator.compareWithPrevKey(Unknown Source) > at org.apache.derby.impl.services.daemon.IndexStatisticsDaemonImpl.updateIndexStatsMinion(Unknown Source) > at org.apache.derby.impl.services.daemon.IndexStatisticsDaemonImpl.generateStatistics(Unknown Source) > at org.apache.derby.impl.services.daemon.IndexStatisticsDaemonImpl.processingLoop(Unknown Source) > at org.apache.derby.impl.services.daemon.IndexStatisticsDaemonImpl.run(Unknown Source) > at java.lang.Thread.run(Thread.java:662) > Sun Dec 11 19:33:11 CET 2011 Thread[index-stat-thread,5,main] {istat,trace@26130360} worker thread exit [q/p/s=0/0/1,err:k/u/c=0/0/0,rej:f/d/o=0/0/0] > If I remove territory and collation parameters I don't have the exception. > In case you want to disable automatic statistics, set derby property : derby.storage.indexStats.auto to false. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira