Hi,
I'm a new user to hibernate, I run the tutorial(doc/tutorial) with ant command line:ant run -Daction=store, but the result said that one exception happend in HibernateUtil, the exception is NoSuchMethodErrod exception and it's said that the method org.objectweb.asm.ClassVisitor.visit is not be found. I check the lib directory, make sure that I put the asm.jar in this directory, and I don't why this excpetion happend, so I really need someone to help me to resolve this problem.
thank you very much!
Hibernate version:3.2
Mapping documents:http://hibernate.sourceforge.net/hibernate- configuration-3.0.dtd
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
[java] Initial SessionFactory creation failed.java.lang.NoSuchMethodError:
org.objectweb.asm.ClassVisitor.visit(ILjava/lang/String;Ljava/lang/String;[Ljava
/lang/String;Ljava/lang/String;)V
[java] java.lang.ExceptionInInitializerError
[java] at util.HibernateUtil.<clinit>(Unknown Source)
[java] at events.EventManager.createAndStoreEvent(Unknown Source)
[java] at events.EventManager.main(Unknown Source)
[java] Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisit
or.visit(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/Stri
ng;)V
Name and version of the database you are using:HSQL DB1_8_0_7
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html