Hi,
We are using Access-JDBC jar in one of the module from our software whereas other module from our software is using dbf-jar to read the data from fox pro files. Due to this both these jars are present in our software library module. Recently we have upgraded the access-jdbc jars with latest version due to this the module which uses dbf-jdbc jars started failing by throwing the following exception :
Exception in thread "main" java.lang.VerifyError: (class: com/hxtt/sql/dbf/EmbeddedDriver, method: connect signature: (Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;) Incompatible argument to function
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at com.hxtt.global.SQLState.getConnection(Unknown Source)
at com.hxtt.sql.HxttDriver.if(Unknown Source)
at com.hxtt.sql.HxttDriver.connect(Unknown Source)
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1247)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1221)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:113)
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:382)
at com.synygy.loadexternalinput.impl.run.dao.FoxProDAOImpl.getColumnInfo(FoxProDAOImpl.java:636)
at com.synygy.loadexternalinput.impl.run.dao.FoxProDAOImpl.main(FoxProDAOImpl.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
What strange thing i have noticed over here is the class "HxttDriver" is present in both the jars with identical package hierarchy. When we upgraded the access-jdbc jars it started calling the latest class method and resulted in to this issue.
Your urgent help will be highly helpful for us as currently the software is unalble to load data from fox pro inputs.
Thanks,
Amit
|
You should download the latest DBF package too.
|