Details

    • Type: Bug Bug
    • Status: Closed Closed (View Workflow)
    • Priority: Critical Critical
    • Resolution: Done
    • Affects Version/s: JBossAS-5.1.0.GA
    • Fix Version/s: 6.0.0.M1
    • Component/s: None
    • Security Level: Public (Everyone can see)
    • Similar Issues:
      Show 10 results 

      Description

      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.

        Issue Links

          Activity

          Hide
          Lukas Krejci
          added a comment -

          This occurs because of org.jboss.ebj3.metrics.deployer.InvocationStatisticMetaMapper.createMetaValue() method in the jboss-ejb3-metrics-deployer project.

          Show
          Lukas Krejci
          added a comment - This occurs because of org.jboss.ebj3.metrics.deployer.InvocationStatisticMetaMapper.createMetaValue() method in the jboss-ejb3-metrics-deployer project.
          Hide
          Andrew Rubinger
          added a comment -

          The integration test in JBPAPP is coming up fine. What's the test environment leading to this exception? I suspect a mismatch somewhere.

          Show
          Andrew Rubinger
          added a comment - The integration test in JBPAPP is coming up fine. What's the test environment leading to this exception? I suspect a mismatch somewhere.
          Hide
          Andrew Rubinger
          added a comment -

          I'll have a look and see what is causing the CCE, and more importantly, why the integration test does not reveal it.

          Show
          Andrew Rubinger
          added a comment - I'll have a look and see what is causing the CCE, and more importantly, why the integration test does not reveal it.
          Hide
          Lukas Krejci
          added a comment -

          The integration test is succeeding because there are no methods invoked on the EJBs (see the TODOs in Ejb3MetricsUnitTestCase.validateInvocationStats() method). In Jopr case we actually invoke the methods on the EJBs. The stats collection fails only then.

          Show
          Lukas Krejci
          added a comment - The integration test is succeeding because there are no methods invoked on the EJBs (see the TODOs in Ejb3MetricsUnitTestCase.validateInvocationStats() method). In Jopr case we actually invoke the methods on the EJBs. The stats collection fails only then.
          Hide
          Andrew Rubinger
          added a comment -

          Updated the test case to show the errors. Resolved the linked dependent issues. Must release EJB3 and integrate into Branch_5_x, then merge into JBPAPP.

          Show
          Andrew Rubinger
          added a comment - Updated the test case to show the errors. Resolved the linked dependent issues. Must release EJB3 and integrate into Branch_5_x, then merge into JBPAPP.
          Hide
          Andrew Rubinger
          added a comment -

          Tests passing in Branch_5_x. Failing in trunk for unrelated reasons; @see JBAS-7112 for that.

          Show
          Andrew Rubinger
          added a comment - Tests passing in Branch_5_x. Failing in trunk for unrelated reasons; @see JBAS-7112 for that.
          Hide
          Andrew Rubinger
          added a comment -

          If this needs to go to JBPAPP, please get approval and open a JBPAPP issue.

          Show
          Andrew Rubinger
          added a comment - If this needs to go to JBPAPP, please get approval and open a JBPAPP issue.

            People

            • Assignee:
              Andrew Rubinger
              Reporter:
              Lukas Krejci
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: