[
https://issues.apache.org/jira/browse/CXF-4072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13197724#comment-13197724
]
Aki Yoshida edited comment on CXF-4072 at 2/1/12 10:21 AM:
-----------------------------------------------------------
Hi Dan,
Thanks for the information.
That means, we should detect this condition at the endpoint setup (or at code
generation) and throw an exception?
I am not sure if there is another way to cause this condition.
In any case, we could also check this condition during the runtime and handle
it as an error so that a SOAP fault is returned to the client. Currently, this
NPE gets swallowed and an empty HTTP 200 response is returned.
Regards, aki
was (Author: ay):
Hi Dan,
Thanks for the information.
That means, we should detect this condition at the endpoint setup and throw an
exception.
I am not sure if there is another way to cause this condition.
In that case, it would be better to also check this condition during the
runtime and handle it as an error so that a SOAP fault is returned to the
client. Currently, this NPE gets swallowed and an empty HTTP 200 response is
returned.
Regards, aki
> NPE in PhaseInterceptorChain
> -----------------------------
>
> Key: CXF-4072
> URL: https://issues.apache.org/jira/browse/CXF-4072
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.5.2
> Reporter: Vadim Dmitriev
> Assignee: Aki Yoshida
> Attachments: cxf.xml, full_processing_log.txt, service.wsdl
>
>
> NPE is thrown in PhaseInterceptorChain when fault is thrown in WS impl method:
> java.lang.NullPointerException: null
> at
> org.apache.cxf.interceptor.FaultOutInterceptor.getFaultForClass(FaultOutInterceptor.java:163)
> at
> org.apache.cxf.interceptor.FaultOutInterceptor.handleMessage(FaultOutInterceptor.java:67)
> at
> org.apache.cxf.jaxws.interceptors.WebFaultOutInterceptor.handleMessage(WebFaultOutInterceptor.java:136)
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
> at
> org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:107)
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:323)
> at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:123)
> at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:207)
> at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:213)
> at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:193)
> at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:126)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:185)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:108)
> <...>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira