You seem to have uncovered a curious bug. I can't see anything immediately that should cause this issue. Can you identify the version of spring python you are using?
Sent from my iPhone
On Jul 27, 2011, at 1:16 AM, Daoyu <z....@qq...> wrote:
> Hey everyone,
>
> I got a strange problem, get maximum recursion depth exceeded when I try to indicate more than 1 interceptor. Here's the code:
>
> @Object
> def single(self):
> a1 = RegexpMethodPointcutAdvisor(
> advice=[SecurityAOP()],
> patterns=[".*delete.*"])
> a2 = RegexpMethodPointcutAdvisor(
> advice=[LogAOP()],
> patterns=[".*delete.*"])
> return ProxyFactoryObject(
> target=Person(),
> interceptors=[a1,a2])
>
> If set the "interceptors=[a1]", or "interceptors=[a2]" it works perfectly. However, maximum recursion depth exceeded for "interceptors=[a1,a2]" .
>
> Also I notice there's another way to achieve interceptor chain, which the above code could change to:
>
> @Object
> def single(self):
> a1 = RegexpMethodPointcutAdvisor(
> advice=[SecurityAOP(),LogAOP()],
> patterns=[".*delete.*"])
> return ProxyFactoryObject(
> target=Person(),
> interceptors=[a1])
>
> it also works fine, with 2 advice into same pointcut.
>
> Anyone could tell me what's wrong with the 1st one?
>
> --
> (sorry for the last email I use a wrong mail box.)
> Daoyu
> _______________________________________________
> springpython-users mailing list
> spr...@li...
> https://lists.springsource.com/listmanager/listinfo/springpython-users
> Visit our discussion forum at http://forum.springframework.org/forumdisplay.php?f=45
|