RHEL 7 Tomcat StatementFacade throws NullPointerException rather than SQLException
Issue
- We see the following NPE from RHEL 7 Tomcat:
java.lang.NullPointerException
at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_292]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_292]
at org.apache.tomcat.jdbc.pool.StatementFacade$StatementProxy.invoke(StatementFacade.java:138) ~[tomcat-jdbc.jar:?]
Environment
- Red Hat Enterprise Linux (RHEL) 7.x
- tomcat-7.0.76-15+
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.