wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes Trouble to run a simple Hibernate /JPA CRUD sample 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 » Databases » Object Relational Mapping
Bookmark "Trouble to run a simple Hibernate /JPA CRUD sample" Watch "Trouble to run a simple Hibernate /JPA CRUD sample" New topic
Author

Trouble to run a simple Hibernate /JPA CRUD sample

Harish Vembu
Ranch Hand

Joined: Jul 19, 2004
Posts: 33

Dear All,

I have problem in running the below as a Java Application in NetBeans

______________________________________________________________________________________

____________________________________________________________________________________________________________

Error:


INFO: Structured second-level cache entries: disabled
Jan 30, 2011 11:12:07 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Echoing all SQL to stdout
Jan 30, 2011 11:12:07 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Statistics: disabled
Jan 30, 2011 11:12:07 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Deleted entity synthetic identifier rollback: disabled
Jan 30, 2011 11:12:07 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: pojo
Jan 30, 2011 11:12:07 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Named query checking : enabled
Jan 30, 2011 11:12:08 PM org.hibernate.impl.SessionFactoryImpl ><init>
INFO: building session factory
Exception in thread "main" java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V
at net.sf.cglib.core.DebuggingClassWriter.<init>(DebuggingClassWriter.java:47)
at net.sf.cglib.core.DefaultGeneratorStrategy.getClassWriter(DefaultGeneratorStrategy.java:30)
at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:24)
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:108)
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:117)
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:295)
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:434)
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:1294)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:859)
at com.mcnz.model.HibernateCrudRunner.main(HibernateCrudRunner.java:22)
Java Result: 1.


_________________________________________________________________________________________________________________________________________________________________

It references GameSummary which is in same package.

Any guidance would be much appreciated.


Thanks & Best Regards

Harish
SCJP ,SCDJWS
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trouble to run a simple Hibernate /JPA CRUD sample
 
Similar Threads
error connecting to SQL Server 2005
Using Stored procedure in spring with hibernate
Can't connect to MySQL database with Hibernate
hibernate error
Hibernate problem