ApsaraDB / PolarDB-for-PostgreSQL

A cloud-native database based on PostgreSQL developed by Alibaba Cloud.
https://apsaradb.github.io/PolarDB-for-PostgreSQL/zh/
Apache License 2.0
2.84k stars 450 forks source link

### Cause: org.postgresql.util.PSQLException: ERROR: cache lookup failed for type 0 ; uncategorized SQLException; SQL state [XX000]; error code [0]; ERROR: cache lookup failed for type 0 #516

Open kimguo1993 opened 1 month ago

kimguo1993 commented 1 month ago

Cause: org.postgresql.util.PSQLException: ERROR: cache lookup failed for type 0

; uncategorized SQLException; SQL state [XX000]; error code [0]; ERROR: cache lookup failed for type 0 at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:93) at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:439) at jdk.proxy2/jdk.proxy2.$Proxy113.selectList(Unknown Source) at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:224) at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForMany(MybatisMapperMethod.java:164) at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:77) at com.baomidou.mybatisplus.core.override.MybatisMapperProxy$PlainMethodInvoker.invoke(MybatisMapperProxy.java:152) at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:89) at jdk.proxy2/jdk.proxy2.$Proxy116.countByDevNum(Unknown Source) how to fix it?

polardb-bot[bot] commented 1 month ago

Hi @kimguo1993 ~ Thanks for opening this issue! 🎉

Please make sure you have provided enough information for subsequent discussion.

We will get back to you as soon as possible. ❤️