PostgreSQL backend function after an elog(ERROR) had been issued

Getting this weird issue one time per postgresSql session. Like if I run this query first time, will return with below message but if I rerun the same, it works fine.

DEBUG: An attempt was made to call a PostgreSQL backend function after an elog(ERROR) had been issued ERROR: org.glassfish.jersey.internal.ServiceConfigurationError: org.glassfish.jersey.internal.inject.InjectionManagerFactory: : java.io.IOException: An attempt was made to call a PostgreSQL backend function after an elog(ERROR) had been issued.