You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by GitBox <gi...@apache.org> on 2026/09/01 13:56:27 UTC

[GH] (ofbiz-framework/release24.09): Workflow run "Java CI with Gradle" is working again!

The GitHub Actions job "Java CI with Gradle" on ofbiz-framework.git/release24.09 has succeeded.
Run started by GitHub user mridulpathak (triggered by mridulpathak).

Head commit for run:
af121374e12f45633bba76ac51a6fa96f920b6eb / Mridul Pathak <mr...@gmail.com>
Fixed: Service dispatcher local context race causes intermittent NullPointerException (OFBIZ-13508)

ServiceDispatcher#localContext was a plain HashMap read without synchronization by getLocalContext(), getLocalDispatcher() and containsContext() while register()/deregister() mutated it under a synchronized lock. Under concurrent dispatcher registration, such as many test suites constructing LocalDispatchers against the same delegator, an unsynchronized read could transiently return null for a key that was, and still is, registered, surfacing as a NullPointerException in checkAuth() and other core service-call paths. This switches localContext to a ConcurrentHashMap so those lock-free reads stay safe against a concurrent writer, with a ServiceDispatcherConcurrencyTest regression test added as a standing guard against this race reappearing.

Report URL: https://github.com/apache/ofbiz-framework/actions/runs/33513011378

With regards,
GitHub Actions via GitBox