jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller" <thomas.tom.muel...@gmail.com>
Subject Re: [jira] Commented: (JCR-1039) Bundle Persistence Manager error - failing to read bundle the first time
Date Wed, 01 Aug 2007 06:51:16 GMT

As Stefan already wrote, the exception "40XD0: Container has been
closed" is related to Derby. However, the stack trace you posted does
not include Derby... Could you please check if there is some more
stack trace (the root cause) and post that as well?

> So is there any fix that I can use for now?

I think it will take a day or two until a 'real' patch is available.
In my view it is important to have a reproducible test case as well. I
suggest to try out the following (unfortunately, I can't test it at
the moment):

+import java.io.BufferedInputStream;
     protected synchronized NodePropBundle loadBundle(NodeId id)
             Blob b = rs.getBlob(1);
-            TrackingInputStream cin = new
+            int size = (int) b.length();
+            InputStream in = new
BufferedInputStream(b.getBinaryStream(), size);
+            TrackingInputStream cin = new TrackingInputStream(in);
             din = new DataInputStream(cin);


View raw message