Postgres JDBC错误:接收到结果集元组,但没有它们的字段结构

时间:2019-03-20 15:04:21

标签: spring postgresql jdbc spring-data

我们在Java Spring应用程序中使用Postgres:

Postgres版本:10

Postgres JDBC依赖版本:42.1.4

<dependency>
    <groupId>org.postgresql</groupId>
    <artifactId>postgresql</artifactId>
    <version>42.1.4</version>
    <scope>test</scope>
</dependency>

同一部署代码中存在一个随机错误,无法在其他环境中复制;重新启动应用程序后错误消失。验证用户身份时,似乎发生在Select上。

Caused by: java.lang.IllegalStateException: Received resultset tuples, but no field structure for them
    at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2121)
    at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:300)
    at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:428)
    at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:354)
    at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:169)
    at org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:117)
    at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.tomcat.jdbc.pool.StatementFacade$StatementProxy.invoke(StatementFacade.java:114)
    at com.sun.proxy.$Proxy129.executeQuery(Unknown Source)
    at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetReturnImpl.java:60)

我能找到的最接近的线程是该线程,但我不了解该解决方案或它是否在任何新版本中都可用。它是Postgres JDBC错误吗? http://www.pgpool.net/mantisbt/view.php?id=432

0 个答案:

没有答案