Bug 60524 - NPE in SlowQueryReport in tomcat-jdbc-7.0.68
Summary: NPE in SlowQueryReport in tomcat-jdbc-7.0.68
Status: NEEDINFO
Alias: None
Product: Tomcat Modules
Classification: Unclassified
Component: jdbc-pool (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-28 10:10 UTC by wyao
Modified: 2017-01-21 14:17 UTC (History)
0 users



Attachments
NPE (679.04 KB, image/jpeg)
2016-12-28 10:14 UTC, wyao
Details
java version (74.03 KB, image/jpeg)
2017-01-04 08:44 UTC, WangZhengcong
Details
Test program for ConcurrentHashMap (2.69 KB, text/x-java)
2017-01-21 14:15 UTC, Felix Schumacher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wyao 2016-12-28 10:10:04 UTC

    
Comment 1 wyao 2016-12-28 10:14:35 UTC
Created attachment 34561 [details]
NPE
Comment 2 Felix Schumacher 2016-12-31 11:08:49 UTC
Can you give a bit more details on your setup, like jdk/jre, cluster setup, is this reproducable, ...?

It is a bit of a mystery to me, that the npe is happening there, as we are copying the data from a ConcurrentHashMap, which explicitly does not allow null values. My first idea was to filter null values from the copied list, but it feels wrong without knowing the real issue.
Comment 3 WangZhengcong 2017-01-04 08:44:02 UTC
Created attachment 34584 [details]
java version

hope to find the NPE
Comment 4 WangZhengcong 2017-01-04 08:45:40 UTC
(In reply to Felix Schumacher from comment #2)
> Can you give a bit more details on your setup, like jdk/jre, cluster setup,
> is this reproducable, ...?
> 
> It is a bit of a mystery to me, that the npe is happening there, as we are
> copying the data from a ConcurrentHashMap, which explicitly does not allow
> null values. My first idea was to filter null values from the copied list,
> but it feels wrong without knowing the real issue.

Please see my reply, the java version shown below
Comment 5 Felix Schumacher 2017-01-21 14:15:51 UTC
Created attachment 34656 [details]
Test program for ConcurrentHashMap

Program that tests ConcurrentHashMap, as I suspect, that the uses JRE has a problem.
Comment 6 Felix Schumacher 2017-01-21 14:17:01 UTC
Could you try and run the attached Java program on your machine and report if it crashes? I suspect, that the CHM implementation of your JRE is buggy.