Bug 1097410 - [GSS] (6.2.4) NIO EventPoller thread dies from uncaught NPE
Summary: [GSS] (6.2.4) NIO EventPoller thread dies from uncaught NPE
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Web
Version: 6.3.0,6.2.0,6.2.1,6.2.2,6.2.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: CR1
: EAP 6.2.4
Assignee: Rémy Maucherat
QA Contact: Radim Hatlapatka
Russell Dickenson
URL:
Whiteboard:
Depends On: 1091974
Blocks: eap62-cp04-blockers 1103808
TreeView+ depends on / blocked
 
Reported: 2014-05-13 18:23 UTC by Aaron Ogburn
Modified: 2018-12-05 18:34 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
In previous versions of the product, particular concurrency between a request thread and the NIO EventPoller thread could result in the EventPoller seeing an unaccounted for null `ChannelInfo` object in its maintain loop. As a result, the NIO EventPoller thread could then die from an uncaught `NullPointerException`. This could then lead to overall server unresponsiveness and connections remaining unclosed until the pool is exhausted. In this release the EventPoller thread accounts for any such null to prevent the `NullPointerException` from being thrown and the EventPoller thread will no longer die from such a `NullPointerException`.
Clone Of:
Environment:
Last Closed: 2014-08-07 12:13:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Aaron Ogburn 2014-05-13 18:23:29 UTC
The EventPoller has been seen to die due to the following NPE:

Exception caught in EventPoller.maintain: java.lang.NullPointerException
        at org.apache.tomcat.util.net.NioEndpoint.processChannel(NioEndpoint.java:480) [jbossweb-7.2.2.Final-01079145-debug.jar:7.2.2.Final]
        at org.apache.tomcat.util.net.NioEndpoint$EventPoller.maintain(NioEndpoint.java:1170) [jbossweb-7.2.2.Final-01079145-debug.jar:7.2.2.Final]
        at org.apache.tomcat.util.net.NioEndpoint$EventPoller.run(NioEndpoint.java:1138) [jbossweb-7.2.2.Final-01079145-debug.jar:7.2.2.Final]
        at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]

Comment 1 Aaron Ogburn 2014-05-13 18:26:06 UTC
A null pointer check was added already to avoid the NPE.  This fix got in pretty quick With the upgrade to 7.4.2.Final, but just wanted to get this bug and fix noted.


Note You need to log in before you can comment on or make changes to this bug.