Joined: Wed Feb 23, 2005 11:56 am Posts: 4
|
When I run it, ant run-tests
i met the following problem:
Testcase: testSavePlayer took 1.515 sec
Caused an ERROR
COM.ibm.db2.jdbc.app.DB2DatabaseMetaData.supportsResultSetType(I)Z
java.lang.AbstractMethodError: COM.ibm.db2.jdbc.app.DB2DatabaseMetaData.supportsResultSetType(I)Z
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:75)
at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1119)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:748)
at example.persistence.HibernateSession.currentSession(HibernateSession.java:34)
at example.persistence.BaseDAO.storeObj(BaseDAO.java:140)
at example.persistence.PlayerDAO.savePlayer(PlayerDAO.java:16)
at example.test.PlayerDAOTest.testSavePlayer(PlayerDAOTest.java:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Testcase: testSelectPlayers took 0.031 sec
Caused an ERROR
COM.ibm.db2.jdbc.app.DB2DatabaseMetaData.supportsResultSetType(I)Z
java.lang.AbstractMethodError: COM.ibm.db2.jdbc.app.DB2DatabaseMetaData.supportsResultSetType(I)Z
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:75)
at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1119)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:748)
at example.persistence.HibernateSession.currentSession(HibernateSession.java:34)
at example.persistence.BaseDAO.retrieveObjs(BaseDAO.java:114)
at example.persistence.PlayerDAO.searchPlayers(PlayerDAO.java:43)
at example.test.PlayerDAOTest.testSelectPlayers(PlayerDAOTest.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
how should i fix this problem.
Thanks in advance
Kelly
|
|