Skip to content

NullPointerException occurs in SocketRWChannelSelector #33686

@ncpibm

Description

@ncpibm

Describe the bug
A NullPointerException is thrown in com.ibm.ws.tcpchannel.internal.SocketRWChannelSelector.updateSelector().

------Start of DE processing------ = [12/12/25, 0:44:08:566 UTC ]
Exception = java.lang.NullPointerException
Source = com.ibm.ws.tcpchannel.internal.SocketRWChannelSelector
probeid = 254
Stack Dump = java.lang.NullPointerException
	at com.ibm.ws.tcpchannel.internal.SocketRWChannelSelector.updateSelector(SocketRWChannelSelector.java:229)
	at com.ibm.ws.tcpchannel.internal.ChannelSelector.run(ChannelSelector.java:272)
	at java.base/java.lang.Thread.run(Thread.java:1485)

Dump of callerThis
Object type = com.ibm.ws.tcpchannel.internal.SocketRWChannelSelector
  strings[0] = "Outbound Read Selector.1"
  strings[1] = "quit: false"
  strings[2] = "waitingToQuit: false"
  strings[3] = "# of keys=0"

Steps to Reproduce

During shutdown or connection closure, the NioSocketIOChannel or its underlying SocketChannel may already be null, resulting in an unguarded dereference at getKey(ioSocket.getChannel()).
This occurred as a built break
built break
https://wasrtc.hursley.ibm.com:9443/jazz/web/projects/WS-CD#action=com.ibm.team.workitem.viewWorkItem&id=307753

Expected behavior
No nullpointer exception is expected

Diagnostic information:

  • product = WebSphere Application Server 26.0.0.1 (wlp-1.0.109.cl260120251211-1101)
  • wlp.install.dir = /home/ci/Build/workspace/ebcTestRunner/dev/autoFVT/image/output/wlp/
  • java.home = /home/ci/Build/workspace/ebcTestRunner/dev/jvm/undertest/jdk-25.0.1+8
  • java.version = 25.0.1
  • java.runtime = IBM Semeru Runtime Open Edition (25.0.1+8-LTS)
  • os = Linux (5.15.0-161-generic; amd64) (en)

Metadata

Metadata

Assignees

Labels

release bugThis bug is present in a released version of Open Libertyteam:Sirius

Type

No type

Projects

Status

Completed Tasks

Relationships

None yet

Development

No branches or pull requests

Issue actions