Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can't open HTTP connection to a proxied server

6 views
Skip to first unread message

Alexandre CUENCA

unread,
May 11, 2004, 10:47:42 AM5/11/04
to

Greetings,

Trying to open an HTTP connection to a web server. The connection is rejected
by the proxy. In order to bypass the proxy, I used to code something like:

System.setProperty("http.proxyHost", hostname) ;
System.setProperty(“http.proxyPort”, port);
.......

Doing that, works properly in a standalone Java application. As soon as the same
code is implemented in a WebLogic 8.1 deployed EJB, it fails with the following
stack dump:

<May 10, 2004 7:12:07 PM CEST> <Info> <net> <000903> <Could not open connection
with host: www.rect.cofacescrl.com and port: 80.>
04-05-10 19:12:07,788 FATAL SearchCompanyBean - Error while attempting to connect
to Source
java.net.ConnectException: Tried all: '1' addresses, but could not connect over
HTTP to server: 'www.rect.cofacescrl.com', port: '80'
at weblogic.net.http.HttpClient.openServer(HttpClient.java:255)
at weblogic.net.http.HttpClient.openServer(HttpClient.java:307)
at weblogic.net.http.HttpClient.<init>(HttpClient.java:126)
at weblogic.net.http.HttpClient.New(HttpClient.java:192)
at weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:115)
at com.coface.STR.scrl.ScrlSearchAdapter.search(Unknown Source)
at com.coface.STR.tuxedo.SearchCompanyBean.service(Unknown Source)
at com.coface.STR.tuxedo.SearchCompanyBean_fbx9fb_EOImpl.service(SearchCompanyBean_fbx9fb_EOImpl.java:46)
at com.coface.STR.tuxedo.SearchCompanyBean_fbx9fb_EOImpl_WLSkel.invoke(Unknown
Source)
at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:159)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:263)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:230)
at com.coface.STR.tuxedo.SearchCompanyBean_fbx9fb_EOImpl_WLStub.service(Unknown
Source)
at weblogic.wtc.gwt.InboundEJBRequest.execute(InboundEJBRequest.java:419)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210

Suggestions anybody before my boss gets nervous about that ?

Many thanks in advance,

Alexandre CUENCA

Steve

unread,
May 11, 2004, 6:46:55 PM5/11/04
to
"Alexandre CUENCA" <alexandr...@coface.fr> wrote in message news:<40a0e78e$1...@newsgroups.bea.com>...

> Greetings,
>
> Trying to open an HTTP connection to a web server. The connection is rejected
> by the proxy. In order to bypass the proxy, I used to code something like:
>
> System.setProperty("http.proxyHost", hostname) ;
> System.setProperty(?http.proxyPort?, port);

Im having exactly the same issue. Moving to WL 8.1 and BAM! I saw
another post about this from a while back :
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=3f7cc446%241%40newsgroups.bea.com&rnum=4&prev=/groups%3Fq%3D%2522Could%2Bnot%2Bopen%2Bconnection%2Bwith%2Bhost:%2522%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3D3f7cc446%25241%2540newsgroups.bea.com%26rnum%3D4

with some of the things this guy was trying, but no resolution posted
in the thread. Still investigating.

0 new messages