应用系统报错:com.highgo.jdbc.util.PSQLException:bad value for long(APP)

文章目录

环境

系统平台:银河麒麟(飞腾)U系 V4

版本:4.3.4.5

症状

应用报错:com.highgo.jdbc.util.PSQLException:bad value for long:{"w":1341,"h":700,"widgets":[{"id":1,"c":1,"r":1,"x":24,"y":27},{"id":2,"c":25,"r":1,"x":51,"y":54},{"id":3,"c":25,"r":55,"x":51,"y":32},{"id":4,"c":1,"r":28,"x":24,"y":27},{"id":5,"c":76,"r":1,"x":25,"y":26},{"id":6,"c":76,"r":55,"x":25,"y":32},{"id":7,"c":76,"r":27,"x":25,"y":28},{"id":8,"c":1,"r":55,"x":24,"y":32}]}

问题原因

MyBatis中在查询进行select映射的时候,返回类型可以用resultTy,调查分析发现,客户的程序中返回字段类型为longvarchar,故走了jar包内的tolong方法,引起报错。

解决方案

修改程序中返回字段类型longvarchar为varchar。

报错编码

com.highgo.jdbc.util.PSQLException:bad value for long

相关推荐
瀚高PG实验室11 小时前
left link changed unexpectedly in block xxxx of index ““index_xxxxx“
数据库·postgresql·瀚高数据库
瀚高PG实验室20 小时前
debezium在LANG=zh_CN.UTF-8下,无法解析timestamp类型的列值为BC的字段
服务器·数据库·postgresql·瀚高数据库
瀚高PG实验室1 天前
postgresql因在从库备份时间长而失败
运维·数据库·postgresql·瀚高数据库
瀚高PG实验室11 天前
安全版V4.5版本docker容器license过期问题处理步骤
安全·docker·容器·瀚高数据库
瀚高PG实验室11 天前
ERROR: invalid input syntax for type integer: “a“
数据库·瀚高数据库
瀚高PG实验室13 天前
pgroonga全文检索插件的BUG
数据库·postgresql·bug·瀚高数据库
瀚高PG实验室13 天前
类型转换导致SQL不走索引的案例
数据库·sql·瀚高数据库
瀚高PG实验室15 天前
PostgreSQL 的 CREATE STATISTICS 未检查 schema 的 CREATE 权限 HGVE-2025-E010
数据库·postgresql·瀚高数据库
瀚高PG实验室15 天前
pg_dump: error: no matching tables were found
数据库·瀚高数据库
瀚高PG实验室16 天前
磁盘故障导致数据库进入恢复模式
数据库·瀚高数据库