Method not implemented when calling a WebService on Weblogic 10.3

前端 未结 2 1775
一个人的身影
一个人的身影 2021-01-22 09:08

I have developed a Web Service Client to connect with a web service deployed on Weblogic 10.3. When trying to instantiate a client object always get the same exception



        
2条回答
  •  不要未来只要你来
    2021-01-22 09:48

    Some other library in your project has probably registered an URLStreamHandler implementation that does not implement the openConnection method with the proxy parameter.

    The default URLStreamHandler class is sun.net.www.protocol.http.Handler located in rt.jar.

    In my case I used jcifs library which registered its own http Handler but did not implement the openConnection(URL, Proxy) method.

    So, you should provide a Handler with an implementation of openConnection(URL, Proxy), or you should use the default Handler if possible.

    Note: In my case, the url.openConnection method was called from com.sun.xml.internal.ws.api.EndpointAddress (rt.jar). In java 6, this throws UnsupportedOperationException. In java 7, this exception is catched in this EndpointAddress class and then url.openConnection is called without using a proxy. So updating to java 7 should also fix this problem.

提交回复
热议问题