Submitted by nuwanbando on February 28, 2009 - 02:36.
Hello
I have created a proxy service in WSO2 2.0 which connects to a an external web service, but when i try to start the ESB from my university I cannot start it. the Server console states
------------------------------------------------------------
n(XMLConfigurationBuilder.java:46)
at org.apache.synapse.config.SynapseConfigurationBuilder.getConfiguratio
n(SynapseConfigurationBuilder.java:74)
... 26 more
Caused by: java.net.UnknownHostException: ws.cdyne.com
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.Socket.connect(Socket.java:519)
at sun.net.NetworkClient.doConnect(NetworkClient.java:152)
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.(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(HttpURLC
onnection.java:788)
------------------------------------------------------------------
I believe this is a problem that occur because i am behind a proxy, For when i have a direct connection to the internet no problem at all.
I tried appending "-Dhttp.proxyHost=192.168.1.10 -Dhttp.proxyPort=3188" to the JAVA_OPTS in the wso2server bat file still no use.
I need more information from you on what exactly is the proxy server software you use etc. Also, can you get a trace through TCPMon for a request passing through your proxy?
I really need more information to pin point any issue and help you on this :-)
Can you check from your IT department on the proxy server your company uses? Also, can you let me know the URL of the service you try to access through the ESB? You may send this information privately to me if you do not want to share this publicly
i have the ESB, the client and the server in the same machine. This machine no have a direct acces to Internet. All conection pass trought a router. Firefox and i.e. are configurated to pass the router. I am looking for a way to configure ESB to pass through the router. It's all :S
But it through a Error when I try to put a external webservice to prove the system: (http://webservices.iter.dk/calculator.asmx?WSDL)
2008-03-11 11:44:49,967 [192.168.7.22-boo] [http-9443-Processor4] ERROR ProxyService Error reading from wsdl URI
java.net.SocketTimeoutException: connect timed out
For this, you could configure the ESB to use your proxy services. See http://java.sun.com/j2se/1.5.0/docs/guide/net/proxies.html for more details
Basically you will start the ESB (by editing the start scripts) to use the system properties "-Dhttp.proxyHost=webcache.mydomain.com -Dhttp.proxyPort=8080"
I have had problems after amend whatYou said. Look, this happens when I try to access a webservice outside:
12:11:54,386 [192.168.7.22-boo] [HttpCoreNIOSender] WARN Fault handler - setting ERROR_MESSAGE : <soapenv:Fault xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soapenv:Server</faultcode><faultstring>The connection timed out</faultstring><detail /></soapenv:Fault>
12:11:54,386 [192.168.7.22-boo] [HttpCoreNIOSender] WARN Fault handler - setting ERROR_DETAIL : java.lang.Exception: <soapenv:Fault xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soapenv:Server</faultcode><faultstring>The connection timed out</faultstring><detail /></soapenv:Fault> at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:164) at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:125) at org.apache.synapse.transport.nhttp.HttpCoreNIOSender$3.handleError(HttpCoreNIOSender.java:472) at org.apache.synapse.transport.nhttp.HttpCoreNIOSender$3.timeout(HttpCoreNIOSender.java:439) at org.apache.http.impl.nio.reactor.SessionRequestImpl.timeout(SessionRequestImpl.java:155) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processTimeouts(DefaultConnectingIOReactor.java:161) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:104) at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:160) at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.executeClientEngine(HttpCoreNIOSender.java:139) at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.access$000(HttpCoreNIOSender.java:68) at org.apache.synapse.transport.nhttp.HttpCoreNIOSender$1.run(HttpCoreNIOSender.java:101) at java.lang.Thread.run(Unknown Source)
OK.. now this happens as the NIO based http/s transport is not aware of the non-transparent proxy server. Let me look at possible solutions and get back to you.. when you originally posted this question, I assumed you wanted this - but then the problem you had was getting the WSDL of the external service - which does not take place over the NIO http/s transport
However, if you configure your proxy as a transparent proxy - this will work fine as it is in your environment.. is this a possibility?
Cannot Start the ESB: behind proxy
Hello
I have created a proxy service in WSO2 2.0 which connects to a an external web service, but when i try to start the ESB from my university I cannot start it. the Server console states
------------------------------------------------------------
n(XMLConfigurationBuilder.java:46)
at org.apache.synapse.config.SynapseConfigurationBuilder.getConfiguratio
n(SynapseConfigurationBuilder.java:74)
... 26 more
Caused by: java.net.UnknownHostException: ws.cdyne.com
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.Socket.connect(Socket.java:519)
at sun.net.NetworkClient.doConnect(NetworkClient.java:152)
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.(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(HttpURLC
onnection.java:788)
------------------------------------------------------------------
I believe this is a problem that occur because i am behind a proxy, For when i have a direct connection to the internet no problem at all.
I tried appending "-Dhttp.proxyHost=192.168.1.10 -Dhttp.proxyPort=3188" to the JAVA_OPTS in the wso2server bat file still no use.
please help
cheers
Nuwan
can you let me know the
can you let me know the proxy server you use and the version?
Also check :http://www.mail-archive.com/httpcomponents-dev@jakarta.apache.org/msg02153.html
asankha
I read It, I have the same
I read It, I have the same problem. Tell me if you find a solution please.
I need more information from
I need more information from you on what exactly is the proxy server software you use etc. Also, can you get a trace through TCPMon for a request passing through your proxy?
asankha
It's a normal proxy server,
It's a normal proxy server, I don't Know the software sorry.
Not exist a simple configuration as APACHE?
I really need more
I really need more information to pin point any issue and help you on this :-)
Can you check from your IT department on the proxy server your company uses? Also, can you let me know the URL of the service you try to access through the ESB? You may send this information privately to me if you do not want to share this publicly
asankha (asankha - AT - wso2 - DOT - com)
i have the ESB, the client
i have the ESB, the client and the server in the same machine. This machine no have a direct acces to Internet. All conection pass trought a router. Firefox and i.e. are configurated to pass the router. I am looking for a way to configure ESB to pass through the router. It's all :S
But it through a Error when
But it through a Error when I try to put a external webservice to prove the system: (http://webservices.iter.dk/calculator.asmx?WSDL)
2008-03-11 11:44:49,967 [192.168.7.22-boo] [http-9443-Processor4] ERROR ProxyService Error reading from wsdl URI
java.net.SocketTimeoutException: connect timed out
For this, you could configure the ESB to use your proxy services. See http://java.sun.com/j2se/1.5.0/docs/guide/net/proxies.html for more details
Basically you will start the ESB (by editing the start scripts) to use the system properties "-Dhttp.proxyHost=webcache.mydomain.com -Dhttp.proxyPort=8080"
asankha
Another problem
I have had problems after amend whatYou said. Look, this happens when I try to access a webservice outside:
12:11:54,386 [192.168.7.22-boo] [HttpCoreNIOSender] WARN Fault handler - setting ERROR_MESSAGE : <soapenv:Fault xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soapenv:Server</faultcode><faultstring>The connection timed out</faultstring><detail /></soapenv:Fault>
12:11:54,386 [192.168.7.22-boo] [HttpCoreNIOSender] WARN Fault handler - setting ERROR_DETAIL : java.lang.Exception: <soapenv:Fault xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soapenv:Server</faultcode><faultstring>The connection timed out</faultstring><detail /></soapenv:Fault> at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:164) at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:125) at org.apache.synapse.transport.nhttp.HttpCoreNIOSender$3.handleError(HttpCoreNIOSender.java:472) at org.apache.synapse.transport.nhttp.HttpCoreNIOSender$3.timeout(HttpCoreNIOSender.java:439) at org.apache.http.impl.nio.reactor.SessionRequestImpl.timeout(SessionRequestImpl.java:155) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processTimeouts(DefaultConnectingIOReactor.java:161) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:104) at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:160) at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.executeClientEngine(HttpCoreNIOSender.java:139) at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.access$000(HttpCoreNIOSender.java:68) at org.apache.synapse.transport.nhttp.HttpCoreNIOSender$1.run(HttpCoreNIOSender.java:101) at java.lang.Thread.run(Unknown Source)
OK.. now this happens as the
OK.. now this happens as the NIO based http/s transport is not aware of the non-transparent proxy server. Let me look at possible solutions and get back to you.. when you originally posted this question, I assumed you wanted this - but then the problem you had was getting the WSDL of the external service - which does not take place over the NIO http/s transport
However, if you configure your proxy as a transparent proxy - this will work fine as it is in your environment.. is this a possibility?
asankha
Someone can help me?
Someone can help me?
I do not think I would be
I do not think I would be able to make the fix required for this available to you this week, as I am travelling.
Meanwhile, if this is urgent please get in touch with WSO2 support (http://wso2.com/inquiry/)
asankha
Find you a solution for the
Find you a solution for the problem?
The URLRewriteMediator can help me?
Yes, it should be helpful
Yes, it should be helpful :).. you will also find other cool stuff on the http://esbsite.org
asankha
I wait ;) Bon voyage
I wait ;)
Bon voyage
I can't set my proxy. I
I can't set my proxy. I need to get a form to configure the ESB.
OK, I send you a mail.
OK, I send you a mail.
Thanks I use a simple proxy
Thanks
I use a simple proxy to control the webs that visit all of the people.