The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

dotoole (1) [Avatar] Offline
#1
Hi,

When I try to run the hello world example on Hibernate 3.2.1 it fails. Any ideas?

1:48:25,056 INFO SessionFactoryImpl:161 - building session factory
21:48:25,058 DEBUG SessionFactoryImpl:173 - Session factory constructed with filter configurations : {}
21:48:25,060 DEBUG SessionFactoryImpl:177 - instantiating session factory with properties: {java.vendor=Sun Microsystems Inc., show_sql=true, hibernate.connection.url=jdbc:mysql://localhost:3306/client_test_db, sun.management.compiler=HotSpot Client Compiler, c3p0.min_size=5, os.name=Linux, sun.boot.class.path=/usr/lib/jvm/java-1.5.0-sun-1.5.0_06/jre/lib/rt.jar:/usr/lib/jvm/java-1.5.0-sun-1.5.0_06/jre/lib/i18n.jar:/usr/lib/jvm/java-1.5.0-sun-1.5.0_06/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.5.0-sun-1.5.0_06/jre/lib/jsse.jar:/usr/lib/jvm/java-1.5.0-sun-1.5.0_06/jre/lib/jce.jar:/usr/lib/jvm/java-1.5.0-sun-1.5.0_06/jre/lib/charsets.jar:/usr/lib/jvm/java-1.5.0-sun-1.5.0_06/jre/classes, hibernate.current_session_context_class=thread, sun.desktop=gnome, hibernate.c3p0.max_size=20, java.vm.specification.vendor=Sun Microsystems Inc., c3p0.max_size=20, java.runtime.version=1.5.0_06-b05, hibernate.c3p0.min_size=5, hibernate.cache.provider_class=org.hibernate.cache.NoCacheProvider, user.name=doug, connection.driver_class=com.mysql.jdbc.Driver, current_session_context_class=thread, hibernate.c3p0.timeout=300, user.language=en, sun.boot.library.path=/usr/lib/jvm/java-1.5.0-sun-1.5.0_06/jre/lib/i386, dialect=org.hibernate.dialect.MySQLDialect, java.version=1.5.0_06, user.timezone=US/Pacific, sun.arch.data.model=32, java.endorsed.dirs=/usr/lib/jvm/java-1.5.0-sun-1.5.0_06/jre/lib/endorsed, sun.cpu.isalist=, sun.jnu.encoding=UTF-8, file.encoding.pkg=sun.io, file.separator=/, java.specification.name=Java Platform API Specification, java.class.version=49.0, user.country=US, connection.url=jdbc:mysql://localhost:3306/client_test_db, java.home=/usr/lib/jvm/java-1.5.0-sun-1.5.0_06/jre, java.vm.info=mixed mode, hibernate.c3p0.validate=false, os.version=2.6.16.13-4-default, path.separator=:, c3p0.idle_test_period=3000, connection.password=rowland, java.vm.version=1.5.0_06-b05, hibernate.connection.password=rowland, java.awt.printerjob=sun.print.PSPrinterJob, sun.io.unicode.encoding=UnicodeLittle, hibernate.connection.username=root, user.home=/home/david, hibernate.query.substitutions=yes 'Y', no 'N', java.specification.vendor=Sun Microsystems Inc., hibernate.c3p0.max_statement=50, java.library.path=/usr/lib/jvm/java-1.5.0-sun-1.5.0_06/jre/lib/i386/client:/usr/lib/jvm/java-1.5.0-sun-1.5.0_06/jre/lib/i386:/usr/lib/jvm/java-1.5.0-sun-1.5.0_06/jre/../lib/i386, java.vendor.url=http://java.sun.com/, hibernate.connection.driver_class=com.mysql.jdbc.Driver, connection.username=root, java.vm.vendor=Sun Microsystems Inc., hibernate.dialect=org.hibernate.dialect.MySQLDialect, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, java.class.path=/opt/netbeans-5.5/ide7/modules/ext/AbsoluteLayout.jar:/usr/java/jdk1.5.0_09/jre/lib/rt.jar:/usr/java/jdk1.5.0_09/jre/lib/applet:/usr/java/jdk1.5.0_09/jre/lib/audio:/usr/java/jdk1.5.0_09/jre/lib/cmm:/usr/java/jdk1.5.0_09/jre/lib/ext:/usr/java/jdk1.5.0_09/jre/lib/fonts:/usr/java/jdk1.5.0_09/jre/lib/i386:/usr/java/jdk1.5.0_09/jre/lib/im:/usr/java/jdk1.5.0_09/jre/lib/images:/usr/java/jdk1.5.0_09/jre/lib/javaws:/usr/java/jdk1.5.0_09/jre/lib/locale:/usr/java/jdk1.5.0_09/jre/lib/management:/usr/java/jdk1.5.0_09/jre/lib/oblique-fonts:/usr/java/jdk1.5.0_09/jre/lib/security:/usr/java/jdk1.5.0_09/jre/lib/zi:/usr/java/jdk1.5.0_09/jre/lib/charsets.jar:/usr/java/jdk1.5.0_09/jre/lib/deploy.jar:/usr/java/jdk1.5.0_09/jre/lib/javaws.jar:/usr/java/jdk1.5.0_09/jre/lib/jce.jar:/usr/java/jdk1.5.0_09/jre/lib/jsse.jar:/usr/java/jdk1.5.0_09/jre/lib/plugin.jar:/usr/java/jdk1.5.0_09:/home/david/javalibs/xerces-2_8_1/resolver.jar:/home/david/javalibs/xerces-2_8_1/xercesImpl.jar:/home/david/javalibs/xerces-2_8_1/xercesSamples.jar:/home/david/javalibs/xerces-2_8_1/xml-apis.jar:/usr/java/jdk1.5.0_09/jre/lib/ext/dnsns.jar:/usr/java/jdk1.5.0_09/jre/lib/ext/localedata.jar:/usr/java/jdk1.5.0_09/jre/lib/ext/sunjce_provider.jar:/usr/java/jdk1.5.0_09/jre/lib/ext/sunpkcs11.jar:/home/david/mysql/mysql-connector-java-5.0.4:/home/david/jibx/lib:/home/david/jibx/lib/asm-2.1.jar:/home/david/jibx/lib/asm-commons-2.1.jar:/home/david/jibx/lib/bcel.jar:/home/david/jibx/lib/jibx-bind.jar:/home/david/jibx/lib/jibx-extras.jar:/home/david/jibx/lib/jibx-run.jar:/home/david/jibx/lib/stax-api.jar:/home/david/jibx/lib/wstx-asl.jar:/home/david/jibx/lib/xmlpull_1_1_4.jar:/home/david/jibx/lib/xpp3.jar:/home/david/mysql-connector-java-5.0.4/mysql-connector-java-5.0.4-bin.jar:/home/david/hibernate-3.2/lib:/home/david/hibernate-3.2/etc:/home/david/hibernate-3.2/hibernate3.jar:/home/david/hibernate-3.2/lib/ant-1.6.5.jar:/home/david/hibernate-3.2/lib/ant-antlr-1.6.5.jar:/home/david/hibernate-3.2/lib/ant-junit-1.6.5.jar:/home/david/hibernate-3.2/lib/ant-launcher-1.6.5.jar:/home/david/hibernate-3.2/lib/ant-swing-1.6.5.jar:/home/david/hibernate-3.2/lib/antlr-2.7.6.jar:/home/david/hibernate-3.2/lib/asm-attrs.jar:/home/david/hibernate-3.2/lib/asm.jar:/home/david/hibernate-3.2/lib/c3p0-0.9.0.jar:/home/david/hibernate-3.2/lib/cglib-2.1.3.jar:/home/david/hibernate-3.2/lib/checkstyle-all.jar:/home/david/hibernate-3.2/lib/cleanimports.jar:/home/david/hibernate-3.2/lib/commons-collections-2.1.1.jar:/home/david/hibernate-3.2/lib/commons-logging-1.0.4.jar:/home/david/hibernate-3.2/lib/concurrent-1.3.2.jar:/home/david/hibernate-3.2/lib/connector.jar:/home/david/hibernate-3.2/lib/dom4j-1.6.1.jar:/home/david/hibernate-3.2/lib/ehcache-1.2.3.jar:/home/david/hibernate-3.2/lib/jaas.jar:/home/david/hibernate-3.2/lib/jacc-1_0-fr.jar:/home/david/hibernate-3.2/lib/javassist.jar:/home/david/hibernate-3.2/lib/jaxen-1.1-beta-7.jar:/home/david/hibernate-3.2/lib/jboss-cache.jar:/home/david/hibernate-3.2/lib/jboss-common.jar:/home/david/hibernate-3.2/lib/jboss-jmx.jar:/home/david/hibernate-3.2/lib/jboss-system.jar:/home/david/hibernate-3.2/lib/jdbc2_0-stdext.jar:/home/david/hibernate-3.2/lib/jgroups-2.2.8.jar:/home/david/hibernate-3.2/lib/jta.jar:/home/david/hibernate-3.2/lib/junit-3.8.1.jar:/home/david/hibernate-3.2/lib/log4j-1.2.11.jar:/home/david/hibernate-3.2/lib/oscache-2.1.jar:/home/david/hibernate-3.2/lib/proxool-0.8.3.jar:/home/david/hibernate-3.2/lib/swarmcache-1.0rc2.jar:/home/david/hibernate-3.2/lib/syndiag2.jar:/home/david/hibernate-3.2/lib/versioncheck.jar:/home/david/hibernate-3.2/lib/xerces-2.6.2.jar:/home/david/hibernate-3.2/lib/xml-apis.jar:/home/david/dom4j-1.6.1/lib:/home/david/com/datasystemarchitect/hpmp/build/classes, hibernate.bytecode.use_reflection_optimizer=false, c3p0.timeout=300, java.vm.specification.name=Java Virtual Machine Specification, java.vm.specification.version=1.0, sun.cpu.endian=little, sun.os.patch.level=unknown, java.io.tmpdir=/tmp, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, hibernate.query.factory_class=org.hibernate.hql.classic.ClassicQueryTranslatorFactory, c3p0.max_statement=50, os.arch=i386, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, java.ext.dirs=/usr/lib/jvm/java-1.5.0-sun-1.5.0_06/jre/lib/ext, user.dir=/home/david/com/datasystemarchitect/hpmp, hibernate.c3p0.idle_test_period=3000, line.separator=
, java.vm.name=Java HotSpot(TM) Client VM, cache.provider_class=org.hibernate.cache.NoCacheProvider, hibernate.c3p0.acquire_increment=2, file.encoding=UTF-8, java.specification.version=1.5, hibernate.c3p0.max_statements=100, hibernate.show_sql=true}
Exception in thread "main" java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/StringsmilieV
at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:77)
at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:173)
at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)
at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:10smilie
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)
at net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:69)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:107)
at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)
at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162)
at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:135)
at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55)
at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:56)
at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:269)
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:425)
at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:109)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1291)