[mule-user] Access via Proxy-Server fails

5 views
Skip to first unread message

Peter Mule

unread,
Jan 14, 2012, 5:51:49 PM1/14/12
to us...@mule.codehaus.org
The following Mule application does not work for me :

<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:stdio="http://www.mulesoft.org/schema/mule/stdio"
xmlns:file="http://www.mulesoft.org/schema/mule/file"
xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns:ws="http://www.mulesoft.org/schema/mule/ws"
xmlns:smtp="http://www.mulesoft.org/schema/mule/smtp"
xmlns:pattern="http://www.mulesoft.org/schema/mule/pattern"
xmlns:xm="http://www.mulesoft.org/schema/mule/xml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.mulesoft.org/schema/mule/core
http://www.mulesoft.org/schema/mule/core/3.2/mule.xsd
http://www.mulesoft.org/schema/mule/stdio
http://www.mulesoft.org/schema/mule/stdio/3.2/mule-stdio.xsd
http://www.mulesoft.org/schema/mule/file
http://www.mulesoft.org/schema/mule/file/3.2/mule-file.xsd
http://www.mulesoft.org/schema/mule/http
http://www.mulesoft.org/schema/mule/http/3.2/mule-http.xsd
http://www.mulesoft.org/schema/mule/ws
http://www.mulesoft.org/schema/mule/ws/3.2/mule-ws.xsd
http://www.mulesoft.org/schema/mule/smtp
http://www.mulesoft.org/schema/mule/smtp/3.2/mule-smtp.xsd
http://www.mulesoft.org/schema/mule/pattern
http://www.mulesoft.org/schema/mule/pattern/3.2/mule-pattern.xsd
http://www.mulesoft.org/schema/mule/xml
http://www.mulesoft.org/schema/mule/xml/3.2/mule-xml.xsd">

<http:connector name="HttpConnector"
proxyHostname="myProxyserver"
proxyPort="8080"
proxyUsername="myUserId"
proxyPassword="myPassword"/>

<custom-transformer name="ParameterMapToArray"
class="org.mule.example.loewenstein.MyParameterMapToArrayTransformer"/>
<xm:object-to-xml-transformer name="ObjectToXML"/>

<flow name="BankService">
<http:inbound-endpoint address="http://localhost:8080/"
exchange-pattern="request-response" />

<http:body-to-parameter-map-transformer />

<echo-component />

<outbound-endpoint
address="wsdl-cxf:http://www.thomas-bayer.com/axis2/services/BLZService?wsdl&amp;method=getBank"
connector-ref="HttpConnector"
transformer-refs="ObjectToXML"/>
</flow>

Access via Soap UI works. But the access using Mule 3.2.1 EE does not work.
The communication via HTTP to the outside is using a proxy server.
Therefore, I have entered the necessary information in the Soap UI and in
the Mule configuration (mule-config.xml).

Communication via Mule *fails with a *timeout**.

ERROR 2012-01-14 23:14:43,793 [HttpConnector.receiver.05]
org.mule.exception.DefaultSystemExceptionStrategy:
********************************************************************************
Message : Could not resolve URL
"http://www.thomas-bayer.com/axis2/services/BLZService?wsdl&method=getBank?wsdl".
(org.apache.cxf.service.factory.ServiceConstructionException)
Type : org.mule.api.DefaultMuleException
Code : MULE_ERROR-10999
JavaDoc :
http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/DefaultMuleException.html
********************************************************************************
Exception stack is:
1. Connection timed out: connect (java.net.ConnectException)
java.net.PlainSocketImpl:-2 (null)
2. Could not resolve URL
"http://www.thomas-bayer.com/axis2/services/BLZService?wsdl&method=getBank?wsdl".
(org.apache.cxf.service.factory.ServiceConstructionException)
org.apache.cxf.endpoint.dynamic.DynamicClientFactory:566 (null)
3. Could not resolve URL
"http://www.thomas-bayer.com/axis2/services/BLZService?wsdl&method=getBank?wsdl".
(org.apache.cxf.service.factory.ServiceConstructionException)
(org.mule.api.DefaultMuleException)
org.mule.module.cxf.builder.AbstractOutboundMessageProcessorBuilder:90
(http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/DefaultMuleException.html)
********************************************************************************
Root Exception stack trace:
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at sun.net.NetworkClient.doConnect(NetworkClient.java:158)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:323)
at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
at org.apache.cxf.resource.URIResolver.tryFileSystem(URIResolver.java:167)
at org.apache.cxf.resource.URIResolver.<init>(URIResolver.java:90)
at
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.composeUrl(DynamicClientFactory.java:558)
at
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:253)
at
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:198)
at
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:191)
at
org.mule.module.cxf.builder.WsdlClientMessageProcessorBuilder.createClient(WsdlClientMessageProcessorBuilder.java:42)
at
org.mule.module.cxf.builder.AbstractOutboundMessageProcessorBuilder.build(AbstractOutboundMessageProcessorBuilder.java:86)
at
org.mule.module.cxf.builder.AbstractOutboundMessageProcessorBuilder.build(AbstractOutboundMessageProcessorBuilder.java:42)
at
org.mule.module.cxf.config.FlowConfiguringMessageProcessor.initialise(FlowConfiguringMessageProcessor.java:94)
at
org.mule.endpoint.DefaultOutboundEndpoint.createMessageProcessorChain(DefaultOutboundEndpoint.java:115)
at
org.mule.endpoint.AbstractEndpoint.getMessageProcessorChain(AbstractEndpoint.java:517)
at
org.mule.endpoint.DefaultOutboundEndpoint.process(DefaultOutboundEndpoint.java:95)
at
org.mule.processor.AsyncInterceptingMessageProcessor.process(AsyncInterceptingMessageProcessor.java:90)
at
org.mule.interceptor.AbstractEnvelopeInterceptor.process(AbstractEnvelopeInterceptor.java:55)
at
org.mule.processor.AbstractFilteringMessageProcessor.process(AbstractFilteringMessageProcessor.java:44)
at org.mule.construct.AbstractPipeline$1.process(AbstractPipeline.java:138)
at
org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:195)
at
org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:163)
at
org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:150)
at
org.mule.transport.http.HttpMessageReceiver$HttpWorker.doRequest(HttpMessageReceiver.java:299)
at
org.mule.transport.http.HttpMessageReceiver$HttpWorker.processRequest(HttpMessageReceiver.java:258)
at
org.mule.transport.http.HttpMessageReceiver$HttpWorker.run(HttpMessageReceiver.java:163)
at org.mule.work.WorkerContext.run(WorkerContext.java:310)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

What did I do wrong or forget?

*Has anyone an idea*?

Thank you very much for any help

Best regards from Cologne

Peter

--
View this message in context: http://mule.1045714.n5.nabble.com/Access-via-Proxy-Server-fails-tp5145771p5145771.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


Luc De pauw

unread,
Jan 16, 2012, 8:50:51 AM1/16/12
to us...@mule.codehaus.org
Hi Peter,

I've got the same problem, but look at your demanding url -&gt; [http://www.thomas-bayer.com/axis2/services/BLZService?wsdl&method=getBank]"
This is what mule is trying to get

Message : Could not resolve URL

"http://www.thomas-bayer.com/axis2/services/BLZService*?wsdl*&method=getBank*?wsdl*".

See it added '?wsdl' at the end, so I think this is a bug in the Mule/CXF. It's supposed to call the wsdl at [http://www.thomas-bayer.com/axis2/services/BLZService?wsdl|http://www.thomas-bayer.com/axis2/services/BLZService?wsd] and then invoking the method getBank but somehow it adds the *'?wsdl* postfix.

Any reaction from the Mule guys ?

Reply all
Reply to author
Forward
0 new messages