GBase 8s
其他
问答

Gbase + Mybatis Plus 实体时间字段LocalDateTime类型,异常如何解决

发表于2026-03-05 17:20:4864次浏览18个评论

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。

【GBase版本】:

【操作系统】: 麒麟操作系统

【CPU】:

【问题描述】*:  异常日志如下: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='ew.paramNameValuePairs.MPGENVAL7', mode=IN, javaType=class java.lang.Object, jdbcType=null, numericScale=null, resultMapId='null', jdbcTypeName='null', expression='null'}. Cause: org.apache.ibatis.type.TypeException: Error setting non null for parameter #7 with JdbcType null . Try setting a different JdbcType for this parameter or a different configuration property. Cause: org.apache.ibatis.type.TypeException: Error setting non null for parameter #7 with JdbcType null . Try setting a different JdbcType for this parameter or a different configuration property. Cause: java.sql.SQLException: System or internal error java.lang.NoSuchMethodException: com.gbasedbt.jdbc.IfxDateTime.fromnull(java.time.LocalDateTime)  

评论

登录后才可以发表评论
用户头像
路路路发表于 5个月前
稍等技术回复
渴望沙漠发表于 5个月前
chatGPT 提示:首选:联系 GBase 官方或查看其文档,获取一个支持 JDBC 4.2 及以上规范的新版驱动。JDBC 4.2 增加了对 java.time 类型的支持, 这种方案是否可行?
渴望沙漠发表于 5个月前
@渴望沙漠:Gbase的版本 GBase Server Version 12.10.FC4G1TL 应该是支持LocalDateTime吧
用户头像
琳大大发表于 5个月前
可以提供下驱动版本和代码片段吗
渴望沙漠发表于 5个月前
@琳大大
渴望沙漠发表于 5个月前
@琳大大:评论我发不了 图片
用户头像
琳大大发表于 5个月前
@渴望沙漠:驱动是放在私有仓库了吗,是哪个版本的,server版本是哪个,代码没有看到图片,您发了,会有人审核
渴望沙漠发表于 5个月前
@琳大大
用户头像
琳大大发表于 4个月前
@渴望沙漠:如果是官网的server,配合这个驱动
最佳回答
渴望沙漠发表于 4个月前
@琳大大:好的我尝试一下
渴望沙漠发表于 4个月前
@琳大大:已解决此问题,感谢!!!
GBase用户19279发表于 4个月前
@琳大大:赞
用户头像
mittens发表于 4个月前
学习了
用户头像
mittens发表于 4个月前
学习了
用户头像
mittens发表于 4个月前
学习了
用户头像
mittens发表于 4个月前
学习了
用户头像
mittens发表于 4个月前
学习了
新疆油腻大叔发表于 2个月前
学习中,还不清楚。