Binaries on webpage use old Hibernate
-------------------------------------
Key: IBATIS-179
URL: http://issues.apache.org/jira/browse/IBATIS-179
Project: iBatis for Java
Type: Bug
Components: DAO
Versions: 2.1.5
Environment: PLD Linux
Hibernate 2
Reporter: Marcin Kaminski
Binaries on webpage has been compiled with old and unreleased version of
Hibernate. When running application, error is thrown:
Exception in thread "main" java.lang.NoSuchMethodError:
net.sf.hibernate.cfg.Configuration.setProperties(Ljava/util/Properties;)V
at
com.ibatis.dao.engine.transaction.hibernate.HibernateDaoTransactionManager.configure(HibernateDaoTransactionManager.java:47)
at
com.ibatis.dao.engine.builder.xml.XmlDaoManagerBuilder.parseTransactionManager(XmlDaoManagerBuilder.java:191)
at
com.ibatis.dao.engine.builder.xml.XmlDaoManagerBuilder.parseContext(XmlDaoManagerBuilder.java:155)
at
com.ibatis.dao.engine.builder.xml.XmlDaoManagerBuilder.buildDaoManager(XmlDaoManagerBuilder.java:100)
at
com.ibatis.dao.client.DaoManagerBuilder.buildDaoManager(DaoManagerBuilder.java:59)
The reason of error is that it looks for
setProperties(Ljava/util/Properties;)V
and in hibernate2.jar there is
setProperties(Ljava/util/Properties;)Lnet/sf/hibernate/cfg/Configuration;
That means that DAO release has been built with
void setProperties(Properties arg0)
and in Hibernate Configuration class there is
Configuration setProperties(Properties arg0)
This is very strange, as version with void instead of Configuration exists in
CVS only for one hour:
http://cvs.sourceforge.net/viewcvs.py/hibernate/Hibernate2/src/net/sf/hibernate/cfg/Configuration.java?r1=1.4&r2=1.5
When class HibernateDaoTransactionManager has been replaced with compiled
again, initialization works fine. We have not tested
HibernateDaoTemplate yet.
Please release DAO with current stable version of Hibernate2.
Also, is there support for Hibernate3 planned?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira