Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 80C43175FC for ; Tue, 7 Oct 2014 22:44:04 +0000 (UTC) Received: (qmail 41629 invoked by uid 500); 7 Oct 2014 22:44:04 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 41587 invoked by uid 500); 7 Oct 2014 22:44:04 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 41575 invoked by uid 99); 7 Oct 2014 22:44:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Oct 2014 22:44:03 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kwsutter@gmail.com designates 209.85.216.174 as permitted sender) Received: from [209.85.216.174] (HELO mail-qc0-f174.google.com) (209.85.216.174) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Oct 2014 22:43:38 +0000 Received: by mail-qc0-f174.google.com with SMTP id m20so6610432qcx.19 for ; Tue, 07 Oct 2014 15:43:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=QN0YkmwLB4l1rFhAbs/uOrrRIlZ1fW3/yplQg3fhtmo=; b=Ae2x1QwxVEHWOnHuKy30kf1kVS3NFsA7J7g+OPZwHTZ10X7YCkiRCoJ5iYmco6IH69 I9nFU1Wf5REfLpE7mu3+2IcOuqzOP2ZU5E2JS0MMg9ZkjxLsPpQ3tl1ufc0SafDFLUdw /2YmDm+MEz+4p+gepU3JGj3wjRli37RVw6lmvpRLKOiD/K0MkS1P6kpneiviV/OLmYpg webS6qQ1Oe90vnVIsio+SrDucorjHBCCuOLYxOuJUII/hoyuNkp5cqUqXZnDu4lg8pXd 6XjXeOJdo5sSzezN+6pYl1LrNVrY9jN9qHr1k3eIhc2BtNp1lHEZGtZ4k6uMaeDpl5YU Gpfw== X-Received: by 10.224.74.140 with SMTP id u12mr2352582qaj.41.1412721816472; Tue, 07 Oct 2014 15:43:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.27.174 with HTTP; Tue, 7 Oct 2014 15:43:16 -0700 (PDT) In-Reply-To: <1412696989264-7587176.post@n2.nabble.com> References: <1412326378581-7587168.post@n2.nabble.com> <1412696989264-7587176.post@n2.nabble.com> From: Kevin Sutter Date: Tue, 7 Oct 2014 17:43:16 -0500 Message-ID: Subject: Re: Moving from OpenJPA 2.0.1 to 2.3.0: fields not found To: users@openjpa.apache.org Content-Type: multipart/alternative; boundary=089e012950d809939e0504dcee24 X-Virus-Checked: Checked by ClamAV on apache.org --089e012950d809939e0504dcee24 Content-Type: text/plain; charset=UTF-8 Lionel, I would suggest trying to turn on Trace, but there doesn't seem to be a lot of tracing in this particular area of the code... :-( It still might be worth a shot. Maybe an earlier log entry might shed some light on why this is going awry... I'm going to suggest one quick change just to see if it makes a difference. It shouldn't, but I stumbled on this the first time I read your code, so maybe the OpenJPA code is making the same mistake... Instead of referencing a final String field for your mappedBy field, what happens if you just insert the actual string? For example, instead of... mappedBy = CAService._domainFieldName, do this... mappedBy = "domains", I know it shouldn't make a difference, but it might isolate the source of the error if this does work. Thanks, Kevin On Tue, Oct 7, 2014 at 10:49 AM, Lionel wrote: > Hello, > > First, thanks a lot for your answer. :) > > In the past, we were using an ant build the project so also to run the JPA > enhancer but for a company strategy reason we are moving to a maven build > process. > And when I did it, we've seen that there is a maven plugin to do the JPA > enhancer. > So that's why :) > > I just put back the default PersistenceProviderImpl and sadly, I had the > same result. :( > > org.apache.openjpa.persistence.PersistenceProviderImpl > > > > To try to isolate the issue and, tonight, we will just replace the JPA > version inside the existing project (built with ant) just to validate that > has really no link with the enhancement. > > I will also try to upgrade openJPA version one by one to be sure from which > the error appears and give additionnal data tomorrow. > > > > -- > View this message in context: > http://openjpa.208410.n2.nabble.com/Moving-from-OpenJPA-2-0-1-to-2-3-0-fields-not-found-tp7587168p7587176.html > Sent from the OpenJPA Users mailing list archive at Nabble.com. > --089e012950d809939e0504dcee24--