0 Replies Latest reply on Oct 17, 2003 5:40 AM by Tim

    [org.jboss.ejb.plugins.LogInterceptor] Unexpected Error: in

    Tim Newbie

      Having defined a *.aop.xml file to provide method level logging my code looped in the inital call to a EJB.

      The XML code is



      <interceptor-ref name="logging"/>

      <interceptor-pointcut class="uk.org.timalibentley.*">

      <stack-ref name="Logging"/>

      </interceptor-pointcut>


      the stack trace is :
      at org.jboss.logging.Log4jLoggerPlugin.isDebugEnabled(Log4jLoggerPlugin.java:116)
      at org.jboss.logging.Logger.isDebugEnabled(Logger.java:133)
      at org.jboss.aop.logging.CallLoggingInterceptor.invoke(CallLoggingInterceptor.java:35)
      at org.jboss.aop.Invocation.invokeNext(Invocation.java:83)
      at org.jboss.aop.ClassAdvisor.invokeMethod(ClassAdvisor.java:758)
      at org.jboss.aop.ClassAdvisor.invokeMethod(ClassAdvisor.java:732)
      at uk.org.timalibentley.accounts.business.ejb.UpdateEJB._added_m$0(UpdateEJB.java)
      at uk.org.timalibentley.accounts.business.ejb.UpdateEJB.setSessionContext(UpdateEJB.java)
      at uk.org.timalibentley.accounts.business.ejb.UpdateSession.uk$org$timalibentley$accounts$business$ejb$UpdateSession$setSessionContext$WithoutAdvisement(UpdateSession.java:26)
      at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.aop.ClassAdvisor$MethodTailInterceptor.invoke(ClassAdvisor.java:892)
      at org.jboss.aop.Invocation.invokeNext(Invocation.java:83)
      at org.jboss.aop.logging.CallLoggingInterceptor.invoke(CallLoggingInterceptor.java:45)
      at org.jboss.aop.Invocation.invokeNext(Invocation.java:83)
      at org.jboss.aop.ClassAdvisor.invokeMethod(ClassAdvisor.java:758)
      at org.jboss.aop.ClassAdvisor.invokeMethod(ClassAdvisor.java:732)
      at uk.org.timalibentley.accounts.business.ejb.UpdateEJB._added_m$0(UpdateEJB.java)
      at uk.org.timalibentley.accounts.business.ejb.UpdateEJB.setSessionContext(UpdateEJB.java)
      at uk.org.timalibentley.accounts.business.ejb.UpdateSession.uk$org$timalibentley$accounts$business$ejb$UpdateSession$setSessionContext$WithoutAdvisement(UpdateSession.java:26)
      at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.aop.ClassAdvisor$MethodTailInterceptor.invoke(ClassAdvisor.java:892)
      at org.jboss.aop.Invocation.invokeNext(Invocation.java:83)
      at org.jboss.aop.logging.CallLoggingInterceptor.invoke(CallLoggingInterceptor.java:45)
      at org.jboss.aop.Invocation.invokeNext(Invocation.java:83)
      at org.jboss.aop.ClassAdvisor.invokeMethod(ClassAdvisor.java:758)
      at org.jboss.aop.ClassAdvisor.invokeMethod(ClassAdvisor.java:732)
      at uk.org.timalibentley.accounts.business.ejb.UpdateEJB._added_m$0(UpdateEJB.java)
      at uk.org.timalibentley.accounts.business.ejb.UpdateEJB.setSessionContext(UpdateEJB.java)
      at uk.org.timalibentley.accounts.business.ejb.UpdateSession.uk$org$timalibentley$accounts$business$ejb$UpdateSession$setSessionContext$WithoutAdvisement(UpdateSession.java:26)
      at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.aop.ClassAdvisor$MethodTailInterceptor.invoke(ClassAdvisor.java:892)
      at org.jboss.aop.Invocation.invokeNext(Invocation.java:83)
      at org.jboss.aop.logging.CallLoggingInterceptor.invoke(CallLoggingInterceptor.java:45)
      at org.jboss.aop.Invocation.invokeNext(Invocation.java:83)
      at org.jboss.aop.ClassAdvisor.invokeMethod(ClassAdvisor.java:758)
      at org.jboss.aop.ClassAdvisor.invokeMethod(ClassAdvisor.java:732)
      at uk.org.timalibentley.accounts.business.ejb.UpdateEJB._added_m$0(UpdateEJB.java)
      at uk.org.timalibentley.accounts.business.ejb.UpdateEJB.setSessionContext(UpdateEJB.java)
      at uk.org.timalibentley.accounts.business.ejb.UpdateSession.uk$org$timalibentley$accounts$business$ejb$UpdateSession$setSessionContext$WithoutAdvisement(UpdateSession.java:26)
      at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.aop.ClassAdvisor$MethodTailInterceptor.invoke(ClassAdvisor.java:892)
      at org.jboss.aop.Invocation.invokeNext(Invocation.java:83)
      at org.jboss.aop.logging.CallLoggingInterceptor.invoke(CallLoggingInterceptor.java:45)
      at org.jboss.aop.Invocation.invokeNext(Invocation.java:83)
      at org.jboss.aop.ClassAdvisor.invokeMethod(ClassAdvisor.java:758)
      at org.jboss.aop.ClassAdvisor.invokeMethod(ClassAdvisor.java:732)
      at uk.org.timalibentley.accounts.business.ejb.UpdateEJB._added_m$0(UpdateEJB.java)
      at uk.org.timalibentley.accounts.business.ejb.UpdateEJB.setSessionContext(UpdateEJB.java)
      at uk.org.timalibentley.accounts.business.ejb.UpdateSession.uk$org$timalibentley$accounts$business$ejb$UpdateSession$setSessionContext$WithoutAdvisement(UpdateSession.java:26)
      at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.aop.ClassAdvisor$MethodTailInterceptor.invoke(ClassAdvisor.java:892)
      at org.jboss.aop.Invocation.invokeNext(Invocation.java:83)
      at org.jboss.aop.logging.CallLoggingInterceptor.invoke(CallLoggingInterceptor.java:45)
      at org.jboss.aop.Invocation.invokeNext(Invocation.java:83)
      at org.jboss.aop.ClassAdvisor.invokeMethod(ClassAdvisor.java:758)
      at org.jboss.aop.ClassAdvisor.invokeMethod(ClassAdvisor.java:732)
      at uk.org.timalibentley.accounts.business.ejb.UpdateEJB._added_m$0(UpdateEJB.java)
      at uk.org.timalibentley.accounts.business.ejb.UpdateEJB.setSessionContext(UpdateEJB.java)
      at uk.org.timalibentley.accounts.business.ejb.UpdateSession.uk$org$timalibentley$accounts$business$ejb$UpdateSession$setSessionContext$WithoutAdvisement(UpdateSession.java:26)
      at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.aop.ClassAdvisor$MethodTailInterceptor.invoke(ClassAdvisor.java:892)
      at org.jboss.aop.Invocation.invokeNext(Invocation.java:83)
      at org.jboss.aop.logging.CallLoggingInterceptor.invoke(CallLoggingInterceptor.java:45)
      at org.jboss.aop.Invocation.invokeNext(Invocation.java:83)
      at org.jboss.aop.ClassAdvisor.invokeMethod(ClassAdvisor.java:758)
      at org.jboss.aop.ClassAdvisor.invokeMethod(ClassAdvisor.java:732)
      at uk.org.timalibentley.accounts.business.ejb.UpdateEJB._added_m$0(UpdateEJB.java)
      at uk.org.timalibentley.accounts.business.ejb.UpdateEJB.setSessionContext(UpdateEJB.java)
      at uk.org.timalibentley.accounts.business.ejb.UpdateSession.uk$org$timalibentley$accounts$business$ejb$UpdateSession$setSessionContext$WithoutAdvisement(UpdateSession.java:26)
      at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.aop.ClassAdvisor$MethodTailInterceptor.invoke(ClassAdvisor.java:892)
      at org.jboss.aop.Invocation.invokeNext(Invocation.java:83)
      at org.jboss.aop.logging.CallLoggingInterceptor.invoke(CallLoggingInterceptor.java:45)
      at org.jboss.aop.Invocation.invokeNext(Invocation.java:83)
      at org.jboss.aop.ClassAdvisor.invokeMethod(ClassAdvisor.java:758)
      at org.jboss.aop.ClassAdvisor.invokeMethod(ClassAdvisor.java:732)
      at uk.org.timalibentley.accounts.business.ejb.UpdateEJB._added_m$0(UpdateEJB.java)
      at uk.org.timalibentley.accounts.business.ejb.UpdateEJB.setSessionContext(UpdateEJB.java)
      at uk.org.timalibentley.accounts.business.ejb.UpdateSession.uk$org$timalibentley$accounts$business$ejb$UpdateSession$setSessionContext$WithoutAdvisement(UpdateSession.java:26)
      at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.aop.ClassAdvisor$MethodTailInterceptor.invoke(ClassAdvisor.java:892)
      at org.jboss.aop.Invocation.invokeNext(Invocation.java:83)
      at org.jboss.aop.logging.CallLoggingInterceptor.invoke(CallLoggingInterceptor.java:45)
      at org.jboss.aop.Invocation.invokeNext(Invocation.java:83)
      at org.jboss.aop.ClassAdvisor.invokeMethod(ClassAdvisor.java:758)
      at org.jboss.aop.ClassAdvisor.invokeMethod(ClassAdvisor.java:732)
      at uk.org.timalibentley.accounts.business.ejb.UpdateEJB._added_m$0(UpdateEJB.java)
      at uk.org.timalibentley.accounts.business.ejb.UpdateEJB.setSessionContext(UpdateEJB.java)
      at uk.org.timalibentley.accounts.business.ejb.UpdateSession.uk$org$timalibentley$accounts$business$ejb$UpdateSession$setSessionContext$WithoutAdvisement(UpdateSession.java:26)


      Is my problem how I have defined the aop xml. Or should I not be using the jboss interceptors for logging.