Unable to instantiate default tuplizer
本人新手,遇到这个问题无法解决,求大神指导。以下贴出部分错误代码:
org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]
at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:108)
at org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:133)
at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:80)
at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:322)
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:485)
at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:133)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:84)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:286)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1872)
at com.examp.ShoppingOnline.hibernate.HibernateUtil.<clinit>(HibernateUtil.java:12)
at com.examp.ShoppingOnline.hibernate.DbOperate.save(DbOperate.java:86)
at com.examp.ShoppingOnline.hibernate.test.TestAddUser.main(TestAddUser.java:16)
我是想用hibernate操作数据库,程序照书上copy的,然后编写一个简单测试程序,出现这个问题。
[解决办法]
不是包问题就是你配置的问题。。。可以肯定。。。。