Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 19390 invoked from network); 24 May 2009 17:06:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 May 2009 17:06:14 -0000 Received: (qmail 27279 invoked by uid 500); 24 May 2009 17:06:26 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 27211 invoked by uid 500); 24 May 2009 17:06:26 -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 27203 invoked by uid 99); 24 May 2009 17:06:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 May 2009 17:06:26 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.18.6.24] (HELO gmp-eb-inf-2.sun.com) (192.18.6.24) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 May 2009 17:06:15 +0000 Received: from fe-emea-09.sun.com (gmp-eb-lb-1-fe3.eu.sun.com [192.18.6.10]) by gmp-eb-inf-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n4OH5fK7001294 for ; Sun, 24 May 2009 17:05:54 GMT MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from conversion-daemon.fe-emea-09.sun.com by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009)) id <0KK500000RBKO300@fe-emea-09.sun.com> for derby-user@db.apache.org; Sun, 24 May 2009 18:05:41 +0100 (BST) Received: from localhost (c596E47C1.dhcp.bluecom.no [193.71.110.89]) by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009)) with ESMTPSA id <0KK5002FERHCUM00@fe-emea-09.sun.com> for derby-user@db.apache.org; Sun, 24 May 2009 18:05:41 +0100 (BST) Date: Sun, 24 May 2009 19:05:36 +0200 From: Knut Anders Hatlen Subject: Re: Showstopper bug in 10.5.1.1? In-reply-to: Sender: Knut.Hatlen@Sun.COM To: Derby Discussion Message-id: References: User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.93 (usg-unix-v) X-Virus-Checked: Checked by ClamAV on apache.org tsvetozar ---- writes: > sorry for the late reply, but I wanted to test it some more. here is the stack > trace I am getting: > > java.sql.SQLException: Java exception: ': java.lang.NullPointerException'. [...] > the query is a simple SELECT * from ... with an order by on an index. there > are 2 clob, 2 blob, 1 long varchar and a few more varchar(with-limit) fields > in table. Thanks, I'm able to reproduce this problem and have filed a bug report: https://issues.apache.org/jira/browse/DERBY-4245 By the way, you mentioned that the ORDER BY was on an index, but the stack trace indicates that the index is not used (the NPE is thrown while sorting the result, but no sorting should be performed if the index is used for ordering). You may want to check that you actually have an index on the ORDER BY column and that the index has the same ordering as specified by the ORDER BY clause. For instance, an ascending index on column X cannot be used to order the result descending by column X. -- Knut Anders