cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-6080) Headers.logProtocolHeaders raise NPE on null header value
Date Mon, 03 Nov 2014 17:30:36 GMT

     [ https://issues.apache.org/jira/browse/CXF-6080?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Kulp resolved CXF-6080.
------------------------------
       Resolution: Duplicate
    Fix Version/s: 2.7.14
                   3.0.3
         Assignee: Daniel Kulp

> Headers.logProtocolHeaders raise NPE on null header value
> ---------------------------------------------------------
>
>                 Key: CXF-6080
>                 URL: https://issues.apache.org/jira/browse/CXF-6080
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.0.2
>            Reporter: Raphael Jolivet
>            Assignee: Daniel Kulp
>            Priority: Minor
>             Fix For: 3.0.3, 2.7.14
>
>
> We have moved to CXF3.0.2 recently.
> We encounter a NPE when using CXf as client and one 
> header has null value.
> This was the case before (null header value) and was working fine.
> A null check in Headers.java:280 would fix the issue.
> Caused by: java.lang.NullPointerException
>         at org.apache.cxf.transport.http.Headers.logProtocolHeaders(Headers.java:280)
[org-apache-cxf-cxf-rt-transports-http-3.0.2.jar:3.0.2]
>         at org.apache.cxf.transport.http.Headers.setProtocolHeadersInConnection(Headers.java:298)
[org-apache-cxf-cxf-rt-transports-http-3.0.2.jar:3.0.2]
>         at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.setProtocolHeaders(URLConnectionHTTPConduit.java:213)
[org-apache-cxf-cxf-rt-transports-http-3.0.2.jar:3.0.2
> ]
>         at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(HTTPConduit.java:1279)
[org-apache-cxf-cxf-rt-transports-http-3.0.2.jar:3.0.2]
>         at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1319)
[org-apache-cxf-cxf-rt-transports-http-3.0.2.jar:3.0.2]
>         ... 49 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message