Skip to content

Bug Report: Payara 7.2026.10 — include upstream Grizzly fix for StackOverflowError during WebSocket shutdown #8559

Open

Description

@pputerla

Brief Summary

Payara Embedded 7.2026.10 uses Grizzly 5.0.3, which contains a regression that can cause StackOverflowError during Tyrus WebSocket shutdown.

The fix is already merged upstream:

Please incorporate this fix into Payara through a Grizzly dependency update when a fixed release becomes available, or an appropriate backport. At the time of writing, the fix has not yet been included in a published Grizzly release.

Expected Outcome

WebSocket shutdown should complete or report an I/O error without unbounded synchronous callbacks.

Current Outcome

During connection termination, Grizzly 5.0.3 can return false from canWrite() while synchronously invoking onWritePossible() through notifyCanWrite(). Tyrus can repeatedly retry this contradictory readiness result until StackOverflowError.

The upstream fix makes write-readiness registration report an error for a closing connection rather than reporting write availability, and includes regression coverage.

Payara adopted Grizzly 5.0.3 in Payara PR #8478; Payara’s current pom.xml still references that version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Status: OpenIssue has been triaged by the front-line engineers and is being worked on verification

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions