This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Aspect Oriented Programming and the fly likes Spring AOP @AfterThrowing Advice not being executed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Frameworks » Aspect Oriented Programming
Bookmark "Spring AOP @AfterThrowing Advice not being executed" Watch "Spring AOP @AfterThrowing Advice not being executed" New topic

Spring AOP @AfterThrowing Advice not being executed

Roshni Chandrashekar

Joined: Jan 14, 2012
Posts: 5
The @AfterThrowing advice I have defined is not getting executed. Could some one take a look and please help me out? Below is the code I am using.




TestAOP unit test class

Bill Gorder

Joined: Mar 07, 2010
Posts: 1652

You don't have an interface so the proxy is not being called. If you are going to go this route you need to force the use of CGLIB class proxying (or use full AspectJ rather than Springs)


[How To Ask Questions][Read before you PM me]
GeeCON Prague 2014
subject: Spring AOP @AfterThrowing Advice not being executed