PG数据插入数据报错

Expect-乐 2021-03-09 05:15:08
报错日志如下:
### Error updating database.  Cause: org.postgresql.util.PSQLException: ERROR: insufficient data left in message
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: insert into sqltext values (210500003,'2021-03-09 17:05:28.687000','0x020000007cdd473871aa03d39a8a9df0291022e6d8d96c2f','FETCH API_CURSOR000000000115C10C')
### Cause: org.postgresql.util.PSQLException: ERROR: insufficient data left in message
org.apache.ibatis.exceptions.PersistenceException:
### Error updating database. Cause: org.postgresql.util.PSQLException: ERROR: insufficient data left in message
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: insert into sqltext values (210500003,'2021-03-09 17:05:28.687000','0x020000007cdd473871aa03d39a8a9df0291022e6d8d96c2f','FETCH API_CURSOR000000000115C10C')
### Cause: org.postgresql.util.PSQLException: ERROR: insufficient data left in message
at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:26)
at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:154)
at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:141)
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:51)
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:52)
at com.sun.proxy.$Proxy97.insert2table(Unknown Source)
at com.dfc.util.CommonUtils.insertTable(CommonUtils.java:131)
at com.dfc.ScriptExecutor.DcV1.parsejson(DcV1.java:51)
at com.dfc.ScriptExecutor.DcV1.check(DcV1.java:32)
at com.dfc.ScriptExecutor.DcExecutor.analyse(DcExecutor.java:56)
at com.dfc.ScriptExecutor.DcExecutor.execute(DcExecutor.java:22)
at sun.reflect.GeneratedMethodAccessor202.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.rt.job.executor.service.jobhandler.GeneralRtScriptJobs.GeneralRtScriptHandler.execute(GeneralRtScriptHandler.java:55)
at com.rt.job.core.thread.JobThread.run(JobThread.java:75)
at com.rt.job.core.thread.NormalJobThread.run(NormalJobThread.java:23)
Caused by: org.postgresql.util.PSQLException: ERROR: insufficient data left in message
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2433)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2178)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:306)
at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:155)
at org.postgresql.jdbc.PgPreparedStatement.execute(PgPreparedStatement.java:144)
at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:44)
at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:69)
at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:48)
at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:105)
at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:71)
at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:152)
... 15 more
...全文
2227 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Expect-乐 2021-03-13
  • 打赏
  • 举报
回复
知道原因了,有一个字段内容包含了\u0000
Hi若如初见 2021-03-12
  • 打赏
  • 举报
回复
要insert的表字段长度不够,那里不是写了吗,insufficient不足的

972

社区成员

发帖
与我相关
我的任务
社区描述
PostgreSQL相关内容讨论
sql数据库数据库架构 技术论坛(原bbs)
社区管理员
  • PostgreSQL社区
  • yang_z_1
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧