Unable to load class sun.reflect.GeneratedMethodAccessor
lawc Sep 10, 2009 10:53 AMHi,
We have our application ear deployed on jboss 4.2.2. We have integrated GridGain into our application to grid-enable some of the methods. GridGain allows you to annotate a method and then it uses AOP crosscutting to interject grid logic for the method.
Calling these methods works fine the first few times, but after a few invocations, jboss throws the exception below.
I have posted to both JBoss AOP and GridGain forums, but so far nobody has been able to help.
Any help will be appreciated.
java.lang.RuntimeException: Unable to load class sun.reflect.GeneratedMethodAccessor664 at org.jboss.aop.pointcut.SecurityActions$LoadClassAction$2.loadClass(SecurityActions.java:86) at org.jboss.aop.pointcut.SecurityActions.loadClass(SecurityActions.java:43) at org.jboss.aop.pointcut.CFlow.matchesClass(CFlow.java:124) at org.jboss.aop.pointcut.CFlow.matches(CFlow.java:88) at org.jboss.aop.pointcut.CFlow.matches(CFlow.java:72) at org.jboss.aop.pointcut.CFlowStack.matches(CFlowStack.java:59) at org.jboss.aop.pointcut.CFlowMatcher.visit(CFlowMatcher.java:133) at org.jboss.aop.pointcut.ast.ASTCFlow.jjtAccept(ASTCFlow.java:37) at org.jboss.aop.pointcut.CFlowMatcher.visit(CFlowMatcher.java:73) at org.jboss.aop.pointcut.ast.ASTCFlowExpression.jjtAccept(ASTCFlowExpression.java:37) at org.jboss.aop.pointcut.CFlowMatcher.matches(CFlowMatcher.java:55) at mx.service.JoinPoint_execute_N_4908115578183543373_1.getCFlow0(JoinPoint_execute_N_49081155781835 43373_1.java) at mx.service.JoinPoint_execute_N_4908115578183543373_1.<init>(JoinPoint_execute_N_4908115578183543373_1.java) at mx.service.JoinPoint_execute_N_4908115578183543373_1.invokeJoinpoint(JoinPoint_execute_N_49081155 78183543373_1.java) at mx.service.MeasureService$MeasureServiceAdvisor.execute_N_4908115578183543373(MeasureService$Meas ureServiceAdvisor.java) at mx.service.MeasureService.execute(MeasureService.java) at mx.service.MeasureService.execute(MeasureService.java:324) at mx.service.Measurement$MeasureCommand.execute(Measurement.java:455) at mx.service.Measurement$MeasureCommand.execute(Measurement.java:434) at mx.runtime.command.CommandServiceImpl.executeCommand(CommandServiceImpl.java:63) at mx.runtime.command.CommandServiceBean.doExecute(CommandServiceBean.java:141) at mx.runtime.command.CommandServiceBean.executeCommandNonTransactional(CommandServiceBean.java:87) at sun.reflect.GeneratedMethodAccessor664.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111) at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166) at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63 ) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityMan agerInterceptor.java:54) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66) at org.jboss.aspects.tx.TxInterceptor$Supports.invoke(TxInterceptor.java:144) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62 ) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) at org.jboss.aspects.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterce ptor.java:166) at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationIntercepto r.java:115) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77) at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:1 10) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)