Method not implemented when calling a WebService on Weblogic 10.3

前端 未结 2 1745
一个人的身影
一个人的身影 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:34

    I got this exception when using an old WL client that did not override openConnection(URL u, Proxy p), and the weblogic handler sometimes was loaded first. Solution was to upgrade to newer WL version, with had that method overrided.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题