openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Sutter (JIRA)" <>
Subject [jira] [Commented] (OPENJPA-2399) Oracle JDK 1.7 seems to be causing an issue with OpenJPA
Date Tue, 20 Aug 2013 16:20:51 GMT


Kevin Sutter commented on OPENJPA-2399:

This issue continues to be discussed via the OpenJPA mailing list:

The latest post from Garpinc describes the problem, the proper solution, and a workaround...

Turns out adding jvm option -XX:+AlwaysLockClassLoader appears to resolve


It says:
If your product ships and appears to have problems due to incomplete
handling of critical sections, you can use a new VM flag
-XX:+AlwaysLockClassLoader. This flag reverts to locking the class loader
lock before invoking your custom class loader's findClass() or loadClass()
method, even for class loaders that register as parallel capable.

The correct fix however would be to follow the guidelines in that post.
> Oracle JDK 1.7 seems to be causing an issue with OpenJPA
> --------------------------------------------------------
>                 Key: OPENJPA-2399
>                 URL:
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 2.2.0, 2.3.0, 2.2.2
>            Reporter: garpinc
> I recently had to upgrade to JDK 1.7 and I'm having
> java.lang.LinkageError: loader (instance of  sun/misc/Launcher$AppClassLoader): attempted
 duplicate class definition for name: "org/apache/openjpa/jdbc/identifier/DBIdentifier$DBIdentifierType"
> I previously reported this sometime ago here:
> seems there has been no resolution. I've tried 2.2.0, 2.2.1 and 2.3.0-SNAPSHOT and all
have same issue on Oracle JDK 1.7. Can someone please advise?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message