Re: [aspectwerkz-user] [Jason E. Stewart] java.lang.IllegalAccessError: gnu.trove.TObjectHash tried to access method java/lang/Object.clone()
Alexandre Vasseur <[email protected]> Tue, 2 Aug 2005 19:47:17 +0200
| Newsgroups | gmane.comp.java.aspectwerkz.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Jason Someone has reported it. Perhaps he can comment. I think this one is due to a conflict between the gnu.trove.* we ship in the distribution and the gnu.trove.* that may be shipped with the app server on which you deploy. Try to find those and make sure you keep only ours to see if the error goes away. (reposted) Alex On 8/2/05, Jason E. Stewart <[email protected]> wrote: > Hey All, > > I sent this message out a week ago, but I haven't heard anything > back. I'm new to java and I'm experimenting with AOP for the first > time. I really have zero idea what the error in the stack trace really > means. > > I'm using an IBM 1.4.2 JDK on powerpc linux, and I'm wondering if this > is some JVM related issue, or if it something different. > > Thanks in advance, > jas. > > > > > ---------- Forwarded message ---------- > From: [email protected] (Jason E. Stewart) > To: [email protected] > Date: Sun, 24 Jul 2005 20:26:11 +0530 > Subject: java.lang.IllegalAccessError: gnu.trove.TObjectHash tried to access method java/lang/Object.clone() > Hey, > > I started to use AspectWerkz-2.0 final to test AOP on my J2EE > application. I tried running online mode but I get the above error > whenever an aspect tries to run. > > So I tested some simple examples from the tutorial in offline mode and > got them to work. I then ran my J2EE code through offline mode and > deployed it. But I get the same error. > > Here is the interesting bit of a stack-trace starting at the method in > my code that had it's method wrapped with an around aspect. > > All help appreciated, > jas. > -- > > java.lang.IllegalAccessError: gnu.trove.TObjectHash tried to access method java/lang/Object.clone()Ljava/lang/Object; > at gnu.trove.TObjectHash.clone(TObjectHash.java:123) > at org.codehaus.aspectwerkz.expression.ArgsIndexVisitor.visit(ArgsIndexVisitor.java:93) > at org.codehaus.aspectwerkz.expression.ast.ASTPointcutReference.jjtAccept(ASTPointcutReference.java:33) > at org.codehaus.aspectwerkz.expression.ExpressionVisitor.visit(ExpressionVisitor.java:133) > at org.codehaus.aspectwerkz.expression.ast.ASTExpression.jjtAccept(ASTExpression.java:18) > at org.codehaus.aspectwerkz.expression.ExpressionVisitor.visit(ExpressionVisitor.java:121) > at org.codehaus.aspectwerkz.expression.ExpressionVisitor.match(ExpressionVisitor.java:107) > at org.codehaus.aspectwerkz.expression.ArgsIndexVisitor.updateContextForRuntimeInformation(ArgsIndexVisitor.java:62) > at org.codehaus.aspectwerkz.joinpoint.management.JoinPointManager.getAdviceInfoContainerForJoinPoint(JoinPointManager.java:304) > at org.codehaus.aspectwerkz.joinpoint.management.JoinPointManager.compileJoinPoint(JoinPointManager.java:230) > at org.codehaus.aspectwerkz.joinpoint.management.JoinPointManager.loadJoinPoint(JoinPointManager.java:118) > at com.pantoto.lib.Log4jInit.aw$initJoinPoints(Log4jInit.java) > > >