cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ezequiel Rosas Garcia (JIRA)" <>
Subject [jira] [Created] (CXF-7309) JAX-RS @Context fields throw NPE in OSGI hot deployed filters
Date Fri, 31 Mar 2017 23:47:41 GMT
Ezequiel Rosas Garcia created CXF-7309:

             Summary: JAX-RS @Context fields throw NPE in OSGI hot deployed filters
                 Key: CXF-7309
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS
    Affects Versions: 3.1.10, 3.0.12
            Reporter: Ezequiel Rosas Garcia

This happens with a PreMatching filter that is loaded from OSGI.
I found that when the filter OSGI bundle is hot deployed, all other already running bundles
using it would start throwing NPE when trying to access the injected fields inside the filter
(like CXF-7248)

This seems to happen due to other bundles retaining their ThreadLocal references in their
own AbstractResourceInfo#getSetterProxyMap() while the OSGI Proxy starts redirecting to a
new filter object which has new different ThreadLocal references as soon as it is used for
the first time after hot re deployment.

Test: [Link](
PR: [Link](

This message was sent by Atlassian JIRA

View raw message