[
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)