Discussion:
Error in java webservice client CXF: org.apache.cxf.interceptor.Fault: Could not send Message.
Renuka Pathak
2010-04-05 16:15:19 UTC
Permalink
Hi CXF Team,

I am new to CXF. I have generated java webservice client using CXF
wsdl2Java utility. I am accesing a https webservice. I am setting
Authentication parameters also in the java client. But when I run the client
I get org.apache.cxf.interceptor.Fault: Could not send Message error. Could
you please let me know what am I doing wrong? I am not sure if i am using
authentication mechanism correct or not? I am using a non spring plain java
client. Following is the code & error I am getting.




private static void setAuthParameter(DsmlSoap port)
{

org.apache.cxf.endpoint.Client client =
org.apache.cxf.frontend.ClientProxy.getClient(port);

System.out.println("org.apache.cxf.frontend.ClientProxy.getClient(port):" +
org.apache.cxf.frontend.ClientProxy.getClient(port));
org.apache.cxf.endpoint.Endpoint cxfEndpoint = client.getEndpoint();
System.out.println("client.getEndPoint: " + cxfEndpoint);
Map<String,Object> outProps= new HashMap<String,Object>();



outProps.put(WSHandlerConstants.ACTION,WSHandlerConstants.USERNAME_TOKEN);
outProps.put(WSHandlerConstants.PASSWORD_TYPE, WSConstants.PW_TEXT);
outProps.put(WSHandlerConstants.USER, "endUser");

outProps.put(WSHandlerConstants.PW_CALLBACK_CLASS,ClientPasswordHandler.class.getName());

WSS4JOutInterceptor wssOut = new WSS4JOutInterceptor(outProps);

cxfEndpoint.getOutInterceptors().add(wssOut);

cxfEndpoint.getOutInterceptors().add(new SAAJOutInterceptor());

}
Note: ClientPasswordHandler has also been impemented & I set the password in
it.


Client code which is calling above method:

public static void main(String args[]) throws Exception {
URL wsdlURL = DsmlQueryService.WSDL_LOCATION;
System.out.println("ds: " + wsdlURL);
if (args.length > 0) {
File wsdlFile = new File(args[0]);
try {
if (wsdlFile.exists()) {
wsdlURL = wsdlFile.toURI().toURL();
} else {
wsdlURL = new URL(args[0]);
}
} catch (MalformedURLException e) {
e.printStackTrace();
}
}

DsmlQueryService ss = new DsmlQueryService(wsdlURL, SERVICE_NAME);

System.out.println("Invoking directoryRequest.22222.." + ss);

DsmlSoap port = ss.getDsmlSoapQuery();

setAuthParameter(port);
DsmlSoap_DsmlSoapQuery_Client dsmlClient = new
DsmlSoap_DsmlSoapQuery_Client();

BatchRequest _directoryRequest_batchRequest=
dsmlClient.callSearchRequest();

BatchResponse _directoryRequest__return =
port.directoryRequest(_directoryRequest_batchRequest);

}

Error:
Interceptor for
{urn:oasis:names:tc:DSML:2:0:core}dsmlQueryService#{urn:oasis:names:tc:DSML:2:0:core}directoryRequest
has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.
at
org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:48)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:484)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:310)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:262)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
at $Proxy62.directoryRequest(Unknown Source)
at
main.java.gov.osc.enrollment.webserviceSFS.client.DsmlSoap_DsmlSoapQuery_Client.main(DsmlSoap_DsmlSoapQuery_Client.java:122)
Caused by: java.net.MalformedURLException: Invalid address. Endpoint address
cannot be null.
at
org.apache.cxf.transport.http.HTTPConduit.getURL(HTTPConduit.java:833)
at
org.apache.cxf.transport.http.HTTPConduit.getURL(HTTPConduit.java:818)
at
org.apache.cxf.transport.http.HTTPConduit.setupURL(HTTPConduit.java:745)
at
org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:494)
at
org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:46)
Glen Mazza
2010-04-05 16:53:20 UTC
Permalink
I believe you're mistaking the UsernameToken profile (message-level security)
with the transport-layer security required by SSL. (You shouldn't need to
configure the USERNAME_TOKEN and PASSWORD constants that you're using.)
Perhaps my ssl[1] and soap client[2] tutorials can be of help to you.

HTH,
Glen

[1] http://www.jroller.com/gmazza/entry/setting_up_ssl_and_basic (Look at #7
in particular for how transport-layer usernames and passwords are given)

[2] http://www.jroller.com/gmazza/entry/soap_client_tutorial
Post by Renuka Pathak
Hi CXF Team,
I am new to CXF. I have generated java webservice client using CXF
wsdl2Java utility. I am accesing a https webservice. I am setting
Authentication parameters also in the java client. But when I run the client
I get org.apache.cxf.interceptor.Fault: Could not send Message error. Could
you please let me know what am I doing wrong? I am not sure if i am using
authentication mechanism correct or not? I am using a non spring plain java
client. Following is the code & error I am getting.
private static void setAuthParameter(DsmlSoap port)
{
org.apache.cxf.endpoint.Client client =
org.apache.cxf.frontend.ClientProxy.getClient(port);
System.out.println("org.apache.cxf.frontend.ClientProxy.getClient(port):"
+
org.apache.cxf.frontend.ClientProxy.getClient(port));
org.apache.cxf.endpoint.Endpoint cxfEndpoint =
client.getEndpoint();
System.out.println("client.getEndPoint: " + cxfEndpoint);
Map<String,Object> outProps= new HashMap<String,Object>();
outProps.put(WSHandlerConstants.ACTION,WSHandlerConstants.USERNAME_TOKEN);
outProps.put(WSHandlerConstants.PASSWORD_TYPE,
WSConstants.PW_TEXT);
outProps.put(WSHandlerConstants.USER, "endUser");
outProps.put(WSHandlerConstants.PW_CALLBACK_CLASS,ClientPasswordHandler.class.getName());
WSS4JOutInterceptor wssOut = new WSS4JOutInterceptor(outProps);
cxfEndpoint.getOutInterceptors().add(wssOut);
cxfEndpoint.getOutInterceptors().add(new SAAJOutInterceptor());
}
Note: ClientPasswordHandler has also been impemented & I set the password in
it.
public static void main(String args[]) throws Exception {
URL wsdlURL = DsmlQueryService.WSDL_LOCATION;
System.out.println("ds: " + wsdlURL);
if (args.length > 0) {
File wsdlFile = new File(args[0]);
try {
if (wsdlFile.exists()) {
wsdlURL = wsdlFile.toURI().toURL();
} else {
wsdlURL = new URL(args[0]);
}
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
DsmlQueryService ss = new DsmlQueryService(wsdlURL, SERVICE_NAME);
System.out.println("Invoking directoryRequest.22222.." + ss);
DsmlSoap port = ss.getDsmlSoapQuery();
setAuthParameter(port);
DsmlSoap_DsmlSoapQuery_Client dsmlClient = new
DsmlSoap_DsmlSoapQuery_Client();
BatchRequest _directoryRequest_batchRequest=
dsmlClient.callSearchRequest();
BatchResponse _directoryRequest__return =
port.directoryRequest(_directoryRequest_batchRequest);
}
Interceptor for
{urn:oasis:names:tc:DSML:2:0:core}dsmlQueryService#{urn:oasis:names:tc:DSML:2:0:core}directoryRequest
has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.
at
org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:48)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:484)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:310)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:262)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
at $Proxy62.directoryRequest(Unknown Source)
at
main.java.gov.osc.enrollment.webserviceSFS.client.DsmlSoap_DsmlSoapQuery_Client.main(DsmlSoap_DsmlSoapQuery_Client.java:122)
Caused by: java.net.MalformedURLException: Invalid address. Endpoint address
cannot be null.
at
org.apache.cxf.transport.http.HTTPConduit.getURL(HTTPConduit.java:833)
at
org.apache.cxf.transport.http.HTTPConduit.getURL(HTTPConduit.java:818)
at
org.apache.cxf.transport.http.HTTPConduit.setupURL(HTTPConduit.java:745)
at
org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:494)
at
org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:46)
--
View this message in context: http://old.nabble.com/Error-in-java-webservice-client-CXF%3A-org.apache.cxf.interceptor.Fault%3A--Could-not-send-Message.-tp28141672p28142020.html
Sent from the cxf-user mailing list archive at Nabble.com.
Renuka Pathak
2010-04-05 18:17:40 UTC
Permalink
Thanks Glen, Your tutorials are very useful. I tied using BindingProvider in
code but now I am getting following error.

org.apache.cxf.interceptor.Fault: Could not send Message.
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:484)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:310)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:262)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
at $Proxy62.directoryRequest(Unknown Source)
at main.java.gov.osc.enrollment.webserviceSFS.util.names.tc.dsml._2._0.core.DsmlSoap_DsmlSoapQuery_Client.main(DsmlSoap_DsmlSoapQuery_Client.java:116)
*Caused by: java.net.HttpRetryException: cannot retry due to server
authentication, in streaming mode*
Post by Glen Mazza
I believe you're mistaking the UsernameToken profile (message-level security)
with the transport-layer security required by SSL. (You shouldn't need to
configure the USERNAME_TOKEN and PASSWORD constants that you're using.)
Perhaps my ssl[1] and soap client[2] tutorials can be of help to you.
HTH,
Glen
[1] http://www.jroller.com/gmazza/entry/setting_up_ssl_and_basic (Look at #7
in particular for how transport-layer usernames and passwords are given)
[2] http://www.jroller.com/gmazza/entry/soap_client_tutorial
Post by Renuka Pathak
Hi CXF Team,
I am new to CXF. I have generated java webservice client using CXF
wsdl2Java utility. I am accesing a https webservice. I am setting
Authentication parameters also in the java client. But when I run the client
I get org.apache.cxf.interceptor.Fault: Could not send Message error. Could
you please let me know what am I doing wrong? I am not sure if i am using
authentication mechanism correct or not? I am using a non spring plain java
client. Following is the code & error I am getting.
private static void setAuthParameter(DsmlSoap port)
{
org.apache.cxf.endpoint.Client client =
org.apache.cxf.frontend.ClientProxy.getClient(port);
System.out.println("org.apache.cxf.frontend.ClientProxy.getClient(port):"
+
org.apache.cxf.frontend.ClientProxy.getClient(port));
org.apache.cxf.endpoint.Endpoint cxfEndpoint =
client.getEndpoint();
System.out.println("client.getEndPoint: " + cxfEndpoint);
Map<String,Object> outProps= new HashMap<String,Object>();
outProps.put(WSHandlerConstants.ACTION,WSHandlerConstants.USERNAME_TOKEN);
Post by Renuka Pathak
outProps.put(WSHandlerConstants.PASSWORD_TYPE,
WSConstants.PW_TEXT);
outProps.put(WSHandlerConstants.USER, "endUser");
outProps.put(WSHandlerConstants.PW_CALLBACK_CLASS,ClientPasswordHandler.class.getName());
Post by Renuka Pathak
WSS4JOutInterceptor wssOut = new WSS4JOutInterceptor(outProps);
cxfEndpoint.getOutInterceptors().add(wssOut);
cxfEndpoint.getOutInterceptors().add(new SAAJOutInterceptor());
}
Note: ClientPasswordHandler has also been impemented & I set the password in
it.
public static void main(String args[]) throws Exception {
URL wsdlURL = DsmlQueryService.WSDL_LOCATION;
System.out.println("ds: " + wsdlURL);
if (args.length > 0) {
File wsdlFile = new File(args[0]);
try {
if (wsdlFile.exists()) {
wsdlURL = wsdlFile.toURI().toURL();
} else {
wsdlURL = new URL(args[0]);
}
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
DsmlQueryService ss = new DsmlQueryService(wsdlURL,
SERVICE_NAME);
Post by Renuka Pathak
System.out.println("Invoking directoryRequest.22222.." + ss);
DsmlSoap port = ss.getDsmlSoapQuery();
setAuthParameter(port);
DsmlSoap_DsmlSoapQuery_Client dsmlClient = new
DsmlSoap_DsmlSoapQuery_Client();
BatchRequest _directoryRequest_batchRequest=
dsmlClient.callSearchRequest();
BatchResponse _directoryRequest__return =
port.directoryRequest(_directoryRequest_batchRequest);
}
Interceptor for
{urn:oasis:names:tc:DSML:2:0:core}dsmlQueryService#{urn:oasis:names:tc:DSML:2:0:core}directoryRequest
Post by Renuka Pathak
has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.
at
org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:48)
Post by Renuka Pathak
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
Post by Renuka Pathak
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:484)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:310)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:262)
at
org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
Post by Renuka Pathak
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
at $Proxy62.directoryRequest(Unknown Source)
at
main.java.gov.osc.enrollment.webserviceSFS.client.DsmlSoap_DsmlSoapQuery_Client.main(DsmlSoap_DsmlSoapQuery_Client.java:122)
Post by Renuka Pathak
Caused by: java.net.MalformedURLException: Invalid address. Endpoint address
cannot be null.
at
org.apache.cxf.transport.http.HTTPConduit.getURL(HTTPConduit.java:833)
at
org.apache.cxf.transport.http.HTTPConduit.getURL(HTTPConduit.java:818)
at
org.apache.cxf.transport.http.HTTPConduit.setupURL(HTTPConduit.java:745)
at
org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:494)
at
org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:46)
--
http://old.nabble.com/Error-in-java-webservice-client-CXF%3A-org.apache.cxf.interceptor.Fault%3A--Could-not-send-Message.-tp28141672p28142020.html
Sent from the cxf-user mailing list archive at Nabble.com.
Glen Mazza
2010-04-05 18:27:45 UTC
Permalink
I don't know. In your shoes, if Googling pertinent portions of your error
message below doesn't help, I would quickly rig up a Metro version of your
SOAP client[2] (codewise, Metro and CXF are exceptionally close, if not
identical, given what you're trying to do) and see if it gives you any
different error messages that can help pinpoint the problem.

Glen
Post by Renuka Pathak
Thanks Glen, Your tutorials are very useful. I tied using BindingProvider in
code but now I am getting following error.
org.apache.cxf.interceptor.Fault: Could not send Message.
at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:484)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:310)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:262)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
at $Proxy62.directoryRequest(Unknown Source)
at
main.java.gov.osc.enrollment.webserviceSFS.util.names.tc.dsml._2._0.core.DsmlSoap_DsmlSoapQuery_Client.main(DsmlSoap_DsmlSoapQuery_Client.java:116)
*Caused by: java.net.HttpRetryException: cannot retry due to server
authentication, in streaming mode*
Post by Glen Mazza
I believe you're mistaking the UsernameToken profile (message-level security)
with the transport-layer security required by SSL. (You shouldn't need to
configure the USERNAME_TOKEN and PASSWORD constants that you're using.)
Perhaps my ssl[1] and soap client[2] tutorials can be of help to you.
HTH,
Glen
[1] http://www.jroller.com/gmazza/entry/setting_up_ssl_and_basic (Look at #7
in particular for how transport-layer usernames and passwords are given)
[2] http://www.jroller.com/gmazza/entry/soap_client_tutorial
Post by Renuka Pathak
Hi CXF Team,
I am new to CXF. I have generated java webservice client using CXF
wsdl2Java utility. I am accesing a https webservice. I am setting
Authentication parameters also in the java client. But when I run the client
I get org.apache.cxf.interceptor.Fault: Could not send Message error. Could
you please let me know what am I doing wrong? I am not sure if i am
using
Post by Renuka Pathak
authentication mechanism correct or not? I am using a non spring plain java
client. Following is the code & error I am getting.
private static void setAuthParameter(DsmlSoap port)
{
org.apache.cxf.endpoint.Client client =
org.apache.cxf.frontend.ClientProxy.getClient(port);
System.out.println("org.apache.cxf.frontend.ClientProxy.getClient(port):"
Post by Renuka Pathak
+
org.apache.cxf.frontend.ClientProxy.getClient(port));
org.apache.cxf.endpoint.Endpoint cxfEndpoint =
client.getEndpoint();
System.out.println("client.getEndPoint: " + cxfEndpoint);
Map<String,Object> outProps= new HashMap<String,Object>();
outProps.put(WSHandlerConstants.ACTION,WSHandlerConstants.USERNAME_TOKEN);
Post by Renuka Pathak
outProps.put(WSHandlerConstants.PASSWORD_TYPE,
WSConstants.PW_TEXT);
outProps.put(WSHandlerConstants.USER, "endUser");
outProps.put(WSHandlerConstants.PW_CALLBACK_CLASS,ClientPasswordHandler.class.getName());
Post by Renuka Pathak
WSS4JOutInterceptor wssOut = new WSS4JOutInterceptor(outProps);
cxfEndpoint.getOutInterceptors().add(wssOut);
cxfEndpoint.getOutInterceptors().add(new SAAJOutInterceptor());
}
Note: ClientPasswordHandler has also been impemented & I set the
password
Post by Renuka Pathak
in
it.
public static void main(String args[]) throws Exception {
URL wsdlURL = DsmlQueryService.WSDL_LOCATION;
System.out.println("ds: " + wsdlURL);
if (args.length > 0) {
File wsdlFile = new File(args[0]);
try {
if (wsdlFile.exists()) {
wsdlURL = wsdlFile.toURI().toURL();
} else {
wsdlURL = new URL(args[0]);
}
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
DsmlQueryService ss = new DsmlQueryService(wsdlURL,
SERVICE_NAME);
Post by Renuka Pathak
System.out.println("Invoking directoryRequest.22222.." + ss);
DsmlSoap port = ss.getDsmlSoapQuery();
setAuthParameter(port);
DsmlSoap_DsmlSoapQuery_Client dsmlClient = new
DsmlSoap_DsmlSoapQuery_Client();
BatchRequest _directoryRequest_batchRequest=
dsmlClient.callSearchRequest();
BatchResponse _directoryRequest__return =
port.directoryRequest(_directoryRequest_batchRequest);
}
Interceptor for
{urn:oasis:names:tc:DSML:2:0:core}dsmlQueryService#{urn:oasis:names:tc:DSML:2:0:core}directoryRequest
Post by Renuka Pathak
has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.
at
org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:48)
Post by Renuka Pathak
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
Post by Renuka Pathak
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:484)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:310)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:262)
at
org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
Post by Renuka Pathak
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
at $Proxy62.directoryRequest(Unknown Source)
at
main.java.gov.osc.enrollment.webserviceSFS.client.DsmlSoap_DsmlSoapQuery_Client.main(DsmlSoap_DsmlSoapQuery_Client.java:122)
Post by Renuka Pathak
Caused by: java.net.MalformedURLException: Invalid address. Endpoint address
cannot be null.
at
org.apache.cxf.transport.http.HTTPConduit.getURL(HTTPConduit.java:833)
at
org.apache.cxf.transport.http.HTTPConduit.getURL(HTTPConduit.java:818)
at
org.apache.cxf.transport.http.HTTPConduit.setupURL(HTTPConduit.java:745)
Post by Renuka Pathak
at
org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:494)
at
org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:46)
--
http://old.nabble.com/Error-in-java-webservice-client-CXF%3A-org.apache.cxf.interceptor.Fault%3A--Could-not-send-Message.-tp28141672p28142020.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
View this message in context: http://old.nabble.com/Error-in-java-webservice-client-CXF%3A-org.apache.cxf.interceptor.Fault%3A--Could-not-send-Message.-tp28141672p28143217.html
Sent from the cxf-user mailing list archive at Nabble.com.
Daniel Kulp
2010-04-05 19:17:14 UTC
Permalink
Post by Renuka Pathak
Thanks Glen, Your tutorials are very useful. I tied using BindingProvider
in code but now I am getting following error.
org.apache.cxf.interceptor.Fault: Could not send Message.
at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInt
erceptor.handleMessage(MessageSenderInterceptor.java:64) at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorCha
in.java:243) at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:484) at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:310) at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:262) at
org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124) at
$Proxy62.directoryRequest(Unknown Source)
at
main.java.gov.osc.enrollment.webserviceSFS.util.names.tc.dsml._2._0.core.D
smlSoap_DsmlSoapQuery_Client.main(DsmlSoap_DsmlSoapQuery_Client.java:116)
*Caused by: java.net.HttpRetryException: cannot retry due to server
authentication, in streaming mode*
This usually means the username/password for basic auth was either not
provided correctly or was wrong. Basically, the server sent back a "please
authorize" request, but since we are in streaming mode, not something we could
support.

Definitely doublecheck the name/password combination and that it expects basic
auth an not digest auth or similar.

Dan
Post by Renuka Pathak
Post by Glen Mazza
I believe you're mistaking the UsernameToken profile (message-level security)
with the transport-layer security required by SSL. (You shouldn't need
to configure the USERNAME_TOKEN and PASSWORD constants that you're
using.) Perhaps my ssl[1] and soap client[2] tutorials can be of help to
you.
HTH,
Glen
[1] http://www.jroller.com/gmazza/entry/setting_up_ssl_and_basic (Look at #7
in particular for how transport-layer usernames and passwords are given)
[2] http://www.jroller.com/gmazza/entry/soap_client_tutorial
Post by Renuka Pathak
Hi CXF Team,
I am new to CXF. I have generated java webservice client using CXF
wsdl2Java utility. I am accesing a https webservice. I am setting
Authentication parameters also in the java client. But when I run the client
I get org.apache.cxf.interceptor.Fault: Could not send Message error. Could
you please let me know what am I doing wrong? I am not sure if i am
using authentication mechanism correct or not? I am using a non
spring plain java
client. Following is the code & error I am getting.
private static void setAuthParameter(DsmlSoap port)
{
org.apache.cxf.endpoint.Client client =
org.apache.cxf.frontend.ClientProxy.getClient(port);
System.out.println("org.apache.cxf.frontend.ClientProxy.getClient(port)
:" +
org.apache.cxf.frontend.ClientProxy.getClient(port));
org.apache.cxf.endpoint.Endpoint cxfEndpoint =
client.getEndpoint();
System.out.println("client.getEndPoint: " + cxfEndpoint);
Map<String,Object> outProps= new HashMap<String,Object>();
outProps.put(WSHandlerConstants.ACTION,WSHandlerConstants.USERNAME_TOKEN)
;
Post by Renuka Pathak
outProps.put(WSHandlerConstants.PASSWORD_TYPE,
WSConstants.PW_TEXT);
outProps.put(WSHandlerConstants.USER, "endUser");
outProps.put(WSHandlerConstants.PW_CALLBACK_CLASS,ClientPasswordHandler.c
lass.getName());
Post by Renuka Pathak
WSS4JOutInterceptor wssOut = new WSS4JOutInterceptor(outProps);
cxfEndpoint.getOutInterceptors().add(wssOut);
cxfEndpoint.getOutInterceptors().add(new SAAJOutInterceptor());
}
Note: ClientPasswordHandler has also been impemented & I set the password in
it.
public static void main(String args[]) throws Exception {
URL wsdlURL = DsmlQueryService.WSDL_LOCATION;
System.out.println("ds: " + wsdlURL);
if (args.length > 0) {
File wsdlFile = new File(args[0]);
try {
if (wsdlFile.exists()) {
wsdlURL = wsdlFile.toURI().toURL();
} else {
wsdlURL = new URL(args[0]);
}
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
DsmlQueryService ss = new DsmlQueryService(wsdlURL,
SERVICE_NAME);
Post by Renuka Pathak
System.out.println("Invoking directoryRequest.22222.." + ss);
DsmlSoap port = ss.getDsmlSoapQuery();
setAuthParameter(port);
DsmlSoap_DsmlSoapQuery_Client dsmlClient = new
DsmlSoap_DsmlSoapQuery_Client();
BatchRequest _directoryRequest_batchRequest=
dsmlClient.callSearchRequest();
BatchResponse _directoryRequest__return =
port.directoryRequest(_directoryRequest_batchRequest);
}
Interceptor for
{urn:oasis:names:tc:DSML:2:0:core}dsmlQueryService#{urn:oasis:names:tc:DS
ML:2:0:core}directoryRequest
Post by Renuka Pathak
has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.
at
org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(Message
SenderInterceptor.java:48)
Post by Renuka Pathak
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorCh
ain.java:243)
Post by Renuka Pathak
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:484)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:310)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:262)
at
org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
Post by Renuka Pathak
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
at $Proxy62.directoryRequest(Unknown Source)
at
main.java.gov.osc.enrollment.webserviceSFS.client.DsmlSoap_DsmlSoapQuery_
Client.main(DsmlSoap_DsmlSoapQuery_Client.java:122)
Post by Renuka Pathak
Caused by: java.net.MalformedURLException: Invalid address. Endpoint address
cannot be null.
at
org.apache.cxf.transport.http.HTTPConduit.getURL(HTTPConduit.java:833)
at
org.apache.cxf.transport.http.HTTPConduit.getURL(HTTPConduit.java:818)
at
org.apache.cxf.transport.http.HTTPConduit.setupURL(HTTPConduit.java:745
)
at
org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:494)
at
org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(Message
SenderInterceptor.java:46)
--
http://old.nabble.com/Error-in-java-webservice-client-CXF%3A-org.apache.c
xf.interceptor.Fault%3A--Could-not-send-Message.-tp28141672p28142020.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Daniel Kulp
dkulp-1oDqGaOF3Lkdnm+***@public.gmane.org
http://dankulp.com/blog
Renuka Pathak
2010-04-05 21:10:48 UTC
Permalink
Hi Dan,

Thanks for your reply. I used 2.2.7 now to generate client classes. when I
run the client using BindingProvider, I get following error message


"HTTP response '*401*: Unauthorized' invoking
https://xxxxxxxx/services/sampleQuery* with NO authorization username
configured in conduit*{urn:oasis:names:tc:DSML:2:0:core}dsmlSoapPort.http-conduit"

I am not sure how to configure username in conduit. I am *not *using spring
& I don't have any server certificate. I just have user name & pwd to access
that webservice. I am passing correct user name & password which I verified
again.

Please let me know how to resolve this problem. I also did not understand
this in your reply " ...*but since we are in streaming mode, not something
we could support." *Does this mean it is not supported in CXF ? Pls help me
understand.

Thanks!!!
Post by Renuka Pathak
Post by Renuka Pathak
Thanks Glen, Your tutorials are very useful. I tied using BindingProvider
in code but now I am getting following error.
org.apache.cxf.interceptor.Fault: Could not send Message.
at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInt
Post by Renuka Pathak
erceptor.handleMessage(MessageSenderInterceptor.java:64) at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorCha
Post by Renuka Pathak
in.java:243) at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:484) at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:310) at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:262) at
org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
at
Post by Renuka Pathak
$Proxy62.directoryRequest(Unknown Source)
at
main.java.gov.osc.enrollment.webserviceSFS.util.names.tc.dsml._2._0.core.D
Post by Renuka Pathak
smlSoap_DsmlSoapQuery_Client.main(DsmlSoap_DsmlSoapQuery_Client.java:116)
*Caused by: java.net.HttpRetryException: cannot retry due to server
authentication, in streaming mode*
This usually means the username/password for basic auth was either not
provided correctly or was wrong. Basically, the server sent back a "please
authorize" request, but since we are in streaming mode, not something we could
support.
Definitely doublecheck the name/password combination and that it expects basic
auth an not digest auth or similar.
Dan
Post by Renuka Pathak
Post by Glen Mazza
I believe you're mistaking the UsernameToken profile (message-level security)
with the transport-layer security required by SSL. (You shouldn't need
to configure the USERNAME_TOKEN and PASSWORD constants that you're
using.) Perhaps my ssl[1] and soap client[2] tutorials can be of help
to
Post by Renuka Pathak
Post by Glen Mazza
you.
HTH,
Glen
[1] http://www.jroller.com/gmazza/entry/setting_up_ssl_and_basic (Look
at
Post by Renuka Pathak
Post by Glen Mazza
#7
in particular for how transport-layer usernames and passwords are
given)
Post by Renuka Pathak
Post by Glen Mazza
[2] http://www.jroller.com/gmazza/entry/soap_client_tutorial
Post by Renuka Pathak
Hi CXF Team,
I am new to CXF. I have generated java webservice client using CXF
wsdl2Java utility. I am accesing a https webservice. I am setting
Authentication parameters also in the java client. But when I run the client
I get org.apache.cxf.interceptor.Fault: Could not send Message error. Could
you please let me know what am I doing wrong? I am not sure if i am
using authentication mechanism correct or not? I am using a non
spring plain java
client. Following is the code & error I am getting.
private static void setAuthParameter(DsmlSoap port)
{
org.apache.cxf.endpoint.Client client =
org.apache.cxf.frontend.ClientProxy.getClient(port);
System.out.println("org.apache.cxf.frontend.ClientProxy.getClient(port)
Post by Renuka Pathak
Post by Glen Mazza
Post by Renuka Pathak
:" +
org.apache.cxf.frontend.ClientProxy.getClient(port));
org.apache.cxf.endpoint.Endpoint cxfEndpoint =
client.getEndpoint();
System.out.println("client.getEndPoint: " + cxfEndpoint);
Map<String,Object> outProps= new HashMap<String,Object>();
outProps.put(WSHandlerConstants.ACTION,WSHandlerConstants.USERNAME_TOKEN)
Post by Renuka Pathak
Post by Glen Mazza
;
Post by Renuka Pathak
outProps.put(WSHandlerConstants.PASSWORD_TYPE,
WSConstants.PW_TEXT);
outProps.put(WSHandlerConstants.USER, "endUser");
outProps.put(WSHandlerConstants.PW_CALLBACK_CLASS,ClientPasswordHandler.c
Post by Renuka Pathak
Post by Glen Mazza
lass.getName());
Post by Renuka Pathak
WSS4JOutInterceptor wssOut = new
WSS4JOutInterceptor(outProps);
Post by Renuka Pathak
Post by Glen Mazza
Post by Renuka Pathak
cxfEndpoint.getOutInterceptors().add(wssOut);
cxfEndpoint.getOutInterceptors().add(new
SAAJOutInterceptor());
Post by Renuka Pathak
Post by Glen Mazza
Post by Renuka Pathak
}
Note: ClientPasswordHandler has also been impemented & I set the password in
it.
public static void main(String args[]) throws Exception {
URL wsdlURL = DsmlQueryService.WSDL_LOCATION;
System.out.println("ds: " + wsdlURL);
if (args.length > 0) {
File wsdlFile = new File(args[0]);
try {
if (wsdlFile.exists()) {
wsdlURL = wsdlFile.toURI().toURL();
} else {
wsdlURL = new URL(args[0]);
}
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
DsmlQueryService ss = new DsmlQueryService(wsdlURL,
SERVICE_NAME);
Post by Renuka Pathak
System.out.println("Invoking directoryRequest.22222.." + ss);
DsmlSoap port = ss.getDsmlSoapQuery();
setAuthParameter(port);
DsmlSoap_DsmlSoapQuery_Client dsmlClient = new
DsmlSoap_DsmlSoapQuery_Client();
BatchRequest _directoryRequest_batchRequest=
dsmlClient.callSearchRequest();
BatchResponse _directoryRequest__return =
port.directoryRequest(_directoryRequest_batchRequest);
}
Interceptor for
{urn:oasis:names:tc:DSML:2:0:core}dsmlQueryService#{urn:oasis:names:tc:DS
Post by Renuka Pathak
Post by Glen Mazza
ML:2:0:core}directoryRequest
Post by Renuka Pathak
has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.
at
org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(Message
Post by Renuka Pathak
Post by Glen Mazza
SenderInterceptor.java:48)
Post by Renuka Pathak
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorCh
Post by Renuka Pathak
Post by Glen Mazza
ain.java:243)
Post by Renuka Pathak
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:484)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:310)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:262)
at
org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
Post by Renuka Pathak
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
Post by Renuka Pathak
Post by Glen Mazza
Post by Renuka Pathak
at $Proxy62.directoryRequest(Unknown Source)
at
main.java.gov.osc.enrollment.webserviceSFS.client.DsmlSoap_DsmlSoapQuery_
Post by Renuka Pathak
Post by Glen Mazza
Client.main(DsmlSoap_DsmlSoapQuery_Client.java:122)
Post by Renuka Pathak
Caused by: java.net.MalformedURLException: Invalid address. Endpoint address
cannot be null.
at
org.apache.cxf.transport.http.HTTPConduit.getURL(HTTPConduit.java:833)
Post by Renuka Pathak
Post by Glen Mazza
Post by Renuka Pathak
at
org.apache.cxf.transport.http.HTTPConduit.getURL(HTTPConduit.java:818)
Post by Renuka Pathak
Post by Glen Mazza
Post by Renuka Pathak
at
org.apache.cxf.transport.http.HTTPConduit.setupURL(HTTPConduit.java:745
Post by Renuka Pathak
Post by Glen Mazza
Post by Renuka Pathak
)
at
org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:494)
Post by Renuka Pathak
Post by Glen Mazza
Post by Renuka Pathak
at
org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(Message
Post by Renuka Pathak
Post by Glen Mazza
SenderInterceptor.java:46)
--
http://old.nabble.com/Error-in-java-webservice-client-CXF%3A-org.apache.c
xf.interceptor.Fault%3A--Could-not-send-Message.-tp28141672p28142020.html
Post by Renuka Pathak
Post by Glen Mazza
Sent from the cxf-user mailing list archive at Nabble.com.
--
Daniel Kulp
http://dankulp.com/blog
Renuka Pathak
2010-04-06 15:43:24 UTC
Permalink
Thanks Dan & Glen.

I am able to hit the web service & get the response.

Appreciate your help.

Regards
Renuka
Post by Renuka Pathak
Hi Dan,
Thanks for your reply. I used 2.2.7 now to generate client classes. when I
run the client using BindingProvider, I get following error message
"HTTP response '*401*: Unauthorized' invoking
https://xxxxxxxx/services/sampleQuery* with NO authorization username
configured in conduit*{urn:oasis:names:tc:DSML:2:0:core}dsmlSoapPort.http-conduit"
I am not sure how to configure username in conduit. I am *not *using
spring & I don't have any server certificate. I just have user name & pwd to
access that webservice. I am passing correct user name & password which I
verified again.
Please let me know how to resolve this problem. I also did not understand
this in your reply " ...*but since we are in streaming mode, not something
we could support." *Does this mean it is not supported in CXF ? Pls help
me understand.
Thanks!!!
Post by Renuka Pathak
Post by Renuka Pathak
Thanks Glen, Your tutorials are very useful. I tied using
BindingProvider
Post by Renuka Pathak
in code but now I am getting following error.
org.apache.cxf.interceptor.Fault: Could not send Message.
at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInt
Post by Renuka Pathak
erceptor.handleMessage(MessageSenderInterceptor.java:64) at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorCha
Post by Renuka Pathak
in.java:243) at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:484) at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:310) at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:262) at
org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
at
Post by Renuka Pathak
$Proxy62.directoryRequest(Unknown Source)
at
main.java.gov.osc.enrollment.webserviceSFS.util.names.tc.dsml._2._0.core.D
smlSoap_DsmlSoapQuery_Client.main(DsmlSoap_DsmlSoapQuery_Client.java:116)
Post by Renuka Pathak
*Caused by: java.net.HttpRetryException: cannot retry due to server
authentication, in streaming mode*
This usually means the username/password for basic auth was either not
provided correctly or was wrong. Basically, the server sent back a "please
authorize" request, but since we are in streaming mode, not something we could
support.
Definitely doublecheck the name/password combination and that it expects basic
auth an not digest auth or similar.
Dan
Post by Renuka Pathak
Post by Glen Mazza
I believe you're mistaking the UsernameToken profile (message-level security)
with the transport-layer security required by SSL. (You shouldn't
need
Post by Renuka Pathak
Post by Glen Mazza
to configure the USERNAME_TOKEN and PASSWORD constants that you're
using.) Perhaps my ssl[1] and soap client[2] tutorials can be of help
to
Post by Renuka Pathak
Post by Glen Mazza
you.
HTH,
Glen
[1] http://www.jroller.com/gmazza/entry/setting_up_ssl_and_basic(Look at
#7
in particular for how transport-layer usernames and passwords are
given)
Post by Renuka Pathak
Post by Glen Mazza
[2] http://www.jroller.com/gmazza/entry/soap_client_tutorial
Post by Renuka Pathak
Hi CXF Team,
I am new to CXF. I have generated java webservice client using CXF
wsdl2Java utility. I am accesing a https webservice. I am setting
Authentication parameters also in the java client. But when I run
the
Post by Renuka Pathak
Post by Glen Mazza
Post by Renuka Pathak
client
I get org.apache.cxf.interceptor.Fault: Could not send Message
error.
Post by Renuka Pathak
Post by Glen Mazza
Post by Renuka Pathak
Could
you please let me know what am I doing wrong? I am not sure if i am
using authentication mechanism correct or not? I am using a non
spring plain java
client. Following is the code & error I am getting.
private static void setAuthParameter(DsmlSoap port)
{
org.apache.cxf.endpoint.Client client =
org.apache.cxf.frontend.ClientProxy.getClient(port);
System.out.println("org.apache.cxf.frontend.ClientProxy.getClient(port)
Post by Renuka Pathak
Post by Glen Mazza
Post by Renuka Pathak
:" +
org.apache.cxf.frontend.ClientProxy.getClient(port));
org.apache.cxf.endpoint.Endpoint cxfEndpoint =
client.getEndpoint();
System.out.println("client.getEndPoint: " + cxfEndpoint);
Map<String,Object> outProps= new HashMap<String,Object>();
outProps.put(WSHandlerConstants.ACTION,WSHandlerConstants.USERNAME_TOKEN)
Post by Renuka Pathak
Post by Glen Mazza
;
Post by Renuka Pathak
outProps.put(WSHandlerConstants.PASSWORD_TYPE,
WSConstants.PW_TEXT);
outProps.put(WSHandlerConstants.USER, "endUser");
outProps.put(WSHandlerConstants.PW_CALLBACK_CLASS,ClientPasswordHandler.c
Post by Renuka Pathak
Post by Glen Mazza
lass.getName());
Post by Renuka Pathak
WSS4JOutInterceptor wssOut = new
WSS4JOutInterceptor(outProps);
Post by Renuka Pathak
Post by Glen Mazza
Post by Renuka Pathak
cxfEndpoint.getOutInterceptors().add(wssOut);
cxfEndpoint.getOutInterceptors().add(new
SAAJOutInterceptor());
Post by Renuka Pathak
Post by Glen Mazza
Post by Renuka Pathak
}
Note: ClientPasswordHandler has also been impemented & I set the password in
it.
public static void main(String args[]) throws Exception {
URL wsdlURL = DsmlQueryService.WSDL_LOCATION;
System.out.println("ds: " + wsdlURL);
if (args.length > 0) {
File wsdlFile = new File(args[0]);
try {
if (wsdlFile.exists()) {
wsdlURL = wsdlFile.toURI().toURL();
} else {
wsdlURL = new URL(args[0]);
}
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
DsmlQueryService ss = new DsmlQueryService(wsdlURL,
SERVICE_NAME);
Post by Renuka Pathak
System.out.println("Invoking directoryRequest.22222.." +
ss);
Post by Renuka Pathak
Post by Glen Mazza
Post by Renuka Pathak
DsmlSoap port = ss.getDsmlSoapQuery();
setAuthParameter(port);
DsmlSoap_DsmlSoapQuery_Client dsmlClient = new
DsmlSoap_DsmlSoapQuery_Client();
BatchRequest _directoryRequest_batchRequest=
dsmlClient.callSearchRequest();
BatchResponse _directoryRequest__return =
port.directoryRequest(_directoryRequest_batchRequest);
}
Interceptor for
{urn:oasis:names:tc:DSML:2:0:core}dsmlQueryService#{urn:oasis:names:tc:DS
Post by Renuka Pathak
Post by Glen Mazza
ML:2:0:core}directoryRequest
Post by Renuka Pathak
has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.
at
org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(Message
Post by Renuka Pathak
Post by Glen Mazza
SenderInterceptor.java:48)
Post by Renuka Pathak
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorCh
Post by Renuka Pathak
Post by Glen Mazza
ain.java:243)
Post by Renuka Pathak
at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:484)
Post by Renuka Pathak
Post by Glen Mazza
Post by Renuka Pathak
at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:310)
Post by Renuka Pathak
Post by Glen Mazza
Post by Renuka Pathak
at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:262)
Post by Renuka Pathak
Post by Glen Mazza
Post by Renuka Pathak
at
org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
Post by Renuka Pathak
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
Post by Renuka Pathak
Post by Glen Mazza
Post by Renuka Pathak
at $Proxy62.directoryRequest(Unknown Source)
at
main.java.gov.osc.enrollment.webserviceSFS.client.DsmlSoap_DsmlSoapQuery_
Post by Renuka Pathak
Post by Glen Mazza
Client.main(DsmlSoap_DsmlSoapQuery_Client.java:122)
Post by Renuka Pathak
Caused by: java.net.MalformedURLException: Invalid address. Endpoint address
cannot be null.
at
org.apache.cxf.transport.http.HTTPConduit.getURL(HTTPConduit.java:833)
Post by Renuka Pathak
Post by Glen Mazza
Post by Renuka Pathak
at
org.apache.cxf.transport.http.HTTPConduit.getURL(HTTPConduit.java:818)
Post by Renuka Pathak
Post by Glen Mazza
Post by Renuka Pathak
at
org.apache.cxf.transport.http.HTTPConduit.setupURL(HTTPConduit.java:745
Post by Renuka Pathak
Post by Glen Mazza
Post by Renuka Pathak
)
at
org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:494)
Post by Renuka Pathak
Post by Glen Mazza
Post by Renuka Pathak
at
org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(Message
Post by Renuka Pathak
Post by Glen Mazza
SenderInterceptor.java:46)
--
http://old.nabble.com/Error-in-java-webservice-client-CXF%3A-org.apache.c
xf.interceptor.Fault%3A--Could-not-send-Message.-tp28141672p28142020.html
Post by Renuka Pathak
Post by Glen Mazza
Sent from the cxf-user mailing list archive at Nabble.com.
--
Daniel Kulp
http://dankulp.com/blog
Loading...