4 Replies Latest reply on Dec 8, 2004 8:41 AM by Bill Burke

    AOP metrics ex. doesn't work after redeploy :(

    Dirk Hesse Newbie

      Hello


      we've tried the metrics example from the http://docs.jboss.org/aop/aspect-framework/userguide/en/pdf/jbossaop_userguide.pdf within our own bank project.
      After the first deploy it works very well. But after the second time it doesnt work anymore. Any help would be appreciated.



      jboss-aop.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <aop>
       <bind pointcut="execution(public boolean de.bootlab.bank.BankSessionBean->ueberweisen(..))">
       <interceptor class="test.Metrics"/>
       </bind>
      </aop>
      


      metrics.java:
      package test;
      
      import java.lang.reflect.Method;
      import org.jboss.aop.advice.Interceptor;
      import org.jboss.aop.joinpoint.Invocation;
      import org.jboss.aop.joinpoint.MethodInvocation;
      /*
       * Created on 15.10.2004
       */
      
      
      public class Metrics implements Interceptor {
      
       public String getName() { return "Metrics"; }
      
       public Object invoke(Invocation invo) throws Throwable {
       long start = System.currentTimeMillis();
       try{
       Object value = invo.invokeNext();
       System.out.println("Return value: "+value);
       return value;
       }catch(Exception ex){
       throw ex;
       }finally{
       long end = System.currentTimeMillis() - start;
       Method m = ((MethodInvocation)invo).getMethod();
       System.out.println("Method " + m.toString() + " Time needed: " + end + " ms");
       }
       }
      
      }
      

      StackTrace:
      14:39:50,841 ERROR [LogInterceptor] RuntimeException in method: public abstract
      boolean de.bootlab.bank.Bank.ueberweisen(de.bootlab.bank.Kunde,java.lang.Integer
      ,java.lang.Integer,java.lang.Double) throws java.rmi.RemoteException:
      java.lang.NullPointerException
       at de.bootlab.bank.BankSessionBean.ueberweisen(BankSessionBean.java)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
       at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
       at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
       at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:113)
       at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
       at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
       at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
       at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:316)
       at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:149)
       at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:128)
       at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
       at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
       at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
       at org.jboss.ejb.Container.invoke(Container.java:854)
       at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
       at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
       at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)
       at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:90)
       at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
       at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
       at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:97)
       at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
       at $Proxy108.ueberweisen(Unknown Source)
       at de.bootlab.bank.BankContainer.ueberweisen(BankContainer.java:85)
       at DefaultController$Ueberweisung.startSequence(DefaultController.java:272)
       at DefaultController.selectView(DefaultController.java:61)
       at BankServlet.doGet(BankServlet.java:32)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
       at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
       at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:44)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:169)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
       at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
       at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
       at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
       at java.lang.Thread.run(Thread.java:595)
      14:39:50,885 INFO [STDOUT] java.rmi.ServerException: RuntimeException; nested exception is:
       java.lang.NullPointerException
      14:39:50,887 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:361)
      14:39:50,888 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
      14:39:50,888 INFO [STDOUT] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
      14:39:50,889 INFO [STDOUT] at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
      14:39:50,889 INFO [STDOUT] at org.jboss.ejb.Container.invoke(Container.java:854)
      14:39:50,889 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
      14:39:50,890 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      14:39:50,890 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:585)
      14:39:50,891 INFO [STDOUT] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      14:39:50,891 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      14:39:50,908 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      14:39:50,909 INFO [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
      14:39:50,910 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
      14:39:50,911 INFO [STDOUT] at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
      14:39:50,912 INFO [STDOUT] at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)
      14:39:50,914 INFO [STDOUT] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:90)
      14:39:50,914 INFO [STDOUT] at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
      14:39:50,915 INFO [STDOUT] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
      14:39:50,917 INFO [STDOUT] at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:97)
      14:39:50,918 INFO [STDOUT] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
      14:39:50,919 INFO [STDOUT] at $Proxy108.ueberweisen(Unknown Source)
      14:39:50,919 INFO [STDOUT] at de.bootlab.bank.BankContainer.ueberweisen(BankContainer.java:85)
      14:39:50,919 INFO [STDOUT] at DefaultController$Ueberweisung.startSequence(DefaultController.java:272)
      14:39:50,920 INFO [STDOUT] at DefaultController.selectView(DefaultController.java:61)
      14:39:50,920 INFO [STDOUT] at BankServlet.doGet(BankServlet.java:32)
      14:39:50,921 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      14:39:50,921 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      14:39:50,922 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      14:39:50,922 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      14:39:50,939 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
      14:39:50,939 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
      14:39:50,940 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      14:39:50,940 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
      14:39:50,941 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      14:39:50,941 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      14:39:50,941 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
      14:39:50,942 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
      14:39:50,942 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      14:39:50,943 INFO [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:44)
      14:39:50,943 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      14:39:50,943 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:169)
      14:39:50,944 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      14:39:50,944 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      14:39:50,945 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
      14:39:50,945 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      14:39:50,946 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
      14:39:50,946 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      14:39:50,947 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      14:39:50,947 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      14:39:50,948 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      14:39:50,948 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      14:39:50,948 INFO [STDOUT] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
      14:39:50,949 INFO [STDOUT] at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
      14:39:50,949 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
      14:39:50,949 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
      14:39:50,950 INFO [STDOUT] at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
      14:39:50,950 INFO [STDOUT] at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
      14:39:50,951 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)
      14:39:50,951 INFO [STDOUT] Caused by: java.lang.NullPointerException
      14:39:50,952 INFO [STDOUT] at de.bootlab.bank.BankSessionBean.ueberweisen(BankSessionBean.java)
      14:39:50,969 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      14:39:50,970 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      14:39:50,970 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      14:39:50,970 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:585)
      14:39:50,971 INFO [STDOUT] at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
      14:39:50,971 INFO [STDOUT] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
      14:39:50,972 INFO [STDOUT] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
      14:39:50,972 INFO [STDOUT] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:113)
      14:39:50,972 INFO [STDOUT] at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
      14:39:50,973 INFO [STDOUT] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
      14:39:50,974 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
      14:39:50,974 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:316)
      14:39:50,974 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:149)
      14:39:50,975 INFO [STDOUT] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:128)
      14:39:50,975 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
      14:39:50,975 INFO [STDOUT] ... 56 more
      


        • 1. AOP metrics ex. doesn't work after redeploy :(
          Peter Fouquet Newbie

          Hello


          we've tried the metrics example from the http://docs.jboss.org/aop/aspect-framework/userguide/en/pdf/jbossaop_userguide.pdf within our own bank project.
          After the first deploy it works very well. But after the second time it doesnt work anymore. Any help would be appreciated.



          jboss-aop.xml:

          <?xml version="1.0" encoding="UTF-8"?>
          <aop>
           <bind pointcut="execution(public boolean de.bootlab.bank.BankSessionBean->ueberweisen(..))">
           <interceptor class="test.Metrics"/>
           </bind>
          </aop>
          


          metrics.java:
          package test;
          
          import java.lang.reflect.Method;
          import org.jboss.aop.advice.Interceptor;
          import org.jboss.aop.joinpoint.Invocation;
          import org.jboss.aop.joinpoint.MethodInvocation;
          /*
           * Created on 15.10.2004
           */
          
          
          public class Metrics implements Interceptor {
          
           public String getName() { return "Metrics"; }
          
           public Object invoke(Invocation invo) throws Throwable {
           long start = System.currentTimeMillis();
           try{
           Object value = invo.invokeNext();
           System.out.println("Return value: "+value);
           return value;
           }catch(Exception ex){
           throw ex;
           }finally{
           long end = System.currentTimeMillis() - start;
           Method m = ((MethodInvocation)invo).getMethod();
           System.out.println("Method " + m.toString() + " Time needed: " + end + " ms");
           }
           }
          
          }
          

          StackTrace:
          14:39:50,841 ERROR [LogInterceptor] RuntimeException in method: public abstract
          boolean de.bootlab.bank.Bank.ueberweisen(de.bootlab.bank.Kunde,java.lang.Integer
          ,java.lang.Integer,java.lang.Double) throws java.rmi.RemoteException:
          java.lang.NullPointerException
           at de.bootlab.bank.BankSessionBean.ueberweisen(BankSessionBean.java)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:585)
           at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
           at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
           at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
           at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:113)
           at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
           at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
           at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
           at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:316)
           at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:149)
           at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:128)
           at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
           at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
           at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
           at org.jboss.ejb.Container.invoke(Container.java:854)
           at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:585)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
           at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
           at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)
           at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:90)
           at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
           at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
           at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:97)
           at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
           at $Proxy108.ueberweisen(Unknown Source)
           at de.bootlab.bank.BankContainer.ueberweisen(BankContainer.java:85)
           at DefaultController$Ueberweisung.startSequence(DefaultController.java:272)
           at DefaultController.selectView(DefaultController.java:61)
           at BankServlet.doGet(BankServlet.java:32)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
           at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
           at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
           at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
           at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
           at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:44)
           at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:169)
           at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
           at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
           at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
           at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
           at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
           at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
           at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
           at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
           at java.lang.Thread.run(Thread.java:595)
          14:39:50,885 INFO [STDOUT] java.rmi.ServerException: RuntimeException; nested exception is:
           java.lang.NullPointerException
          14:39:50,887 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:361)
          14:39:50,888 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
          14:39:50,888 INFO [STDOUT] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
          14:39:50,889 INFO [STDOUT] at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
          14:39:50,889 INFO [STDOUT] at org.jboss.ejb.Container.invoke(Container.java:854)
          14:39:50,889 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
          14:39:50,890 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          14:39:50,890 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:585)
          14:39:50,891 INFO [STDOUT] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
          14:39:50,891 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          14:39:50,908 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
          14:39:50,909 INFO [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
          14:39:50,910 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
          14:39:50,911 INFO [STDOUT] at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
          14:39:50,912 INFO [STDOUT] at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)
          14:39:50,914 INFO [STDOUT] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:90)
          14:39:50,914 INFO [STDOUT] at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
          14:39:50,915 INFO [STDOUT] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
          14:39:50,917 INFO [STDOUT] at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:97)
          14:39:50,918 INFO [STDOUT] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
          14:39:50,919 INFO [STDOUT] at $Proxy108.ueberweisen(Unknown Source)
          14:39:50,919 INFO [STDOUT] at de.bootlab.bank.BankContainer.ueberweisen(BankContainer.java:85)
          14:39:50,919 INFO [STDOUT] at DefaultController$Ueberweisung.startSequence(DefaultController.java:272)
          14:39:50,920 INFO [STDOUT] at DefaultController.selectView(DefaultController.java:61)
          14:39:50,920 INFO [STDOUT] at BankServlet.doGet(BankServlet.java:32)
          14:39:50,921 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
          14:39:50,921 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
          14:39:50,922 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
          14:39:50,922 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
          14:39:50,939 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
          14:39:50,939 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
          14:39:50,940 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
          14:39:50,940 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
          14:39:50,941 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
          14:39:50,941 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
          14:39:50,941 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
          14:39:50,942 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
          14:39:50,942 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
          14:39:50,943 INFO [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:44)
          14:39:50,943 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
          14:39:50,943 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:169)
          14:39:50,944 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
          14:39:50,944 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
          14:39:50,945 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
          14:39:50,945 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
          14:39:50,946 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
          14:39:50,946 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
          14:39:50,947 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
          14:39:50,947 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          14:39:50,948 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
          14:39:50,948 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
          14:39:50,948 INFO [STDOUT] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
          14:39:50,949 INFO [STDOUT] at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
          14:39:50,949 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
          14:39:50,949 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
          14:39:50,950 INFO [STDOUT] at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
          14:39:50,950 INFO [STDOUT] at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
          14:39:50,951 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)
          14:39:50,951 INFO [STDOUT] Caused by: java.lang.NullPointerException
          14:39:50,952 INFO [STDOUT] at de.bootlab.bank.BankSessionBean.ueberweisen(BankSessionBean.java)
          14:39:50,969 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          14:39:50,970 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          14:39:50,970 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          14:39:50,970 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:585)
          14:39:50,971 INFO [STDOUT] at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
          14:39:50,971 INFO [STDOUT] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
          14:39:50,972 INFO [STDOUT] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
          14:39:50,972 INFO [STDOUT] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:113)
          14:39:50,972 INFO [STDOUT] at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
          14:39:50,973 INFO [STDOUT] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
          14:39:50,974 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
          14:39:50,974 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:316)
          14:39:50,974 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:149)
          14:39:50,975 INFO [STDOUT] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:128)
          14:39:50,975 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
          14:39:50,975 INFO [STDOUT] ... 56 more
          


          • 2. Re: AOP metrics ex. doesn't work after redeploy :(
            Dirk Hesse Newbie

            Yes we're using jboss 4.0.0 too.

            JBoss 4.0.0 (build: CVSTag=JBoss_4_0_0 date=200409200418)

            • 3. Re: AOP metrics ex. doesn't work after redeploy :(
              Dirk Hesse Newbie

              Since post editing is disabled i have some infos to provide for better understanding.

              We use jdk 1.5 and aop final 1.0.0. The classes are precompiled(aop'ed) and then copied into the deploy folder as an *.ear.

              thx for help
              d.hesse

              • 4. Re: AOP metrics ex. doesn't work after redeploy :(
                Bill Burke Master

                I'm pretty sure we fixed all the redeployment problems in current CVS by redesigning how a class binds to its aspects. I'll try to incorporate your scenario into the testsuite.

                Thanks for your patience,

                Bill