我们收到此错误:
Caused by: org.postgresql.util.PSQLException: An I/O error occurred while sending to the backend.
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:327)
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)
... 18 common frames omitted
Caused by: java.io.EOFException: null
at org.postgresql.core.PGStream.receiveChar(PGStream.java:290)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1962)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:300)
... 22 common frames omitted
该查询是带有四个参数的简单SELECT
的预准备语句。然后调用executeQuery
,我得到上面的错误。该错误仅在使用stolon时发生,如果我们直接使用PostgreSQL,一切都会按预期进行。
有人遇到过类似情况吗?
答案 0 :(得分:2)
在其他情况下,我也有相同的踪迹:我修复了它更新了postgresql jdbc驱动程序。