openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <curti...@gmail.com>
Subject Re: JDK 1.7 seems to be causing an issue with latest snapshot
Date Thu, 11 Oct 2012 00:51:18 GMT
I always hit the same problem on oracle 1.7 when using the -javaagent
enhancer.... it seems to work fine with IBM 1.7.

On Wed, Oct 10, 2012 at 1:54 PM, garpinc <garpinc@yahoo.com> wrote:

> I installed snapshot openjpa-2.2.1-20121010.180151-3.jar
> when I run under JDK 1.7 it results in following exception. JDK 1.6 runs
> fine...
>
> Any ideas?
>
> java.lang.LinkageError: loader (instance of
> sun/misc/Launcher$AppClassLoader): attempted  duplicate class definition
> for
> name: "org/apache/openjpa/jdbc/identifier/DBIdentifier$DBIdentifierType"
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
>         at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
>         at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
>         at
>
> org.apache.openjpa.jdbc.sql.DBDictionary.configureNamingRules(DBDictionary.java:513)
>         at
>
> org.apache.openjpa.jdbc.sql.DBDictionary.setConfiguration(DBDictionary.java:4673)
>         at
>
> org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:486)
>         at
>
> org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:443)
>         at
>
> org.apache.openjpa.jdbc.sql.DBDictionaryFactory.newDBDictionary(DBDictionaryFactory.java:199)
>         at
>
> org.apache.openjpa.jdbc.sql.DBDictionaryFactory.newDBDictionary(DBDictionaryFactory.java:100)
>         at
>
> org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(JDBCConfigurationImpl.java:603)
>         at
>
> org.apache.openjpa.jdbc.meta.MappingRepository.endConfiguration(MappingRepository.java:1518)
>         at
>
> org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:518)
>         at
>
> org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:443)
>         at
> org.apache.openjpa.lib.conf.PluginValue.instantiate(PluginValue.java:104)
>         at
>
> org.apache.openjpa.conf.MetaDataRepositoryValue.instantiate(MetaDataRepositoryValue.java:68)
>         at
> org.apache.openjpa.lib.conf.ObjectValue.instantiate(ObjectValue.java:83)
>         at
>
> org.apache.openjpa.conf.OpenJPAConfigurationImpl.newMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:967)
>         at
>
> org.apache.openjpa.conf.OpenJPAConfigurationImpl.getMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:958)
>         at
>
> org.apache.openjpa.kernel.AbstractBrokerFactory.makeReadOnly(AbstractBrokerFactory.java:638)
>         at
>
> org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:203)
>         at
>
> org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:156)
>         at
>
> org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:227)
>         at
>
> org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:154)
>         at
>
> org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:60)
>         at
>
>
>
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/JDK-1-7-seems-to-be-causing-an-issue-with-latest-snapshot-tp7581417.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>



-- 
*Rick Curtis*

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