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 EFCC610832 for ; Tue, 4 Mar 2014 09:08:25 +0000 (UTC) Received: (qmail 90665 invoked by uid 500); 4 Mar 2014 09:08:25 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 90341 invoked by uid 500); 4 Mar 2014 09:08:23 -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 90032 invoked by uid 99); 4 Mar 2014 09:08:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Mar 2014 09:08:21 +0000 Date: Tue, 4 Mar 2014 09:08:20 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DERBY-6493) Improve reporting of exceptions wrapped in InvocationTargetException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Knut Anders Hatlen created DERBY-6493: ----------------------------------------- Summary: Improve reporting of exceptions wrapped in InvocationTargetException Key: DERBY-6493 URL: https://issues.apache.org/jira/browse/DERBY-6493 Project: Derby Issue Type: Improvement Components: JDBC Affects Versions: 10.11.0.0 Reporter: Knut Anders Hatlen Assignee: Knut Anders Hatlen When Derby encounters an exception in a method that's called via reflection, the actual problem may be well hidden at the end of a long exception chain. For example: ij> create table t(x int); 0 rows inserted/updated/deleted ij> call syscs_util.syscs_import_table(null, 'T', null, null, null, null, 0); ERROR 38000: The exception 'java.sql.SQLException: The exception 'java.lang.reflect.InvocationTargetException' was thrown while evaluating an expression.' was thrown while evaluating an expression. ERROR 38000: The exception 'java.lang.reflect.InvocationTargetException' was thrown while evaluating an expression. ERROR XJ001: Java exception: ': java.lang.reflect.InvocationTargetException'. ERROR XIE05: Data file cannot be null. Only the last exception provides any useful information to the user in this case. I think it would be good to remove the InvocationTargetException from the chain so that it's easier to spot the actual problem. -- This message was sent by Atlassian JIRA (v6.2#6252)