Yep, you can't mix client and server interceptors when using the around and within attributes of @Interceptor.
@Interceptor(type=InterceptorType.CLIENT,
around=AsynchronousInterceptor.class, within = RollbackInterceptor.class)
SecurityInterceptor is a client interceptor, RollbackInterceptor is a server interceptor.
Looks like the fix has been made.
In regards to the original problem and how it was fixed, I don't understand why any interceptor runs for hashCode() and equals(), or at least I would think it would be a rule to intercept these methods rather than an exception. I think perhaps the root interceptor should have an opt-in policy for methods on java.lang.Object.
-Dan
A change in 2.1 branch in the last 10 days or so had this effect on wiki test run, It's probably Shane's change on SecurityInterceptor r10137 related to https://jira.jboss.org/jira/browse/JBSEAM-4003:
[testng] WARN [org.jboss.seam.Component] Interceptor class org.jboss.seam.security.SecurityInterceptor has different type than within interceptor class org.jboss.seam.transaction.RollbackInterceptor
[testng] WARN [org.jboss.seam.Component] Interceptor class org.jboss.seam.security.SecurityInterceptor has different type than within interceptor class org.jboss.seam.transaction.RollbackInterceptor
[testng] WARN [org.jboss.seam.Component] Interceptor class org.jboss.seam.security.SecurityInterceptor has different type than within interceptor class org.jboss.seam.transaction.RollbackInterceptor
[testng] WARN [org.jboss.seam.Component] Interceptor class org.jboss.seam.security.SecurityInterceptor has different type than within interceptor class org.jboss.seam.transaction.RollbackInterceptor
[testng] WARN [org.jboss.seam.Component] Interceptor class org.jboss.seam.security.SecurityInterceptor has different type than within interceptor class org.jboss.seam.transaction.RollbackInterceptor
[testng] WARN [org.jboss.seam.Component] Interceptor class org.jboss.seam.security.SecurityInterceptor has different type than within interceptor class org.jboss.seam.transaction.RollbackInterceptor
[testng] WARN [org.jboss.seam.Component] Interceptor class org.jboss.seam.security.SecurityInterceptor has different type than within interceptor class org.jboss.seam.transaction.RollbackInterceptor
[testng] WARN [org.jboss.seam.Component] Interceptor class org.jboss.seam.security.SecurityInterceptor has different type than within interceptor class org.jboss.seam.transaction.RollbackInterceptor
[testng] WARN [org.jboss.seam.Component] Interceptor class org.jboss.seam.security.SecurityInterceptor has different type than within interceptor class org.jboss.seam.transaction.RollbackInterceptor
[testng] WARN [org.jboss.seam.Component] Interceptor class org.jboss.seam.security.SecurityInterceptor has different type than within interceptor class org.jboss.seam.transaction.RollbackInterceptor
[testng] WARN [org.jboss.seam.Component] Interceptor class org.jboss.seam.security.SecurityInterceptor has different type than within interceptor class org.jboss.seam.transaction.RollbackInterceptor
[testng] WARN [org.jboss.seam.Component] Interceptor class org.jboss.seam.security.SecurityInterceptor has different type than within interceptor class org.jboss.seam.transaction.RollbackInterceptor
[testng] WARN [org.jboss.seam.Component] Interceptor class org.jboss.seam.security.SecurityInterceptor has different type than within interceptor class org.jboss.seam.transaction.RollbackInterceptor
...
_______________________________________________
seam-dev mailing list
seam-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/seam-dev