我對Spring Batch的項目時連接到PostgreSQL數據庫我得到波紋錯誤。值java.sql.SQLException:方法org.postgresql.jdbc3.Jdbc3PreparedStatement.setQueryTimeout(INT)尚未實現
java.sql.SQLException:方法org.postgresql.jdbc3.Jdbc3PreparedStatement.setQueryTimeout(int)尚未實現。
如何解決這個問題了,請幫我在這。 我使用Postgres的9.4-1201-jdbc41驅動程序版本 和Spring JDBC 4.1.4.RELEASE
Stack trace
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: java.sql.SQLException: Method org.postgresql.jdbc3.Jdbc3PreparedStatement.setQueryTimeout(int) is not yet implemented.
at org.postgresql.Driver.notImplemented(Driver.java:753)
at org.postgresql.jdbc2.AbstractJdbc2Statement.setQueryTimeout(AbstractJdbc2Statement.java:668)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.setQueryTimeout(NewProxyPreparedStatement.java:1800)
at org.springframework.jdbc.datasource.DataSourceUtils.applyTimeout(DataSourceUtils.java:275)
at org.springframework.jdbc.core.JdbcTemplate.applyStatementSettings(JdbcTemplate.java:1399)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:639)
... 37 more
]
Execution failure Stack trace: [org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized SQLException for SQL [SELECT * FROM patient where id =? ]; SQL state [0A000]; error code [0]; Method org.postgresql.jdbc3.Jdbc3PreparedStatement.setQueryTimeout(int) is not yet implemented.; nested exception is java.sql.SQLException: Method org.postgresql.jdbc3.Jdbc3PreparedStatement.setQueryTimeout(int) is not yet implemented.]
您應該在代碼塊中插入錯誤以獲得更好的可讀性 – XavM