openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <curti...@gmail.com>
Subject Re: Failing to persist a field where the type is XMLGregorianCalendar.
Date Fri, 20 Jul 2012 15:43:40 GMT
How are you annotating the XMLGregorianCalendar field in your Entity to be
persistent?

Thanks,
Rick

On Fri, Jul 20, 2012 at 7:52 AM, garpinc <garpinc@yahoo.com> wrote:

> I'm having an issue when trying to persist a field where the type is
> XMLGregorianCalendar.
>
> I see a post here
>
> http://vard-lokkur.blogspot.com/2011/04/jpa-and-unmodifiable-collections.html
> which seems to show a similar issue.
>
> Can anyone help me figure out what's going on here?
>
> Getting the following exception at commit time:
> java.lang.IllegalAccessError: class
> org.apache.openjpa.util.org
> $apache$xerces$jaxp$datatype$XMLGregorianCalendarImpl$0$proxy
> cannot access its superclass
> org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
> at serp.bytecode.BCClassLoader.findClass(BCClassLoader.java:50)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:247)
> at
>
> org.apache.openjpa.util.GeneratedClasses.loadBCClass(GeneratedClasses.java:67)
> at
>
> org.apache.openjpa.util.ProxyManagerImpl.getFactoryProxyBean(ProxyManagerImpl.java:452)
> at
>
> org.apache.openjpa.util.ProxyManagerImpl.newCustomProxy(ProxyManagerImpl.java:303)
> at
>
> org.apache.openjpa.kernel.SingleFieldManager.proxy(SingleFieldManager.java:133)
> at
>
> org.apache.openjpa.kernel.StateManagerImpl.proxyFields(StateManagerImpl.java:2921)
> at
> org.apache.openjpa.kernel.PNonTransState.initialize(PNonTransState.java:45)
> at
>
> org.apache.openjpa.kernel.StateManagerImpl.setPCState(StateManagerImpl.java:294)
> at
>
> org.apache.openjpa.kernel.StateManagerImpl.commit(StateManagerImpl.java:1135)
>
>
>
> --
>

-- 
*Rick Curtis*

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