From dev-return-9369-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Sun Oct 19 15:41:12 2008 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 13350 invoked from network); 19 Oct 2008 15:41:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Oct 2008 15:41:12 -0000 Received: (qmail 52398 invoked by uid 500); 19 Oct 2008 15:41:14 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 52236 invoked by uid 500); 19 Oct 2008 15:41:14 -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 52225 invoked by uid 99); 19 Oct 2008 15:41:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Oct 2008 08:41:14 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [84.253.141.63] (HELO mail.semeru.it) (84.253.141.63) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Oct 2008 15:40:02 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.semeru.it (Postfix) with ESMTP id 553B739ADEE for ; Sun, 19 Oct 2008 16:53:36 +0000 (UTC) X-DSPAM-Result: Innocent X-DSPAM-Processed: Sun Oct 19 16:53:36 2008 X-DSPAM-Confidence: 0.9997 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 48fb6610201762195815323 X-DSPAM-Factors: 27, X-Virus-Scanned: amavisd-new at X-Spam-Score: 0.547 X-Spam-Level: Received: from mail.semeru.it ([127.0.0.1]) by localhost (mail.semeru.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KI-eg4gkgrte for ; Sun, 19 Oct 2008 16:53:35 +0000 (UTC) Received: from [10.39.39.29] (host93-215-dynamic.35-79-r.retail.telecomitalia.it [79.35.215.93]) by mail.semeru.it (Postfix) with ESMTP id 0EC1D39ADEB for ; Sun, 19 Oct 2008 16:53:34 +0000 (UTC) Message-ID: <48FB54F4.8030405@apache.org> Date: Sun, 19 Oct 2008 17:40:36 +0200 From: Simone Gianni User-Agent: Thunderbird 1.5.0.10 (X11/20070310) MIME-Version: 1.0 To: dev@openjpa.apache.org Subject: Re: Build fails with error References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=0.547 tagged_above=-10 required=6.6 tests=[ALL_TRUSTED=-1.44, AWL=0.086, DNS_FROM_SECURITYSAGE=2.001, DSPAM_HAM=-0.1] Hi Pankaj Tiwari, you are building against java 6, and unfortunately this is not yet supported. Point your JAVA_HOME to a java 1.5 JDK and it will build correctly. Please note that this does not mean that OpenJPA does not RUN under java 6, simply it will not build against a JDK 1.6. That is because OpenJPA subclasses some JDBC classes, JDK 6 comes with new JDBC 4, but at the same time the JPA standard does not yet define any support for new JDBC 4 types, so current subclasses of OpenJPA are stuck to JDBC 3. Since JDBC 4 declares new methods and types in DataSource, PreparedStatement and many other interfaces, it results that OpenJPA implementations are not complete for JDBC 4 and those errors are reported. Bug OPENJPA-5 has a quite extensive discussion on this problem and possible solutions. Hope this helps, Simone Pankaj Tiwari wrote: > Hi All, > I am new to the OpenJPA community. I downloaded the build from https:// > svn.apache.org/repos/asf/openjpa/trunk/ and tried to build the project. But > i am getting error in building OpenJPA- Utilities project. The exact error > is pasted below > > > G:\oss\openJPA\openjpa-lib\src\main\java\org\apache\openjpa\lib\jdbc\DelegatingDataSource.java:[35,7] > org.apache.openjpa.lib.jdbc.DelegatingDataSource is not abstract and does > not override abstract method isWrapperFor(java.lang.Class) in > java.sql.Wrapper > [ERROR] > [ERROR]org/apache/openjpa/lib/jdbc/DelegatingResultSet.java.java:[50,7] > org.apache.openjpa.lib.jdbc.DelegatingResultSet is not abstract and does not > override abstract method updateNClob(java.lang.String,java.io.Reader) in > java.sql.ResultSet > [ERROR] > [ERROR]org/apache/openjpa/lib/jdbc/DelegatingDatabaseMetaData.java.java:[31,7] > org.apache.openjpa.lib.jdbc.DelegatingDatabaseMetaData is not abstract and > does not override abstract method > getFunctionColumns(java.lang.String,java.lang.String,java.lang.String,java.lang.String) > in java.sql.DatabaseMetaData > [ERROR] > [ERROR]org/apache/openjpa/lib/jdbc/DelegatingPreparedStatement.java.java:[51,7] > org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement is not abstract and > does not override abstract method setNClob(int,java.io.Reader) in > java.sql.PreparedStatement > [ERROR] > [ERROR]org/apache/openjpa/lib/jdbc/DelegatingConnection.java.java:[47,7] > org.apache.openjpa.lib.jdbc.DelegatingConnection is not abstract and does > not override abstract method > createStruct(java.lang.String,java.lang.Object[]) in java.sql.Connection > [ERROR] > [ERROR]org/apache/openjpa/lib/jdbc/DelegatingStatement.java.java:[37,7] > org.apache.openjpa.lib.jdbc.DelegatingStatement is not abstract and does not > override abstract method isPoolable() in java.sql.Statement > [ERROR] > [ERROR]org/apache/openjpa/lib/jdbc/DelegatingCallableStatement.java.java:[49,7] > org.apache.openjpa.lib.jdbc.DelegatingCallableStatement is not abstract and > does not override abstract method setNClob(java.lang.String,java.io.Reader) > in java.sql.CallableStatement > [ERROR] > [ERROR] > > Can anyone help me out with this. I wanted to build the OpenJPA and then > will try to understand the code, so that i may also contribute to this. > > Thanks and Regards > Pankaj Tiwari > > -- Simone Gianni CEO Semeru s.r.l. Apache Committer MALE human being programming a computer http://www.simonegianni.it/