cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-6436) NPE in DefaultLogEventMapper when running on cameltransport
Date Tue, 09 Jun 2015 08:11:00 GMT

    [ https://issues.apache.org/jira/browse/CXF-6436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14578544#comment-14578544
] 

Christian Schneider commented on CXF-6436:
------------------------------------------

Can you give a stack trace of the NPE. The if statements above normally should avoid the NPE.
I can imagine that there is a problem if  the key is there but the value is null. Normally
this should not happen though.

> NPE in DefaultLogEventMapper when running on cameltransport
> -----------------------------------------------------------
>
>                 Key: CXF-6436
>                 URL: https://issues.apache.org/jira/browse/CXF-6436
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 3.1.0
>            Reporter: David J. M. Karlsen
>
>          if (message.containsKey(Message.HTTP_REQUEST_METHOD)) {
>             String httpMethod = message.get(Message.HTTP_REQUEST_METHOD).toString()
> and              if (message.containsKey(Message.REQUEST_URI)) {
>                 String requestUri = message.get(Message.REQUEST_URI).toString();
> can hit nullpointers when running the cxf bus with a cameltransport (which again uses
JMS as the underlying real transport) - as it does not run over http - the check needs to
be improved to cater for the value possibly being null.



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

Mime
View raw message