Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 12366 invoked from network); 17 Nov 2005 20:52:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Nov 2005 20:52:26 -0000 Received: (qmail 34762 invoked by uid 500); 17 Nov 2005 20:52:05 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 34709 invoked by uid 500); 17 Nov 2005 20:52:04 -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 34689 invoked by uid 99); 17 Nov 2005 20:52:04 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Nov 2005 12:52:02 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 8010E21C for ; Thu, 17 Nov 2005 21:51:41 +0100 (CET) Message-ID: <887993770.1132260701522.JavaMail.jira@ajax.apache.org> Date: Thu, 17 Nov 2005 21:51:41 +0100 (CET) From: "Daniel John Debrunner (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-714) NullPointerException or ClassCastException if UPDATE or DELETE is performed on a diagnostic VTI Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N NullPointerException or ClassCastException if UPDATE or DELETE is performed on a diagnostic VTI ----------------------------------------------------------------------------------------------- Key: DERBY-714 URL: http://issues.apache.org/jira/browse/DERBY-714 Project: Derby Type: Bug Components: SQL Versions: 10.1.1.0, 10.0.2.0 Reporter: Daniel John Debrunner Assigned to: Daniel John Debrunner Priority: Trivial Fix For: 10.2.0.0 UPDATE and DELETE statements on read-only vtis will hit NullPointerException in insane mode, and ClassCastException in sane mode. ij> delete from new org.apache.derby.diag.TransactionTable(); ERROR XJ001: Java exception: ': java.lang.NullPointerException'. While these statements make no sense, a more graceful error should be returned, especially as in insane mode this causes the engine to shutdown. Code already exists to detect this situation but is not being called. Found through adding negative tests for DERBY-571 -- 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