aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes Unknown proxy type : HTTP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark " Unknown proxy type : HTTP" Watch " Unknown proxy type : HTTP" New topic
Author Unknown proxy type : HTTP

Nikh Sadd

Joined: May 05, 2012
Posts: 9

We are need to access out application based on Java webstart and JNLP via a proxy server as it is hosted in a third party environment. When we use direct connection then it works fine but we specify the proxy server then we get below error:

Could not access HTTP invoker remote service at [http://host:7001/...service ]; nested exception is Unknown proxy type: HTTP

Caused by: Unknown proxy type : HTTP
at Source)
at Source)
at Source)
at<init>(Unknown Source)
at<init>(Unknown Source)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(
at org.apache.commons.httpclient.HttpClient.executeMethod(
at org.apache.commons.httpclient.HttpClient.executeMethod(
at org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor.executePostMethod(
at org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor.doExecuteRequest(
- at org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.executeRequest(
at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(
at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(
at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(
... 10 more

We found that there is a bug in java according to which there is no support for HTTP proxy type in SocksSocketImpl class. We even check the source code also and find the same.

Please provide me some pointers on what can be the possible workaround for this. Is there any other alternate configuration or approach. We are using HTTP Spring framework.

Thanks in advance for your help.

I agree. Here's the link:
subject: Unknown proxy type : HTTP
Similar Threads
Integration testing with Maven and HTTP Client - connection refused
Unable to sendViaPost to url
can't run rampart client
"Connection timed out" with HttpClient.
Wasce error - Server IBM WASCE v2.1 Server at localhost failed to start.