[Installation, Configuration & Deployment] - Unable to load class sun.reflect.GeneratedMethodAccessor
by lawc
Hi,
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)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254473#4254473
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254473
15 years, 4 months
[EJB 3.0 Users] - Re: Session EJB and MDB Configuration
by jaikiran
"kyle.bober" wrote : Not sure if this is anything but I also noticed an extra ' single quote in the logging output of the container name. Is it possible there is a bug adding an extra ' single quote to the container name? Just a thought.
You can ignore the extra single quote in the log output. That's actually a typo in the log message.
As for the issue you are running into, i have tried this using the "mdb" tutorial that we have on that page and it's working fine locally. Can you post the entire logs that you see on the console (not server.log)? Maybe that will give a hint.
While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254457#4254457
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254457
15 years, 4 months