From commits-return-7059-apmail-jackrabbit-commits-archive=jackrabbit.apache.org@jackrabbit.apache.org Tue Feb 17 13:35:55 2009 Return-Path: Delivered-To: apmail-jackrabbit-commits-archive@www.apache.org Received: (qmail 50761 invoked from network); 17 Feb 2009 13:35:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Feb 2009 13:35:55 -0000 Received: (qmail 7926 invoked by uid 500); 17 Feb 2009 13:35:54 -0000 Delivered-To: apmail-jackrabbit-commits-archive@jackrabbit.apache.org Received: (qmail 7897 invoked by uid 500); 17 Feb 2009 13:35:54 -0000 Mailing-List: contact commits-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list commits@jackrabbit.apache.org Received: (qmail 7888 invoked by uid 99); 17 Feb 2009 13:35:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2009 05:35:54 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2009 13:35:54 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4BB8C2388B5E; Tue, 17 Feb 2009 13:35:33 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r745051 - in /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value: BLOBInResource.java BLOBValue.java Date: Tue, 17 Feb 2009 13:35:32 -0000 To: commits@jackrabbit.apache.org From: thomasm@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090217133533.4BB8C2388B5E@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: thomasm Date: Tue Feb 17 13:35:32 2009 New Revision: 745051 URL: http://svn.apache.org/viewvc?rev=745051&view=rev Log: JCR-1982 Exception root cause is swallowed when creating a BLOB object Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/BLOBInResource.java jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/BLOBValue.java Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/BLOBInResource.java URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/BLOBInResource.java?rev=745051&r1=745050&r2=745051&view=diff ============================================================================== --- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/BLOBInResource.java (original) +++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/BLOBInResource.java Tue Feb 17 13:35:32 2009 @@ -65,8 +65,10 @@ } length = fsResource.length(); } catch (FileSystemException fse) { - throw new IOException(fsResource.getPath() + IOException e2 = new IOException(fsResource.getPath() + ": Error while creating value: " + fse.toString()); + e2.initCause(fse); + throw e2; } this.fsResource = fsResource; } Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/BLOBValue.java URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/BLOBValue.java?rev=745051&r1=745050&r2=745051&view=diff ============================================================================== --- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/BLOBValue.java (original) +++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/BLOBValue.java Tue Feb 17 13:35:32 2009 @@ -191,8 +191,10 @@ + ": the specified resource does not exist"); } } catch (FileSystemException fse) { - throw new IOException(fsResource.getPath() + IOException e2 = new IOException(fsResource.getPath() + ": Error while creating value: " + fse.toString()); + e2.initCause(fse); + throw e2; } // this instance is backed by a resource in the virtual file system this.fsResource = fsResource;