Re: [aspectwerkz-user] java.lang.IllegalAccessError: gnu.trove.TObjectHash tried to access method java/lang/Object.clone()
Alexandre Vasseur <[email protected]> Mon, 25 Jul 2005 08:11:05 +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. Alex On 7/24/05, Jason E. Stewart <[email protected]> wrote: > 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) >