jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
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 GMT
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;



Mime
View raw message