Message-ID: From: "pantam-bhaskar (@pantam-bhaskar)" To: "pgjdbc/pgjdbc" Date: Mon, 28 Jul 2025 09:03:58 +0000 Subject: Re: [pgjdbc/pgjdbc] issue #3530: JDBC Shared Timer set to cancelled In-Reply-To: References: List-Id: X-GitHub-Author-Login: pantam-bhaskar X-GitHub-Comment-Id: 3126262443 X-GitHub-Comment-Type: issue_comment X-GitHub-Issue: 3530 X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-Type: comment X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/issues/3530#issuecomment-3126262443 Content-Type: text/plain; charset=utf-8 Hi Team, We are also facing same issue in our production instances. We are using version 42.7.5. We have to restart JVM to bring back our services. Stack Trace: ``` java.lang.IllegalStateException: Timer already cancelled. at java.base/java.util.Timer.sched(Timer.java:398) at java.base/java.util.Timer.schedule(Timer.java:194) at org.postgresql.jdbc.PgConnection.addTimerTask(PgConnection.java:1351) at org.postgresql.jdbc.PgStatement.startTimer(PgStatement.java:996) at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:516) at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:434) at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:356) at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:341) at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:317) at org.postgresql.jdbc.PgStatement.executeQuery(PgStatement.java:266) ```