org.mule.api.transport.DispatchException: Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=
http://localhost:8080/mule-tests-external-cxf/services/TestService?method=getTest, connector=CxfWsdlConnector{this=8b677f, started=false, initialised=true, name='connector.wsdl.cxf.0', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=false, supportedProtocols=[wsdl-cxf, wsdl-cxf:http, wsdl-cxf:https, wsdl:http, wsdl:https], serviceOverrides=null}, transformer=[], name='endpoint.http.localhost.8080.mule.tests.external.cxf.services.TestService.method.getTest', properties={wsdlUrl=
http://localhost:8080/mule-tests-external-cxf/services/TestService?wsdl, method=getTest}, transactionConfig=Transaction{factory=null, action=NEVER, 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:196)
at org.mule.transport.AbstractConnector.send(AbstractConnector.java:1848)
at org.mule.endpoint.DefaultOutboundEndpoint.send(DefaultOutboundEndpoint.java:76)
at org.mule.DefaultMuleSession.sendEvent(DefaultMuleSession.java:327)
at org.mule.transport.cxf.CxfWsdlTestCase.testCxfWsdlServiceWithEndpointParam(CxfWsdlTestCase.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:237)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:217)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: org.mule.transport.FatalConnectException: Failed to connect to "
endpoint.outbound.http://localhost:8080/mule-tests-external-cxf/services/TestService?method=getTest", connect policy is exhausted. Policy is: "NoRetryPolicy{}"
at org.mule.retry.policies.AbstractPolicyTemplate.execute(AbstractPolicyTemplate.java:84)
at org.mule.transport.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:165)
... 24 more
Caused by: org.mule.transport.FatalConnectException: Failed to connect to "
endpoint.outbound.http://localhost:8080/mule-tests-external-cxf/services/TestService?method=getTest", connect policy is exhausted. Policy is: "NoRetryPolicy{}"
at org.mule.retry.policies.AbstractPolicyTemplate.execute(AbstractPolicyTemplate.java:84)
at org.mule.transport.AbstractConnectable.connect(AbstractConnectable.java:177)
at org.mule.transport.AbstractMessageDispatcher$1.doWork(AbstractMessageDispatcher.java:170)
at org.mule.retry.policies.AbstractPolicyTemplate.execute(AbstractPolicyTemplate.java:53)
... 25 more
Caused by: org.apache.cxf.service.factory.ServiceConstructionException: Could not resolve URL "
http://localhost:8080/mule-tests-external-cxf/services/TestService?method=getTest".
at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.composeUrl(DynamicClientFactory.java:428)
at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:158)
at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:151)
at org.mule.transport.cxf.wsdl.CxfWsdlMessageDispatcher.createClient(CxfWsdlMessageDispatcher.java:99)
at org.mule.transport.cxf.wsdl.CxfWsdlMessageDispatcher$1.initialize(CxfWsdlMessageDispatcher.java:72)
at org.mule.transport.cxf.wsdl.CxfWsdlMessageDispatcher.doConnect(CxfWsdlMessageDispatcher.java:85)
at org.mule.transport.AbstractConnectable$1.doWork(AbstractConnectable.java:163)
at org.mule.retry.policies.AbstractPolicyTemplate.execute(AbstractPolicyTemplate.java:53)
... 28 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:520)
at java.net.Socket.connect(Socket.java:470)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.
www.http.HttpClient.openServer(HttpClient.java:388)
at sun.net.
www.http.HttpClient.openServer(HttpClient.java:523)
at sun.net.
www.http.HttpClient.<init>(HttpClient.java:231)
at sun.net.
www.http.HttpClient.New(HttpClient.java:304)
at sun.net.
www.http.HttpClient.New(HttpClient.java:321)
at sun.net.
www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:813)
at sun.net.
www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765)
at sun.net.
www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:690)
at sun.net.
www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:934)
at org.apache.cxf.resource.URIResolver.tryFileSystem(URIResolver.java:133)
at org.apache.cxf.resource.URIResolver.<init>(URIResolver.java:72)
at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.composeUrl(DynamicClientFactory.java:420)
... 35 more