cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <>
Subject [jira] Commented: (CXF-3249) When accessing a service that requires auth CXF returns: RuntimeException: Can't find input stream in message
Date Mon, 17 Jan 2011 11:43:43 GMT


Sergey Beryozkin commented on CXF-3249:

Hi Christian

One minor comment is that having a 500 status does not guarantee that it is a valid SOAP fault
response, but this probably indicates the server is in a pretty bad state.

The other comment is that you may still want to wrap a CXF specific HTTP exception into a
javax one you spotted on Friday somewhere at the JAX-WS level (in-fault interceptor comes
to mind), this would make the JAX-WS client code portable and it will also let us experiment
going forward with different approaches. 

For example, the reason the JAX-RS client runtime 'disables' the exceptions at the HTTPConduit
level is that noisy log messages are being generated and if we have a client code catching
(JAX-RS) WebApplicationExceptions or checking explicit (JAX-RS) Responses and doing some logging
of it own then the logging becomes too visible... Disabling logging at the transport level
is not possible because we may have some genuine IO exceptions like timeout, etc, but choosing
to deal with 400+ statuses at the higher level is a possibility

thanks, Sergey

> When accessing a service that requires auth CXF returns: RuntimeException: Can't find
input stream in message
> -------------------------------------------------------------------------------------------------------------
>                 Key: CXF-3249
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.3.1
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>             Fix For: 2.3.2
> I try to access a service that requires basic auth. My request does not include credentials.
I would expect CXF to return something like
> 401 Authentication required. But it returns the following exception:
> WARNUNG: Interceptor for {}CustomerServiceService#{}getCustomersByName
has thrown exception, unwinding now
> java.lang.RuntimeException: Can't find input stream in message
> 	at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(
> 	at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
> 	at org.apache.cxf.endpoint.ClientImpl.onMessage(
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(
> 	at org.apache.cxf.transport.AbstractConduit.close(
> 	at org.apache.cxf.transport.http.HTTPConduit.close(
> 	at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(
> 	at org.apache.cxf.frontend.ClientProxy.invokeSync(
> 	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(
> 	at $Proxy30.getCustomersByName(Unknown Source)
> 	at client.JaxWsClient.main(

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message