Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 51214 invoked from network); 26 Jan 2010 13:42:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Jan 2010 13:42:58 -0000 Received: (qmail 51472 invoked by uid 500); 26 Jan 2010 13:42:58 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 51426 invoked by uid 500); 26 Jan 2010 13:42:57 -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 51319 invoked by uid 99); 26 Jan 2010 13:42:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jan 2010 13:42:57 +0000 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jan 2010 13:42:55 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8C594234C1E9 for ; Tue, 26 Jan 2010 05:42:34 -0800 (PST) Message-ID: <909108794.38091264513354559.JavaMail.jira@brutus.apache.org> Date: Tue, 26 Jan 2010 13:42:34 +0000 (UTC) From: "Kristian Waagan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Resolved: (DERBY-4102) Assert failure or ClassCastException in EmbedBlob when retrieving BLOB >= 32K In-Reply-To: <463572517.1237463630962.JavaMail.jira@brutus> 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-4102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kristian Waagan resolved DERBY-4102. ------------------------------------ Resolution: Fixed Fix Version/s: 10.5.3.1 10.4.2.1 The regression tests ran cleanly on both the 10.5 and 10.4 branch. Merged fix into the 10.5 and 10.4 branches with revisions 903222 and 903223. This should complete the work on this issue. > Assert failure or ClassCastException in EmbedBlob when retrieving BLOB >= 32K > ----------------------------------------------------------------------------- > > Key: DERBY-4102 > URL: https://issues.apache.org/jira/browse/DERBY-4102 > Project: Derby > Issue Type: Bug > Components: JDBC > Affects Versions: 10.1.1.0, 10.2.2.0, 10.3.3.0, 10.4.2.0, 10.5.1.1, 10.6.0.0 > Reporter: Knut Anders Hatlen > Assignee: Kristian Waagan > Fix For: 10.4.2.1, 10.5.3.1, 10.6.0.0 > > Attachments: CastExc.java, derby-4102-1a.diff, derby-4102-1a.stat, java-deadlock.txt > > > The code below results in an assert error (with sane jars) or a ClassCastException (with insane jars): > PreparedStatement ps = c.prepareStatement("values cast(? as blob)"); > int len = 32 * 1024; > ps.setBinaryStream(1, new ByteArrayInputStream(new byte[len]), len); > ResultSet rs = ps.executeQuery(); > while (rs.next()) { > rs.getBlob(1); > } > If len < 32K there is no error. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.