Use a decompiler like the one at to check the bytecode which the Scala compiler is generating. It may well be that it isn't doing what you think.


Too much time passed from the time you asked the question, but I'm gonna answer it maybe this is someone else problem,

This problem occurs when Spring is using JDK proxy. As in JDK proxy all the classes should have 'Interface' and your DivisionSelectOptionsCache class doesn't implement any interfaces then there is such a problem, Two solution for that:

  • Implement interface for all classes

  • Use CGLIB proxy

In order to use CGLib proxy, you should add the lib in the lib folder and use

<aop:aspectj-autoproxy proxy-target-class="true"/>

in application-context. The default value of proxy-target-class is false, which is JDK proxy.

Related Query

More Query from same tag