File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Autoproxying @AspectJ aspects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Autoproxying @AspectJ aspects" Watch "Autoproxying @AspectJ aspects" New topic
Author

Autoproxying @AspectJ aspects

Vivek Alampally
Ranch Hand

Joined: Jul 10, 2008
Posts: 67
Hello everybody,
I am trying to execute the program given in section 4.3.2 in Spring in action 2nd edition. So I defined following files.

Audience.java
---------------------


applicationContext.xml
------------------------------------

TestMain.java
-----------------------

Instrument.java
-------------------------

Instrumentalist.java
--------------------------------

PerformanceException.java
--------------------------------------


Performer.java
-----------------


Saxophone.java
--------------------


I am getting the following exception

Can any body tell where I am doing wrong!!! I have posted this in another forum also(http://www.manning-sandbox.com/thread.jspa?threadID=38827&tstart=0)

Thanks
Vivek
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

@AfterThrowing("perfomance()") -> @AfterThrowing("performance()")


[My Blog]
All roads lead to JavaRanch
Vivek Alampally
Ranch Hand

Joined: Jul 10, 2008
Posts: 67
Thank you so much. I did the above mentioned change. Now it works.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Don't forget to write that at Manning's forum !
Syed Iqbal
Greenhorn

Joined: Mar 19, 2011
Posts: 5
I had a similar problem. Thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Autoproxying @AspectJ aspects
 
Similar Threads
AOP logging throws exception
Problem with Spring AOP
Advice PointCut methods not being called?
Not able to test AOP using AspectJ
AOP not getting invoked on my Target Bean Method --> Singer.perform() method