应用系统报错: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实验室3 天前
V4.5.6.1授予普通用户监控类系统表及视图的查询权限
数据库·瀚高数据库
瀚高PG实验室6 天前
开发管理工具打不开No way to find ori gi nal streamhand er for jar protocol
java·数据库·jar·瀚高数据库
瀚高PG实验室6 天前
HGDB安全版单机修改用户密码
数据库·安全·瀚高数据库
瀚高PG实验室10 天前
瀚高企业版V9.1.1在pg_restore还原备份文件时提示extract函数语法问题
数据库·瀚高数据库
瀚高PG实验室18 天前
xx000 can not wait without a pgproc
服务器·数据库·oracle·瀚高数据库
瀚高PG实验室20 天前
PG的JDBC对SQL中绑定变量个数的限制
数据库·sql·postgresql·瀚高数据库
瀚高PG实验室20 天前
瀚高数据库V45及V6用户锁定后解锁步骤
运维·数据库·瀚高数据库