[
https://issues.apache.org/jira/browse/CXF-9148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Freeman Yue Fang resolved CXF-9148.
-----------------------------------
Fix Version/s: 4.1.3
4.0.9
Resolution: Fixed
> Using @Oneway annotation cases NullPointerException in CXF + Jetty 12 REST
> Service
> ----------------------------------------------------------------------------------
>
> Key: CXF-9148
> URL: https://issues.apache.org/jira/browse/CXF-9148
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 4.1.2
> Reporter: Artem
> Assignee: Freeman Yue Fang
> Priority: Major
> Fix For: 4.1.3, 4.0.9
>
> Attachments: OnewayJetty12Example.zip
>
>
> When invoking *{{request.getAttribute()}}* within a method annotated with
> *{{@org.apache.cxf.jaxrs.ext.Oneway}}* in a Jetty 12 REST service using
> Apache CXF, a *{{NullPointerException}}* occurs. The *{{HttpServletRequest}}*
> object itself is not {{{}null{}}}, but its internal request oject appears to
> have been cleared before attribute access, leading to unexpected behavior.
> It works on Jetty 9.
> Probably it relates to https://issues.apache.org/jira/browse/CXF-8671
> Steps to reproduce:
> * Use the attached code (or create Jetty12 Oneway REST and call
> *{{request.getAttribute()}}* in the request processing method)
> * Run and execute GET requestÂ
--
This message was sent by Atlassian Jira
(v8.20.10#820010)