Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 40156 invoked from network); 22 Apr 2010 16:24:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Apr 2010 16:24:13 -0000 Received: (qmail 68024 invoked by uid 500); 22 Apr 2010 16:24:13 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 67975 invoked by uid 500); 22 Apr 2010 16:24:12 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 67966 invoked by uid 99); 22 Apr 2010 16:24:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Apr 2010 16:24:12 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of christian.peter.io@googlemail.com designates 209.85.218.221 as permitted sender) Received: from [209.85.218.221] (HELO mail-bw0-f221.google.com) (209.85.218.221) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Apr 2010 16:24:06 +0000 Received: by bwz21 with SMTP id 21so9869754bwz.15 for ; Thu, 22 Apr 2010 09:23:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=8DpfeZbHoTbKTGQF3Ht5R2TK2tYBBa2qHYNoVSLpWXw=; b=xHg7PMiAZyswoR+unIC7g+5XquuVc2TjnX1hTdmu6NQY+U3RUcC8hdrfn56dyn/Bfa T7eFhEsVzsUdHImSX7p5Tzvgn/ED4II8pr+kz8JSy2ViiLwvqAaUtjTJ27nWmx0BPESJ 2OI3iHP/AxpZTbL+uq9oQAknPK7xkFUfFQbrU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Rlg5n/pg94Gk1PniQOA2k1s72UkTsVbKoLr5ruVuhtSJNBuICn0/+lU7A+JpPhYmcA yO/zc6Pq3by6t5LZOrRe1Jqr2/LBjSeW8YNUB0gZI9rgqYfuMrpYKxDp6nwXrjd/uFxl bzqTpku+QVXUwh5t3slS0smPfK/2WOWCJgN2k= MIME-Version: 1.0 Received: by 10.204.69.134 with HTTP; Thu, 22 Apr 2010 09:23:45 -0700 (PDT) In-Reply-To: References: <1269880326.20923.16.camel@else.charlysworld.de> <4BB4767C.2000207@gmail.com> Date: Thu, 22 Apr 2010 18:23:45 +0200 Received: by 10.204.133.129 with SMTP id f1mr3613540bkt.45.1271953425229; Thu, 22 Apr 2010 09:23:45 -0700 (PDT) Message-ID: Subject: Re: Harmony H2 errors From: Christian Peter To: dev@harmony.apache.org Content-Type: multipart/alternative; boundary=00151747913814e8090484d5bce1 X-Virus-Checked: Checked by ClamAV on apache.org --00151747913814e8090484d5bce1 Content-Type: text/plain; charset=ISO-8859-1 Hi, since I didn't hear anything about this issue, is there anything I can do to get this issue fixed? I don't want it to be lost. Will someone add a JIRA Issue or should I? This Harmony JIT bug could also affect other software, not only H2. Thanks, Regards Christian 2010/4/2 Christian Peter > 2010/4/1 Tim Ellison > > Hi Christian, >> >> I see a problem too. I get a ClassCastException when running on Windows >> 32-bit DRLVM. I can't reproduce the problem when using -Xint or when >> using the IBM VME, so it looks like it might be a Harmony JIT bug. >> >> >> protected int compareSecure(Value o, CompareMode mode) { >> > ValueByte v = (ValueByte) o; >> return MathUtils.compareInt(value, v.value); >> } >> >> Is that the same problem you saw? >> >> Regards, >> Tim >> >> > Hi Tim, > > I see a different exception: > > org.h2.jdbc.JdbcSQLException: General error: > "java.lang.ArrayIndexOutOfBoundsException"; SQL statement: > insert into account(name) values(?) [50000-132] > at > org.h2.message.DbException.getJdbcSQLException(DbException.java:316) > at org.h2.message.DbException.get(DbException.java:156) > at org.h2.message.DbException.convert(DbException.java:284) > at org.h2.table.RegularTable.addRow(RegularTable.java:130) > at org.h2.command.dml.Insert.insertRows(Insert.java:120) > at org.h2.command.dml.Insert.update(Insert.java:82) > at org.h2.command.CommandContainer.update(CommandContainer.java:70) > at org.h2.command.Command.executeUpdate(Command.java:198) > at > org.h2.jdbc.JdbcPreparedStatement.execute(JdbcPreparedStatement.java:179) > at org.h2.samples.Simple.main(Simple.java:49) > Caused by: java.lang.ArrayIndexOutOfBoundsException > at org.h2.store.Data.readVarLong(Data.java:1001) > at org.h2.index.PageBtreeIndex.readRow(PageBtreeIndex.java:325) > at org.h2.index.PageBtree.getRow(PageBtree.java:168) > at org.h2.index.PageBtree.find(PageBtree.java) > at org.h2.index.PageBtreeNode.addRowTry(PageBtreeNode.java:198) > at org.h2.index.PageBtreeIndex.addRow(PageBtreeIndex.java:88) > at org.h2.index.PageBtreeIndex.add(PageBtreeIndex.java:79) > at org.h2.table.RegularTable.addRow(RegularTable.java:112) > at org.h2.command.dml.Insert.insertRows(Insert.java:120) > > This is here: > > public long readVarLong() { > long x = data[pos++]; > if (x >= 0) { > return x; > } > x &= 0x7f; > for (int s = 7;; s += 7) { > > long b = data[pos++]; > x |= (b & 0x7f) << s; > if (b >= 0) { > return x; > } > } > } > > And I also don't see it with -Xint. I tested both 1.5 and 1.6 builds. > > Regards > > Christian > > --00151747913814e8090484d5bce1--