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 60CE4979D for ; Fri, 20 Jul 2012 18:43:10 +0000 (UTC) Received: (qmail 61219 invoked by uid 500); 20 Jul 2012 18:43:10 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 61180 invoked by uid 500); 20 Jul 2012 18:43:10 -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 61168 invoked by uid 99); 20 Jul 2012 18:43:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2012 18:43:10 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of curtisr7@gmail.com designates 209.85.217.174 as permitted sender) Received: from [209.85.217.174] (HELO mail-lb0-f174.google.com) (209.85.217.174) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2012 18:43:04 +0000 Received: by lbbgm6 with SMTP id gm6so6499830lbb.33 for ; Fri, 20 Jul 2012 11:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=WG7KElfiPzWYaMj200UO7TzGOKu7hCRVPlfAdKWjBbM=; b=xHSYS/nkNgriqEDI3QBCwSb1muE35xgNJVgFdwM8Bkj1LBIwYvrI7cBaHCxojQ1xyt myW4c2rZZPZF7t+LJGuERHifg5ZUaekpv1WGAUbeWAigPZdGUNbmyyzvDYNwvQGBCFqK XEJPXiv/a+xB5YCuTyPr9m/Bwd2oCgOtY27IckMH7zsY05QGhmPocWGorVhi0xi8+6FY vEB7GEdBr/Cjuxcli5CfrDaH5b1eLnoMmxK+UoXxSEtW1NDzHBzDMSn9wthQaGXVeV9u kOAj+ZWePtjsRtmcd5p0TKSrVWGX5dNXUInoqQoB0nfuOwrFfTtzMSjvpMK//Jn94sFW +bFQ== MIME-Version: 1.0 Received: by 10.112.101.169 with SMTP id fh9mr3616101lbb.18.1342809763252; Fri, 20 Jul 2012 11:42:43 -0700 (PDT) Received: by 10.112.29.99 with HTTP; Fri, 20 Jul 2012 11:42:43 -0700 (PDT) In-Reply-To: <1342809225515-7580677.post@n2.nabble.com> References: <1342788760352-7580665.post@n2.nabble.com> <1342804153432-7580674.post@n2.nabble.com> <1342807130289-7580676.post@n2.nabble.com> <1342809225515-7580677.post@n2.nabble.com> Date: Fri, 20 Jul 2012 13:42:43 -0500 Message-ID: Subject: Re: Failing to persist a field where the type is XMLGregorianCalendar. From: Rick Curtis To: users@openjpa.apache.org Content-Type: multipart/alternative; boundary=f46d04016ae1f0893804c54742d0 X-Virus-Checked: Checked by ClamAV on apache.org --f46d04016ae1f0893804c54742d0 Content-Type: text/plain; charset=ISO-8859-1 Honestly, I haven't had time to try to run with your customer handlers... I have been looking ProxyManager code and trying to recreate the initial stack you posted. Here is a small test you can run to see where it is blowing up: XMLGregorianCalendar cc = null; // instantiate me! OpenJPAEntityManagerFactorySPI emf = (OpenJPAEntityManagerFactorySPI) getEmf(); emf.getConfiguration().getProxyManagerInstance().newCustomProxy(cc, false); // this line should fail for you I haven't been able to recreate the failure on my machine because org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl is a final class and org.apache.openjpa.util.ProxyManagerImpl.generateProxyBeanBytecode(...) skips trying to create a custom proxy for final types. Thanks, Rick On Fri, Jul 20, 2012 at 1:33 PM, garpinc wrote: > It could be that I didn't implement the AbstractValueHandler correctly. The > api changed from 2.1.2 to 2.2.. now when I restest on 2.1.2 it doesn't work > where it did before.. Please see if you think they are correct.. In the > meantime i'll revert to 2.1.2 and put AbstractValueHandler back to how they > were to see if it then magically works again > > > > -- > Sent from the OpenJPA Users mailing list archive at Nabble.com. > -- *Rick Curtis* --f46d04016ae1f0893804c54742d0--