Community
Participate
Working Groups
A ClassCircularityError can be thrown from ASM when it try to load a class that implements an interface, and has a method that assign the class to the interface. [EL Warning]: ServerSession(12256734)--Weaver encountered an exception while trying to weave class org/eclipse/persistence/testing/models/jpa/inherited/NodeImpl. The exception was: java.lang.ClassCircularityError: org/eclipse/persistence/testing/models/jpa/inherited/NodeImpl We currently trap errors from weaving, so the result is the class is just not weaved and the warning logged. The code causing the issue is, Node variable = this; if this is change to, Node variable = (Node)(Object)this; The error seems to go away, very odd. Seems to be a bug in ASM.
Checking in the test classes for this into the inherited model. Will log a bug on ASM, fixing the issue may require an upgrade.
Logged, http://forge.ow2.org/tracker/index.php?func=detail&aid=316188&group_id=23&atid=100023
we repackage asm, so it is our bug, and doesn't matter anyway, our weaving does not work, doesn't matter if a bug in asm is causing it.
Setting target and priority. See the following page for the meanings of these fields: http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines Community: Please vote for this bug if it is important to you. Votes are one of the main criteria we use to determine which bugs to fix next.
Related?: Bug 314684
No, I don't think Bug 314684 is related, that seems to be some kind of OSGi issue. The ASM bug I logged was closed as not a bug, they don't seem to be willing to fix it, even though it used to work, and now does not. I saw a user having what appears to be this issue on the forums, and it can basically occur for any reasonable complex piece of code, so I assume we will start seeing this more as people upgrade to 2.3. We will need to make some kind of workaround for it.
This causes the same class to fail to load in JDK 1.7 (deploy will fail). This is a pretty critical issue, as it could occur in any application, and would require weaving to be turned off.
See bug#370975
See, http://www.eclipse.org/forums/index.php/mv/msg/264241/762520/#msg_762520 For a user hitting this error. The workaround is to disable weaving, or find the offending code in the class (which is not obvious) and remove it.
This issue did not occur in EclipseLink 2.0, so was caused by our ASM upgrade in 2.3.
Fix for bug 370975 should address this. Please reopen if you still see the same issue. *** This bug has been marked as a duplicate of bug 370975 ***
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink