Welcome to the new Spring.io forums!
If this is your first visit, be sure to check out the
by clicking the link above, and for security reasons, use the
forgot password link to reset your password..
You may have to register before you can post: click the register
link above to proceed. To start viewing messages, select the forum that you want to visit
from the selection below.
No announcement yet.
AOP over HttpInvokerProxyFactoryBeanPage Title Module
Seems like this class doesn't extend org.springframework.aop.framework.ProxyConfig, so how is it possible to use other interceptors with this? The JVM gen'd proxy is a final class so it can't be proxied again by CGlib.
Thanks for the feedback. I am trying to figure out how to set this up. It seems to work if I use the HttpClientInvokerInterceptor as the only interceptor with ProxyFactoryBean (and specify the proxyInterfaces). However when I add a second interceptor before it, SimpleTraceInterceptor in my case, I get odd exceptions. I've tried a few configurations and here is the one I am working with right now:
It starts up alright but whenever I run a method on the proxy, I just get a NullPointerException like so:
at org.springframework.aop.interceptor.SimpleTraceInt erceptor.getInvocationDescription(SimpleTraceInter ceptor.java:74)
at org.springframework.aop.interceptor.SimpleTraceInt erceptor.invokeUnderTrace(SimpleTraceInterceptor.j ava:55)
at org.springframework.aop.interceptor.AbstractTraceI nterceptor.invoke(AbstractTraceInterceptor.java:77 )
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :144)
at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:174)
at $Proxy0.getBillCycleDelay(Unknown Source)
Any ideas on this one? Maybe I have configured it wrong? Thanks.