openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Donald Woods (JIRA)" <j...@apache.org>
Subject [jira] Updated: (OPENJPA-1352) Merge fails if an entity has an element collection which is contructed using Arrays.asList
Date Wed, 24 Feb 2010 14:08:27 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-1352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Donald Woods updated OPENJPA-1352:
----------------------------------

    Affects Version/s: 2.0.0-M3
        Fix Version/s:     (was: 2.0.0)
                       2.0.0-beta

> Merge fails if an entity has an element collection which is contructed using Arrays.asList
> ------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1352
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1352
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 2.0.0-M3
>            Reporter: Fay Wang
>            Assignee: Fay Wang
>             Fix For: 2.0.0-beta
>
>         Attachments: OPENJPA-1352.patch
>
>
> When an entity has an element collection, which is constructed using Arrays.asList, the
following exception is thrown:
> java.lang.IllegalAccessError:java.util.Arrays$ArrayList
> 	at java.lang.ClassLoader.defineClassImpl(Native Method)
> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:265)
> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:202)
> 	at serp.bytecode.BCClassLoader.findClass(BCClassLoader.java:50)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:643)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
> 	at java.lang.Class.forNameImpl(Native Method)
> 	at java.lang.Class.forName(Class.java:169)
> 	at org.apache.openjpa.util.GeneratedClasses.loadBCClass(GeneratedClasses.java:67)
> 	at org.apache.openjpa.util.ProxyManagerImpl.getFactoryProxyCollection(ProxyManagerImpl.java:363)
> 	at org.apache.openjpa.util.ProxyManagerImpl.copyCollection(ProxyManagerImpl.java:182)
> 	at org.apache.openjpa.kernel.AttachStrategy.copyCollection(AttachStrategy.java:344)
> 	at org.apache.openjpa.kernel.AttachStrategy.attachCollection(AttachStrategy.java:321)
> 	at org.apache.openjpa.kernel.AttachStrategy.attachField(AttachStrategy.java:218)
> 	at org.apache.openjpa.kernel.VersionAttachStrategy.attach(VersionAttachStrategy.java:153)
> 	at org.apache.openjpa.kernel.AttachManager.attach(AttachManager.java:251)
> 	at org.apache.openjpa.kernel.AttachStrategy.attachField(AttachStrategy.java:202)
> 	at org.apache.openjpa.kernel.VersionAttachStrategy.attach(VersionAttachStrategy.java:153)
> 	at org.apache.openjpa.kernel.AttachManager.attach(AttachManager.java:251)
> 	at org.apache.openjpa.kernel.AttachManager.attach(AttachManager.java:104)
> 	at org.apache.openjpa.kernel.BrokerImpl.attach(BrokerImpl.java:3322)
> 	at org.apache.openjpa.kernel.DelegatingBroker.attach(DelegatingBroker.java:1176)
> 	at org.apache.openjpa.persistence.EntityManagerImpl.merge(EntityManagerImpl.java:858)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message