hi,
I am trying to run the eg example with mysql driver 2.0.14 (my production driver) on mysql 3.23 with hibernate 2.1
Here is my hibernate.properties
## MySQL
hibernate.dialect net.sf.hibernate.dialect.MySQLDialect
hibernate.connection.driver_class org.gjt.mm.mysql.Driver
#hibernate.connection.driver_class com.mysql.jdbc.Driver
hibernate.connection.url jdbc:mysql://localhost:3314/DBpostcards?autoReconnect=true
hibernate.connection.username atchik
hibernate.connection.password atchik
Here is the "ant eg" ouput.
SchemaExport:160 - schema export complete
[java] 09:50:53,354 INFO DriverManagerConnectionProvider:143 - cleaning up connection pool: jdbc:mysql://localhost:3314/DBpostcards?autoReconnect=true
[java] 09:50:53,366 INFO UpdateTimestampsCache:35 - starting update timestamps cache at region: net.sf.hibernate.cache.UpdateTimestampsCache
[java] 09:50:53,471 WARN Plugin:95 - Could not find configuration for net.sf.hibernate.cache.UpdateTimestampsCache. Configuring using the defaultCache settings.
[java] 09:50:53,479 INFO QueryCache:39 - starting query cache at region: net.sf.hibernate.cache.QueryCache
[java] 09:50:53,480 WARN Plugin:95 - Could not find configuration for net.sf.hibernate.cache.QueryCache. Configuring using the defaultCache settings.
[java] Setting up some test data
[java] Exception in thread "main" java.lang.AbstractMethodError: com.mysql.jdbc.jdbc2.Connection.prepareStatement(Ljava/lang/String;I)Ljava/sql/PreparedStatement;
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:324)
[java] at net.sf.hibernate.util.GetGeneratedKeysHelper.prepareStatement(GetGeneratedKeysHelper.java:39)
[java] at net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java:246)
[java] at net.sf.hibernate.impl.BatcherImpl.prepareStatement(BatcherImpl.java:61)
[java] at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:525)
[java] at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:432)
[java] at net.sf.hibernate.impl.ScheduledIdentityInsertion.execute(ScheduledIdentityInsertion.java:29)
[java] at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:932)
[java] at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:857)
[java] at net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:775)
[java] at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:738)
[java] at org.hibernate.auction.Main.createTestAuctions(Main.java:291)
[java] at org.hibernate.auction.Main.main(Main.java:365)
I try to run the "ant eg" with with mysql driver 3.0.14 everything is ok.
Have someone managed to use hibernate with mysql driver 2.0.14 ?
Thanks
Yom
|