net.sf.hibernate.PropertyNotFoundException: Could not find a getter for foo in class Foo

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via hibernate.org by Unknown author, 1 year ago
Could not find a getter for pEntId in class fg1.hibernate.EntityNum
net.sf.hibernate.PropertyNotFoundException: Could not find a getter for foo in class Foo
at net.sf.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:182)
at net.sf.hibernate.util.ReflectHelper.reflectedPropertyType(ReflectHelper.java:59)
at net.sf.hibernate.mapping.SimpleValue.setTypeByReflection(SimpleValue.java:170)
at net.sf.hibernate.cfg.Binder.createProperty(Binder.java:994)
at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:987)
at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:338)
at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1167)
at net.sf.hibernate.cfg.Configuration.add(Configuration.java:245)
at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:268)
at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:291)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.