Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 24921 invoked from network); 22 Apr 2009 21:57:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Apr 2009 21:57:11 -0000 Received: (qmail 93956 invoked by uid 500); 22 Apr 2009 21:57:10 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 93877 invoked by uid 500); 22 Apr 2009 21:57:10 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 93867 invoked by uid 99); 22 Apr 2009 21:57:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2009 21:57:10 +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; Wed, 22 Apr 2009 21:57:08 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 75C3D234C003 for ; Wed, 22 Apr 2009 14:56:47 -0700 (PDT) Message-ID: <191915096.1240437407469.JavaMail.jira@brutus> Date: Wed, 22 Apr 2009 14:56:47 -0700 (PDT) From: "Michael Dick (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-922) setByteArrayInputStream being used in stead of setBytes In-Reply-To: <354294358.1234802340438.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/OPENJPA-922?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Dick updated OPENJPA-922: --------------------------------- Fix Version/s: (was: 1.2.2) > setByteArrayInputStream being used in stead of setBytes > ------------------------------------------------------- > > Key: OPENJPA-922 > URL: https://issues.apache.org/jira/browse/OPENJPA-922 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 1.2.0, 2.0.0 > Environment: DB2 on Windows > Reporter: B.J. Reed > Assignee: B.J. Reed > Fix For: 1.3.0, 2.0.0 > > Attachments: OPENJPA-922-C.patch > > > I have an Entity and one of its fields is defined as CHAR(16) FOR BIT DATA NOT NULL. > When trying to persist the entity, I get the following error: > Error: SQLCODE=-301, SQLSTATE=07006, SQLERRMC=1, DRIVER=3.50.152 > {prepstmnt 1386959531 INSERT INTO NULLID.TESTTBL (tkiid) VALUES (?) > [params=(InputStream) java.io.ByteArrayInputStream@75947594]} > It seems that the wrong kind of set is being used to set the parameter on the prepared statement. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.