https://bz.apache.org/bugzilla/show_bug.cgi?id=61312

            Bug ID: 61312
           Summary: NullPointerException in StatementCache.isCached
           Product: Tomcat Modules
           Version: unspecified
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: jdbc-pool
          Assignee: dev@tomcat.apache.org
          Reporter: holger.su...@bodo-peters.de
  Target Milestone: ---

Hallo,

I somehow got a NPE in StatementCache.isCached method  with Apache Tomcat
8.5.14:

The private PooledConnection pcon is null in this situation:

Caused by: java.lang.NullPointerException: null
        at
org.apache.tomcat.jdbc.pool.interceptor.StatementCache.isCached(StatementCache.java:202)
~[tomcat-jdbc.jar:na]
        at
org.apache.tomcat.jdbc.pool.interceptor.StatementCache.invoke(StatementCache.java:175)
~[tomcat-jdbc.jar:na]
        at
org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:108)
~[tomcat-jdbc.jar:na]
        at
org.apache.tomcat.jdbc.pool.interceptor.AbstractCreateStatementInterceptor.invoke(AbstractCreateStatementInterceptor.java:75)
~[tomcat-jdbc.jar:na]
        at
org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:108)
~[tomcat-jdbc.jar:na]
        at
org.apache.tomcat.jdbc.pool.interceptor.ConnectionState.invoke(ConnectionState.java:152)
~[tomcat-jdbc.jar:na]
        at
org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:108)
~[tomcat-jdbc.jar:na]
        at
org.apache.tomcat.jdbc.pool.TrapException.invoke(TrapException.java:40)
~[tomcat-jdbc.jar:na]
        ... 136 common frames omitted

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to