Return-Path: X-Original-To: apmail-cayenne-dev-archive@www.apache.org Delivered-To: apmail-cayenne-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2D2C39AFF for ; Mon, 3 Oct 2011 10:44:47 +0000 (UTC) Received: (qmail 43663 invoked by uid 500); 3 Oct 2011 10:44:47 -0000 Delivered-To: apmail-cayenne-dev-archive@cayenne.apache.org Received: (qmail 43605 invoked by uid 500); 3 Oct 2011 10:44:46 -0000 Mailing-List: contact dev-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list dev@cayenne.apache.org Received: (qmail 43594 invoked by uid 99); 3 Oct 2011 10:44:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2011 10:44:46 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 03 Oct 2011 10:44:39 +0000 Received: (qmail 15015 invoked from network); 3 Oct 2011 10:44:18 -0000 Received: from unknown (HELO ?127.0.0.1?) (127.0.0.1) by localhost with SMTP; 3 Oct 2011 10:44:18 -0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: CAY-1051: Cayenne 1.2 and Oracle 11.x drivers -- looking for the quick fix From: Andrus Adamchik In-Reply-To: Date: Mon, 3 Oct 2011 13:44:17 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: dev@cayenne.apache.org X-Mailer: Apple Mail (2.1084) Here is the 1.2 code head: https://svn.apache.org/repos/asf/cayenne/main/branches/STABLE-1.2/ On Sep 29, 2011, at 8:47 PM, Mike Kienenberger wrote: > I do appear to have a quick fix for this working by creating a new > Oracle11Adapter subclasses: >=20 > org.objectstyle.cayenne.dba.oracle: > Oracle11ActionBuilder.java > Oracle11Adapter.java > Oracle11SelectAction.java > Oracle11SelectTranslator.java >=20 > and adding > >=20 > into my cayenne xml configuration >=20 > On Thu, Sep 29, 2011 at 11:19 AM, Mike Kienenberger = wrote: >> So I have to move a legacy Cayenne 1.2 application to a WebLogic app >> server with Oracle 11.x drivers, and I have hit CAY-1051: >>=20 >> Class org.apache.cayenne.dba.oracle.OracleSelectTranslator can not >> access a member of class oracle.jdbc.driver.OracleStatementWrapper >> with modifiers "public" >>=20 >> The code change to fix the problem is rather trivial -- just change >> OracleSelectTranslator.java to revision 654552. >>=20 >> Unfortunately, I forgot how difficult it was to set up a Cayenne 1.2 >> development environment. The source tar contains none of the build >> structure. I have been unable to determine where the 1.2 source >> respository is to check out the build structure. Some of the the >> build dependencies are not enumerated. One of the build = dependencies >> (Smack) no longer appears to be available -- the only downloadable >> version is not compatible with the version Cayenne expects. >>=20 >> I do have what I think is a Cayenne 1.2 build environment setup on an >> old system backup, and I'm attempting to restore it. >>=20 >> Andrus mentioned in that he 'found a quick fix for "optimizations" to >> work with the new driver' but didn't enumerate what it was. At this >> point, I'd rather use a quick fix than try to apply the patch to = build >> a new Cayenne 1.2 jar. >>=20 >> I'm open to other quick fix suggestions. One thing I am considering >> is creating a custom Oracle Adapter subclass which uses the >> OracleSelectTranslator.java file I downloaded. >>=20 >=20