Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 86997 invoked from network); 2 Feb 2011 23:30:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Feb 2011 23:30:52 -0000 Received: (qmail 69386 invoked by uid 500); 2 Feb 2011 23:30:52 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 69315 invoked by uid 500); 2 Feb 2011 23:30:51 -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 69308 invoked by uid 99); 2 Feb 2011 23:30:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Feb 2011 23:30:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Feb 2011 23:30:49 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0BCD418A9B1 for ; Wed, 2 Feb 2011 23:30:29 +0000 (UTC) Date: Wed, 2 Feb 2011 23:30:29 +0000 (UTC) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Message-ID: <758828026.6274.1296689429045.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Reopened: (DERBY-3650) internal multiple references from different rows to a single BLOB/CLOB stream leads to various errors when second reference used. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kathey Marsden reopened DERBY-3650: ----------------------------------- Reopen for backport. > internal multiple references from different rows to a single BLOB/CLOB stream leads to various errors when second reference used. > --------------------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-3650 > URL: https://issues.apache.org/jira/browse/DERBY-3650 > Project: Derby > Issue Type: Bug > Components: Network Client, SQL, Store > Affects Versions: 10.3.3.0, 10.4.1.3, 10.5.3.0, 10.6.1.0 > Environment: Mac OSX 10.4 > JDK 1.5.0_13 > Hibernate EntityManager 3.2.1 > Reporter: Golgoth 14 > Assignee: Kristian Waagan > Fix For: 10.6.1.0 > > Attachments: Derby3650EmbeddedRepro.java, Derby3650FullClientRepro.java, Derby3650FullRepro.java, Derby3650Repro.java, DerbyHibernateTest.zip, UnionAll.java, cloning-methods.html, derby-3650-preliminary_2_diff.txt, derby-3650-preliminary_2_reworked-1b.diff, derby-3650-preliminary_2_reworked.diff, derby-3650-preliminary_diff.txt, derby-3650_tests_diff.txt, testdb.zip, traces_on_FormatIdStream_alloc.txt > > > 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 -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira