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 Type AudienceAdvice is inconsistent error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Spring
Reply Bookmark "Type AudienceAdvice is inconsistent error" Watch "Type AudienceAdvice is inconsistent error" New topic
Author

Type AudienceAdvice is inconsistent error

Gunjan Kumar
Ranch Hand

Joined: Mar 26, 2007
Posts: 73
Hi

I am trying "Spring in Action" chapter4 example

when i am trying to implements BeforeAdvice, it shows following error in eclipse

- The hierarchy of the type AudienceAdvice is inconsistent
- The type org.aopalliance.aop.Advice cannot be resolved. It is indirectly referenced from
required .class files


I have included all libraries of spring-framework-3.0.3.RELEASE and asm-all-3.2.jar,commons-logging-1.1.1.jar.

Could anyone suggest me how to rectify this error in eclipse as i am not able to build.

Any help in this regard would be highly appreciated

Thanks
Gunjan


Gunjan Kumar
SCJP 1.5
Mark Secrist
Ranch Hand

Joined: Jul 01, 2003
Posts: 89
You could be missing the aopalliance-1.0.jar file. I don't believe this is directly part of the distribution (at least it wasn't for spring-framework-3.0.0.RELEASE). I've since been building with the STS and the Spring Template Project, which builds out a Maven-based project with all the basic dependencies pre-set in the pom.xml file.

If you need to download the jar file, you should be able to find it at: http://sourceforge.net/projects/aopalliance/files/
Son Pham Viet
Greenhorn

Joined: Oct 15, 2010
Posts: 1
i also meet this error, Thanks...


Best regards...
Son Pham Viet
Software Engineering Faculty -
University of Information Technology,VietName
Rajagopal PathaSarathi
Greenhorn

Joined: Feb 14, 2011
Posts: 3
Thanks a lot
Syed Iqbal
Greenhorn

Joined: Mar 19, 2011
Posts: 5
Thank you
 
 
subject: Type AudienceAdvice is inconsistent error
 
Threads others viewed
The hierarchy of type HomeController is inconsistent
Problem with setting the Pointcut and advice
error while trying to configure build path
Methods on advice are not being called
batchUpdate problem
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture