camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-7256) NullPointerException at DefaultCxfRsBinding
Date Fri, 28 Feb 2014 02:33:20 GMT

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

Willem Jiang commented on CAMEL-7256:
-------------------------------------

We need to check if the exchange has the exception before throw it.
I just committed a patch for it into master, camel-2.12.x and camel-2.11.x.

> NullPointerException at DefaultCxfRsBinding
> -------------------------------------------
>
>                 Key: CAMEL-7256
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7256
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 2.12.1
>            Reporter: Valentin Mayamsin
>            Assignee: Willem Jiang
>             Fix For: 2.12.4, 2.13.0
>
>
> In case if message.isFault() is true, but no Exception set:
> {code}
> Caused by: java.lang.NullPointerException
>         at org.apache.camel.component.cxf.jaxrs.DefaultCxfRsBinding.populateCxfRsResponseFromExchange(DefaultCxfRsBinding.java:76)[202:org.apache.camel.camel-cxf:2.12.1]
>         at org.apache.camel.component.cxf.jaxrs.CxfRsInvoker.returnResponse(CxfRsInvoker.java:166)[202:org.apache.camel.camel-cxf:2.12.1]
>         at org.apache.camel.component.cxf.jaxrs.CxfRsInvoker.asyncInvoke(CxfRsInvoker.java:107)[202:org.apache.camel.camel-cxf:2.12.1]
>         at org.apache.camel.component.cxf.jaxrs.CxfRsInvoker.performInvocation(CxfRsInvoker.java:57)[202:org.apache.camel.camel-cxf:2.12.1]
>         at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)[158:org.apache.cxf.cxf-api:2.7.6]
>         ... 23 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message