Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 39542 invoked from network); 10 Nov 2009 10:32:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Nov 2009 10:32:50 -0000 Received: (qmail 61191 invoked by uid 500); 10 Nov 2009 10:32:50 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 61117 invoked by uid 500); 10 Nov 2009 10:32:50 -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 61109 invoked by uid 99); 10 Nov 2009 10:32:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2009 10:32:50 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI 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, 10 Nov 2009 10:32:48 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D8190234C046 for ; Tue, 10 Nov 2009 02:32:27 -0800 (PST) Message-ID: <927331291.1257849147870.JavaMail.jira@brutus> Date: Tue, 10 Nov 2009 10:32:27 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (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 [ https://issues.apache.org/jira/browse/DERBY-4102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12775368#action_12775368 ] Knut Anders Hatlen commented on DERBY-4102: ------------------------------------------- The intermittent failure in testBlobWrite3Param() is already logged as DERBY-3844. > 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 > 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.