Issue Details (XML | Word | Printable)

Key: DERBY-3650
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Golgoth 14
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Derby

internal multiple references from different rows to a single BLOB/CLOB stream leads to various errors when second reference used.

Created: 29/Apr/08 07:35 AM   Updated: 07/Jul/09 03:43 PM
Return to search
Component/s: Network Client, SQL, Store
Affects Version/s: 10.3.3.0, 10.4.1.3
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works derby-3650-preliminary_2_diff.txt 2008-07-03 05:33 AM Mike Matrigali 44 kB
Text File Licensed for inclusion in ASF works derby-3650-preliminary_diff.txt 2008-07-02 04:14 AM Mike Matrigali 35 kB
Text File Licensed for inclusion in ASF works derby-3650_tests_diff.txt 2008-05-16 12:12 AM Kathey Marsden 8 kB
Java Source File Licensed for inclusion in ASF works Derby3650EmbeddedRepro.java 2008-04-30 07:18 PM Kathey Marsden 1 kB
Java Source File Licensed for inclusion in ASF works Derby3650FullClientRepro.java 2008-05-14 04:21 PM Kathey Marsden 2 kB
Java Source File Licensed for inclusion in ASF works Derby3650FullRepro.java 2008-05-01 05:08 PM Kathey Marsden 2 kB
Java Source File Licensed for inclusion in ASF works Derby3650Repro.java 2008-04-30 06:25 PM Kristian Waagan 1 kB
Zip Archive Licensed for inclusion in ASF works DerbyHibernateTest.zip 2008-04-29 03:09 PM Golgoth 14 89 kB
Zip Archive Licensed for inclusion in ASF works testdb.zip 2008-04-30 06:25 PM Kristian Waagan 124 kB
Text File traces_on_FormatIdStream_alloc.txt 2008-05-02 08:27 PM Kathey Marsden 4 kB
Java Source File Licensed for inclusion in ASF works UnionAll.java 2008-05-01 07:49 PM Kathey Marsden 2 kB
Environment:
Mac OSX 10.4
JDK 1.5.0_13
Hibernate EntityManager 3.2.1
Issue Links:
Reference
 

Urgency: Normal
Issue & fix info: Repro attached, Known fix
Bug behavior facts: Regression


 Description  « Hide
Derby + Hibernate JPA 3.2.1 problem on entity with Blob/Clob

Hi,

I'm using Derby in Client - Server mode with Hibernate JPA EJB 3.0.
When a query on an entity containing a Clob and some joins on other entites is executed, an exception with the following message is thrown:
  XJ073: The data in this BLOB or CLOB is no longer available. The BLOB/CLOB's transaction may be committed, or its connection is closed.

This problem occurs when the property "hibernate.max_fetch_depth" is greater than 0.
When hibernate.max_fetch_depth=0, the query works.

If Derby is configured in embedded mode, the query works independently of the value of hibernate.max_fetch_depth.

On the Hibernate's documentation, the advised value of hibernate.max_fetch_depth is 3.
Could you explain me if I made something wrong ?

Thank you.
Stephane

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.