cxf-issues mailing list archives

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


CXF User commented on CXF-3249:

Hi Christian,
I do not have access in the server side implementation - I am the web service consumer.
What I have is the WSDL file and a jar file containing all related artifacts.

Can you tell me if "BindingProvider" is the only option to pass username/password on the request
Previous version of  JBoss would support "Metro WS stack" and we could use ""
instead of BindingProvider and could access the remote web service successfully.
But with JBoss 6 GA release  "Metro WS stack" has been discontinued and we have to use "CXF
WS stack".
I alos find that if I use "JAXWS RI" implementation that comes with JDK 6, I can still use
the "" and can successfullyinvoke the remote web service.

Is there any way I can tweak my ws-client side code so that by using ""
I can access that remote web service with CXF stack?

Thanks a lot for your help.

> 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