You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During connection failure the log message being generated together with slf4j/log4j 1.x results in a further NPE due to logger being null once the logging record was generated by postgres.
Caused by: java.lang.NullPointerException
at org.apache.log4j.CategoryKey.(CategoryKey.java:32)
at org.apache.log4j.Hierarchy.getLogger(Hierarchy.java:266)
at org.apache.log4j.Hierarchy.getLogger(Hierarchy.java:247)
at org.apache.log4j.LogManager.getLogger(LogManager.java:228)
at org.apache.log4j.Logger.getLogger(Logger.java:104)
at ...server.JavaToLog4JHandler.publish(JavaToLog4JHandler.java:26)
at java.util.logging.Logger.log(Logger.java:738)
at org.postgresql.core.v3.ConnectionFactoryImpl.log(ConnectionFactoryImpl.java:317)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:252)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
at org.postgresql.jdbc.PgConnection.(PgConnection.java:195)
at org.postgresql.Driver.makeConnection(Driver.java:452)
at org.postgresql.Driver.connect(Driver.java:254)
The text was updated successfully, but these errors were encountered:
PostgreSQL JDBC driver 42.2.2
During connection failure the log message being generated together with slf4j/log4j 1.x results in a further NPE due to logger being null once the logging record was generated by postgres.
Caused by: java.lang.NullPointerException
at org.apache.log4j.CategoryKey.(CategoryKey.java:32)
at org.apache.log4j.Hierarchy.getLogger(Hierarchy.java:266)
at org.apache.log4j.Hierarchy.getLogger(Hierarchy.java:247)
at org.apache.log4j.LogManager.getLogger(LogManager.java:228)
at org.apache.log4j.Logger.getLogger(Logger.java:104)
at ...server.JavaToLog4JHandler.publish(JavaToLog4JHandler.java:26)
at java.util.logging.Logger.log(Logger.java:738)
at org.postgresql.core.v3.ConnectionFactoryImpl.log(ConnectionFactoryImpl.java:317)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:252)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
at org.postgresql.jdbc.PgConnection.(PgConnection.java:195)
at org.postgresql.Driver.makeConnection(Driver.java:452)
at org.postgresql.Driver.connect(Driver.java:254)
The text was updated successfully, but these errors were encountered: