Hi,
I would like to report two bugs for version 3.8.4.
One new bug, I have this HibernateException
PROBLEM:
net.sf.hibernate.PropertyNotFoundException: Could not find a getter for sEditor in class nas.epowr.RubyReports.Hibernate.Reports
at net.sf.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:182)
at net.sf.hibernate.mapping.Property.getGetter(Property.java:175)
SOLUTION:
I was able to fix this bug by changing the property name in hibernate mapping file. It should be SEditor. MyEclipse added wrong property name for the sEditor methods. It is fixed now. The physical table name is s_editor. May be myEclipse got confused with it.
I have been using MyElipse since 3.8.2 and I had the same problem in 3.8.2 and I still have this following problem in 3.8.4
PROBLEM:
Hibernate Session is keep closing on and on. Your apps is stuck with it.
You have this Hibernate Exception error. Session is closed
SOLUTION
Add session.isOpen() == false in if condition statment
public static Session currentSession() throws HibernateException {
Session session = (Session) threadLocal.get();
if (session == null || session.isOpen() == false) {
if (sessionFactory == null) {
try {
cfg.configure(CONFIG_FILE_LOCATION);
sessionFactory = cfg.buildSessionFactory();
}
catch (Exception e) {
System.err.println("%%%% Error Creating SessionFactory %%%%");
e.printStackTrace();
}
}
session = sessionFactory.openSession();
threadLocal.set(session);
}
return session;
}