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 <tx:annotation-driven /> giving error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "<tx:annotation-driven /> giving error" Watch "<tx:annotation-driven /> giving error" New topic
Author

<tx:annotation-driven /> giving error

Ankit Chandrawat
Ranch Hand

Joined: Jan 03, 2008
Posts: 87
Hi,

I am using <tx:annotation-driven /> as shown :



and the error it is giving is :

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'chatSessionDAO' defined in file [/local/jboss-eap-4.2/jboss-as/server/mercer02/deploy/mercerhr.ear/mercer.war/WEB-INF/classes/com/mercer/chat/app/dao/ChatSessionDAO.class]: Initialization of bean failed; nested exception is java.lang.VerifyError: (class: com/mercer/chat/app/dao/ChatSessionDAO$$EnhancerByCGLIB$$c2bd3f90$$FastClassByCGLIB$$bc114739, method: invoke signature: (ILjava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;) Inconsistent stack height 2 != 1


here is my ChatSessionDAO class :

Vyas Sanzgiri
Ranch Hand

Joined: Jun 16, 2007
Posts: 686

AspectJ bug I guess: http://forum.springsource.org/showthread.php?51455-java.lang.VerifyError-method-name-here-Inconsistent-stack-height-1-!-0


===Vyas Sanzgiri===
My Blog
Ankit Chandrawat
Ranch Hand

Joined: Jan 03, 2008
Posts: 87
But I am not using AspectJ.
Miku Ranjan
Ranch Hand

Joined: Oct 11, 2011
Posts: 98
Hi,
Try to do these in a transaction.
Ankit Chandrawat
Ranch Hand

Joined: Jan 03, 2008
Posts: 87
Hi Miku,

Can you be more precise please, exactly what and how needs to be done ?

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: <tx:annotation-driven /> giving error