aspose file tools*
The moose likes Object Relational Mapping and the fly likes Hibernate help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate help" Watch "Hibernate help" New topic
Author

Hibernate help

S Ali
Ranch Hand

Joined: Aug 23, 2009
Posts: 129
Please what is wrong
I don't know it was working yesterday and today I tried to make some changes now it doesn't and I can't find the error
this is my stack trace

Exception in thread "main" java.lang.ExceptionInInitializerError
at DAO.HibernateUtil.<clinit>(HibernateUtil.java:21)
at DAO.CountryDAO.getData(CountryDAO.java:16)
at mainn.main(mainn.java:15)
Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]
at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:110)
at org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:135)
at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:80)
at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:323)
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:456)
at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:131)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:84)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:267)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
at DAO.HibernateUtil.<clinit>(HibernateUtil.java:17)
... 2 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:107)
... 12 more
Caused by: java.lang.NoClassDefFoundError: javassist/util/proxy/MethodFilter
at org.hibernate.bytecode.javassist.BytecodeProviderImpl.getProxyFactoryFactory(BytecodeProviderImpl.java:49)
at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactoryInternal(PojoEntityTuplizer.java:208)
at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:186)
at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:151)
at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:78)
... 17 more













SCJP 6
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

So, what changes did you make??? Check against the version in your source repository, or if you're not using one (BAD idea), against local IDE history.

I mean, obviously you're missing the javassist library in your deployment. Did you upgrade Hibernate versions?
S Ali
Ranch Hand

Joined: Aug 23, 2009
Posts: 129
I was trying to make it work with JSP and Servlets so I added a lot of stuff but I removed them again.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Looks like you removed too much.
 
 
subject: Hibernate help