I am using Mule2.0.1, I exposed the Simple POJO as a WebService. Muleserver
started successfully with the given configuration. But when i try to call
using MuleClient i am getting Exception 'Could not create client! No Server
was found directly on the endpoint:'
I attached the configuration given in the config.xml file
<cxf:inbound-endpoint address="http://localhost:63081/services/SimpleUMO"
frontend="simple"
serviceClass="com.demo.simple.Reservation"/>
I am invoking the webservice using a MuleClient.
MuleClient client = new MuleClient();
MuleMessage result =
client.send("cxf:http://localhost:63081/services/SimpleUMO?method=getStatus",
"1234567", null);
But i am getting an Exception 'Could not create client! No Server was found
directly on the endpoint'
Exception in thread "main" org.mule.api.transport.DispatchException: Failed
to route event via endpoint:
DefaultOutboundEndpoint{endpointUri=http://localhost:63081/services/SimpleUMO?method=getStatus,
connector=CxfConnector{this=26dbec, started=true, initialised=true,
name='connector.cxf.0', disposed=false,
numberOfConcurrentTransactedReceivers=4,
createMultipleTransactedReceivers=true, connected=true,
supportedProtocols=[cxf, cxf:http, cxf:https, cxf:jms, cxf:vm, cxf:servlet],
serviceOverrides=null}, transformer=[],
name='endpoint.http.localhost.63081.services.SimpleUMO.method.getStatus',
properties={method=getStatus}, transactionConfig=Transaction{factory=null,
action=NONE, timeout=0}, filter=null, deleteUnacceptedMessages=false,
securityFilter=null, synchronous=true, initialState=started,
remoteSync=false, remoteSyncTimeout=10000, endpointEncoding=UTF-8}. Message
payload is of type: String
at
org.mule.transport.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:188)
at org.mule.transport.AbstractConnector.send(AbstractConnector.java:1889)
at
org.mule.endpoint.DefaultOutboundEndpoint.send(DefaultOutboundEndpoint.java:76)
at org.mule.DefaultMuleSession.sendEvent(DefaultMuleSession.java:324)
at org.mule.module.client.MuleClient.send(MuleClient.java:653)
at org.mule.module.client.MuleClient.send(MuleClient.java:630)
at org.mule.module.client.MuleClient.send(MuleClient.java:583)
at com.demo.mule.client.SimpleClient.main(SimpleClient.java:14)
Caused by: org.mule.transport.FatalConnectException: ReconnectStrategy
"org.mule.transport.SingleAttemptConnectionStrategy" failed to reconnect
receiver on endpoint "CxfMessageDispatcher{this=179a49f,
endpoint=http://localhost:63081/services/SimpleUMO?method=getStatus,
disposed=false}"
at
org.mule.transport.SingleAttemptConnectionStrategy.doConnect(SingleAttemptConnectionStrategy.java:29)
at
org.mule.transport.AbstractConnectionStrategy.connect(AbstractConnectionStrategy.java:108)
at
org.mule.transport.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:155)
... 7 more
Caused by: org.mule.transport.FatalConnectException: ReconnectStrategy
"org.mule.transport.SingleAttemptConnectionStrategy" failed to reconnect
receiver on endpoint "CxfMessageDispatcher{this=179a49f,
endpoint=http://localhost:63081/services/SimpleUMO?method=getStatus,
disposed=false}"
at
org.mule.transport.SingleAttemptConnectionStrategy.doConnect(SingleAttemptConnectionStrategy.java:29)
at
org.mule.transport.AbstractConnectionStrategy.connect(AbstractConnectionStrategy.java:108)
at
org.mule.transport.AbstractConnectable.connect(AbstractConnectable.java:200)
at
org.mule.transport.SingleAttemptConnectionStrategy.doConnect(SingleAttemptConnectionStrategy.java:25)
... 9 more
Caused by: org.mule.transport.ConnectException: Initialisation Failure:
Could not create client! No Server was found directly on the endpoint:
http://localhost:63081/services/SimpleUMO
at
org.mule.transport.AbstractConnectable.connect(AbstractConnectable.java:232)
at
org.mule.transport.SingleAttemptConnectionStrategy.doConnect(SingleAttemptConnectionStrategy.java:25)
... 12 more
Caused by: java.lang.Exception: Could not create client! No Server was found
directly on the endpoint: http://localhost:63081/services/SimpleUMO
at
org.mule.transport.cxf.ClientWrapper.createClientFromLocalServer(ClientWrapper.java:297)
at org.mule.transport.cxf.ClientWrapper.initialize(ClientWrapper.java:89)
at
org.mule.transport.cxf.CxfMessageDispatcher.doConnect(CxfMessageDispatcher.java:75)
at
org.mule.transport.AbstractConnectable.connect(AbstractConnectable.java:211)
... 13 more
Thanks in advance
Regards
Jawahar
--
View this message in context: http://www.nabble.com/Could-not-create-client%21-No-Server-was-found-directly-on-the-endpoint%3A-tp17880270p17880270.html
Sent from the Mule - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Jawahar
--
View this message in context: http://www.nabble.com/Could-not-create-client%21-No-Server-was-found-directly-on-the-endpoint%3A-tp17880270p17960685.html
Called the webservice using the mule client, with the following code. I am
able to get the output.
MuleClient client = new MuleClient();
Map<String, String> props = new HashMap<String, String>();
props.put("http.method", "GET");
MuleMessage result = client.send(
"http://localhost:63081/services/HelloWorldUMO/sayHi/text/JAWA","", props);
System.out.println("Message from MuleServer ---"+
result.getPayloadAsString());
Regards
Jawahar
--
View this message in context: http://www.nabble.com/Could-not-create-client%21-No-Server-was-found-directly-on-the-endpoint%3A-tp17880270p18005769.html