This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.
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.