openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <>
Subject Re: Failing to persist a field where the type is XMLGregorianCalendar.
Date Fri, 20 Jul 2012 18:42:43 GMT
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)
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<eclipse-javadoc:%E2%98%82=openjpa-kernel/src%5C/main%5C/>.generateProxyBeanBytecode(...)
skips trying to create a custom proxy for final types.


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

*Rick Curtis*

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message