Spring batch Spring批处理-Sybase尝试在非法类型对之间进行转换

Spring batch Spring批处理-Sybase尝试在非法类型对之间进行转换,spring-batch,Spring Batch,使用sybase db在SpringBatch中运行作业时出现以下异常。架构是使用Spring批处理附带的-“schema sybase.sql”创建的 弹簧批版本-Spring-batch-core-2.1.7 错误 2015-04-07 09:21:13138错误 [org.springframework.batch.core.launch.support.CommandLineJobRunner]- org.springframework.dao.TransientDataAccessRe

使用sybase db在SpringBatch中运行作业时出现以下异常。架构是使用Spring批处理附带的-“schema sybase.sql”创建的

弹簧批版本-Spring-batch-core-2.1.7

错误

2015-04-07 09:21:13138错误 [org.springframework.batch.core.launch.support.CommandLineJobRunner]- org.springframework.dao.TransientDataAccessResourceException: PreparedStatementCallback;SQL[从中选择作业\u实例\u ID、作业\u名称] 批处理作业实例,其中作业名称=?和作业密钥=?];JZ006:捕获 IOException:java.io.IOException:JZ0TC:尝试在 非法的一对类型。;嵌套异常为java.sql.SQLException: JZ006:捕获的IOException:java.io.IOException:JZ0TC:已尝试 非法类型对之间的转换

作业配置
实际上,在schema-sybase.sql中将BIGINT更改为整数后,它运行良好

看起来sybase和JDBC驱动程序兼容性存在一些问题


上面的解决方案是用jconn-3.0.0.jar测试的。在将JDBC驱动程序升级到7.0.7版后,它在BIGINT上运行良好-
jconn-7.0.7.jar

sybase的哪个版本和驱动程序的哪个版本?driver-jconn-3.0.0,sybase-Adaptive Server Enterprise/15.7/EBF 21708 SMP SP110/p/x86_64/Enterprise Linux/ase157sp11x/3546/64位/FBO/Fri Nov 8 05:39:38 2013请注意,您的驱动程序和正在使用的Spring Batch版本都非常旧。您可能想考虑升级…谢谢,升级Sybase是我的控制(因为它由不同的团队决定,适用于所有环境),但我一定会尝试升级驱动程序…