Announcement Announcement Module
No announcement yet.
HttpInvoker + javaws + HTTP proxy Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • HttpInvoker + javaws + HTTP proxy

    I have a java web start application that uses HttpInvoker. The remote calls work fine if java is not configured to use an HTTP proxy. However, if I configure a proxy (via Java Control Panel), the remote method call fails with the stack trace below. My application doesn't configure a specific proxy itself, it needs to work with whatever's in the environment.

    Looking at the code for SocksSocketImpl, it looks like perhaps we shouldn't be in that class with an HTTP proxy configured, so I'm wondering if one of the spring or apache commons HttpClient layers is failing to get configured properly.

    org.springframework.remoting.RemoteAccessException : Cannot access HTTP invoker remote service at [...]; 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.DefaultProt ocolSocketFactory.createSocket(DefaultProtocolSock
    at org.apache.commons.httpclient.protocol.DefaultProt ocolSocketFactory.createSocket(DefaultProtocolSock
    at org.apache.commons.httpclient.MultiThreadedHttpCon nectionManager$
    at org.apache.commons.httpclient.HttpMethodDirector.e xecuteWithRetry(
    at org.apache.commons.httpclient.HttpMethodDirector.e xecuteMethod(
    at org.apache.commons.httpclient.HttpClient.executeMe thod(
    at org.apache.commons.httpclient.HttpClient.executeMe thod(
    at org.springframework.remoting.httpinvoker.CommonsHt tpInvokerRequestExecutor.executePostMethod(Commons
    at org.springframework.remoting.httpinvoker.CommonsHt tpInvokerRequestExecutor.doExecuteRequest(CommonsH
    at org.springframework.remoting.httpinvoker.AbstractH ttpInvokerRequestExecutor.executeRequest(AbstractH
    at org.springframework.remoting.httpinvoker.HttpInvok erClientInterceptor.executeRequest(HttpInvokerClie
    at org.springframework.remoting.httpinvoker.HttpInvok erClientInterceptor.invoke(HttpInvokerClientInterc

    Suggestions greatly appreciated.

  • #2
    A JRE bug?

    Look at this bug report:
    I have been experiencing the same problem with an applet (as in Oracle's bug report) yet it looks like the problem has nothing to do with the applet: in my case it's the browser plugin's network class loader that encounters this error after it has resolved the HTTP proxy. I just can't figure out why it ends up using the SOCKS Socket...