- This topic has 18 replies, 9 voices, and was last updated 18 years, 4 months ago by
dkim18.
-
AuthorPosts
-
January 30, 2006 at 12:25 pm #245653
Pedro RieraMemberFYI,
There are known issues with using Hibernate 3 with BEA Weblogic due to ANTLR:http://www.hibernate.org/250.html
See the section: Hibernate3 uses ANTLR for the new query parser. Unfortunately…
February 23, 2007 at 11:44 am #266574
dkim18MemberHi,
I have “No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath” error as well and followed the above solution, but antlr-2.7.x.jar was already there.
++++++++++++
…
…
Query cache: disabled
Cache provider: org.hibernate.cache.EhCacheProvider
Optimize cache for minimal puts: disabled
Structured second-level cache entries: disabled
Statistics: disabled
Deleted entity synthetic identifier rollback: disabled
Default entity-mode: pojo
building session factory
No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Program%20Files/MyEclipse%20Enterprise%20Workbench%205.1.0%20GA/eclipse/plugins/com.genuitec.org.hibernate.eclipse_5.1.0/myeclipse-data/3.0/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
%%%% Error Creating SessionFactory %%%%
org.hibernate.PropertyNotFoundException: Could not find a getter for demographicsId in class org.kki.dcn.hibernate.Project
at org.hibernate.property.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:282)
at org.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:275)
at org.hibernate.mapping.Property.getGetter(Property.java:260)
at org.hibernate.tuple.PojoEntityTuplizer.buildPropertyGetter(PojoEntityTuplizer.java:255)
at org.hibernate.tuple.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:121)
at org.hibernate.tuple.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55)
at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64)
at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:257)
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:412)
at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:108)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:216)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)
at org.kki.dcn.hibernate.HibernateSessionFactory.rebuildSessionFactory(HibernateSessionFactory.java:65)
at org.kki.dcn.hibernate.HibernateSessionFactory.getSession(HibernateSessionFactory.java:48)
at org.kki.dcn.hibernate.BaseHibernateDAO.getSession(BaseHibernateDAO.java:14)
at org.kki.dcn.actions.HibernateTest.addDemographics(HibernateTest.java:33)
at org.kki.dcn.actions.HibernateTest.main(HibernateTest.java:16)
session from HibernateSessionFactory: nullException in thread “main” java.lang.NullPointerException
…how do I fix this problem?
February 23, 2007 at 12:04 pm #266588
Riyad KallaMemberCheck your org.kki.dcn.hibernate.Project class and either fix the case of your demographicsId getter (note it has to be “getDemographicsId()”) or add one if you are missing one.
February 23, 2007 at 1:06 pm #266594
dkim18MemberOOops. I thought something else was giving me the problem. I am newbie to hibernate..^^
thanks -
AuthorPosts