Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 34597 invoked from network); 29 Mar 2010 16:32:36 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Mar 2010 16:32:36 -0000 Received: (qmail 56948 invoked by uid 500); 29 Mar 2010 16:32:36 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 56893 invoked by uid 500); 29 Mar 2010 16:32:35 -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 56884 invoked by uid 99); 29 Mar 2010 16:32:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Mar 2010 16:32:35 +0000 X-ASF-Spam-Status: No, hits=-1.2 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christian.peter.io@googlemail.com designates 209.85.220.212 as permitted sender) Received: from [209.85.220.212] (HELO mail-fx0-f212.google.com) (209.85.220.212) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Mar 2010 16:32:29 +0000 Received: by fxm4 with SMTP id 4so2450408fxm.20 for ; Mon, 29 Mar 2010 09:32:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type :date:message-id:mime-version:x-mailer; bh=WpP3/122uigMacu5sX4pWdqzZB8sxTqwIF8mA2DsE+8=; b=xMjhSYFjGrkJwpIoqO9EZSayUdd7EC165KJ2jFo4zM7RI1zNvt/1CsXW5YK2yPmKJJ dMLpI/FRUC+uI0dBN7RnnncwGwb0OqW3lfGK37Ffvhk622L3wGvSpaYYcM5UZxAf31fM dDBKr9cj9cCi+/s/M5l4M45Iq6xmipSndZJls= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer; b=WQbtQBOq0ecG6n/d+nM2z68UHa8RLyvWh8ySw4iMva/ceaadcZNBe1kQ2swT2pUp8X E0bs2FEO2iOFSJ1GvKhJoRz+0Kf+qI7OQOIduDa91A9BExw8D9iiqlCll+WAV9XHJXp5 1arz/KX1nL8vfW9HGyP21Jw3YoOIpdKxDcZoE= Received: by 10.223.1.146 with SMTP id 18mr5251611faf.53.1269880328024; Mon, 29 Mar 2010 09:32:08 -0700 (PDT) Received: from [192.168.1.66] (p57AF9404.dip0.t-ipconnect.de [87.175.148.4]) by mx.google.com with ESMTPS id 21sm10305202fkx.40.2010.03.29.09.32.07 (version=SSLv3 cipher=RC4-MD5); Mon, 29 Mar 2010 09:32:07 -0700 (PDT) Subject: Harmony H2 errors From: Christian Peter To: dev@harmony.apache.org Content-Type: multipart/mixed; boundary="=-clfPvm6mg7AAghV4GsMi" Date: Mon, 29 Mar 2010 18:32:06 +0200 Message-ID: <1269880326.20923.16.camel@else.charlysworld.de> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 (2.28.3-1.fc12) --=-clfPvm6mg7AAghV4GsMi Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Hi list, I regularly read the Harmony development archives, and there was a post about Dacapo benchmarks with the H2 database. I also tested some of my applications against Harmony, and I have problems with H2. I narrowed it down to a small testcase. RI works fine, Harmony doesn't work (on Fedora 12, all Updates). This is on 32 bit, 64 bit seems to be Ok. Just use the attached file and the jar file found in http://www.h2database.com/h2-2010-03-21.zip and let it run. Regards Christian Peter --=-clfPvm6mg7AAghV4GsMi Content-Disposition: attachment; filename="Simple.java" Content-Type: text/x-java; name="Simple.java"; charset="UTF-8" Content-Transfer-Encoding: 7bit import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.Statement; public class Simple { public static void main(String... args) { try { System.out.println(Runtime.getRuntime().maxMemory()); Class.forName("org.h2.Driver"); String url = "jdbc:h2:data;CACHE_SIZE=10000"; Connection conn = DriverManager.getConnection(url); Statement stat = conn.createStatement(); stat.execute("drop table account if exists"); stat.execute("create table account(name varchar primary key)"); PreparedStatement prep = conn.prepareStatement("insert into account(name) values(?)"); for (int i = 0; i < 90000; i++) { prep.setString(1, "Test" + i); prep.execute(); } conn.close(); } catch (Throwable t) { t.printStackTrace(); } } } --=-clfPvm6mg7AAghV4GsMi--