-
Bug
-
Resolution: Done
-
Critical
-
JBossAS-5.1.0.GA
-
None
When trying to get invocation statistics on an EJB3 session bean, the following exception occurs:
java.lang.reflect.UndeclaredThrowableException: Failed to get property 'invocationStats' on component 'ejb3-test.jar/HelloWorldBean'.
at org.jboss.profileservice.management.KernelBusRuntimeComponentDispatcher.get(KernelBusRuntimeComponentDispatcher.java:119)
at org.jboss.profileservice.management.DelegatingComponentDispatcherImpl.get(DelegatingComponentDispatcherImpl.java:81)
at sun.reflect.GeneratedMethodAccessor444.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:121)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.profileservice.remoting.ProfileServiceInvocationHandler.invoke(ProfileServiceInvocationHandler.java:99)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)
at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:744)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:697)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:551)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.reflect.Method
at org.jboss.ejb3.metrics.deployer.InvocationStatisticMetaMapper.createMetaValue(InvocationStatisticMetaMapper.java:163)
at org.jboss.ejb3.metrics.deployer.InvocationStatisticMetaMapper.createMetaValue(InvocationStatisticMetaMapper.java:53)
at org.jboss.profileservice.management.KernelBusRuntimeComponentDispatcher.get(KernelBusRuntimeComponentDispatcher.java:98)
at org.jboss.profileservice.management.DelegatingComponentDispatcherImpl.get(DelegatingComponentDispatcherImpl.java:81)
at sun.reflect.GeneratedMethodAccessor444.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:121)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.profileservice.remoting.ProfileServiceInvocationHandler.invoke(ProfileServiceInvocationHandler.java:99)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)
at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:744)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:697)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:551)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:211)
at org.jboss.remoting.Client.invoke(Client.java:1724)
at org.jboss.remoting.Client.invoke(Client.java:629)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.remoting.MergeMetaDataInterceptor.invoke(MergeMetaDataInterceptor.java:74)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aop.generatedproxies.AOPProxy$3.get(AOPProxy$3.java)
at org.jboss.profileservice.management.client.ManagedPropertyDelegate.getValue(ManagedPropertyDelegate.java:151)
at org.rhq.plugins.jbossas5.AbstractEjbBeanComponent.getInvocationStats(AbstractEjbBeanComponent.java:116)
at org.rhq.plugins.jbossas5.AbstractEjbBeanComponent.invokeOperation(AbstractEjbBeanComponent.java:94)
at sun.reflect.GeneratedMethodAccessor81.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:526)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.remoting.MergeMetaDataInterceptor.invoke(MergeMetaDataInterceptor.java:74)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aop.generatedproxies.AOPProxy$3.get(AOPProxy$3.java)
at org.jboss.profileservice.management.client.ManagedPropertyDelegate.getValue(ManagedPropertyDelegate.java:151)
at org.rhq.plugins.jbossas5.AbstractEjbBeanComponent.getInvocationStats(AbstractEjbBeanComponent.java:116)
at org.rhq.plugins.jbossas5.AbstractEjbBeanComponent.invokeOperation(AbstractEjbBeanComponent.java:94)
at sun.reflect.GeneratedMethodAccessor81.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:526)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
This is taken from an uncommited Jopr integration test but the bug seems obvious enough.
- blocks
-
JBAS-6620 JON/Open Console Issues
- Closed
- is blocked by
-
EJBTHREE-1872 InvocationStats.reset does not clear out methods invoked
- Resolved
-
EJBTHREE-1873 MDB inflow invocation does not record InvocationStatistics
- Resolved
-
EJBTHREE-1874 MDBs must expose invocation statistics
- Resolved
-
JBAS-7111 Upgrade AS to EJB3 1.1.10
- Closed
- is related to
-
EJBTHREE-1871 Add generics to InvocationStatistics
- Resolved
- relates to
-
JBPAPP-2288 Upgrade EJB3 for fix to collect invocation stats
- Closed