在 Weblogic 10.3 上调用 WebService 时未实现方法 [英] Method not implemented when calling a WebService on Weblogic 10.3

查看:38
本文介绍了在 Weblogic 10.3 上调用 WebService 时未实现方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个 Web 服务客户端来连接部署在 Weblogic 10.3 上的 Web 服务.尝试实例化客户端对象时总是得到相同的异常

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

java.lang.UnsupportedOperationException: Method not implemented.
    at java.net.URLStreamHandler.openConnection(URLStreamHandler.java:80)
    at java.net.URL.openConnection(URL.java:992)

查看 URLStreamHandler 的方法实现,我发现它只是抛出异常

Looking on the method implementation from URLStreamHandler I found it just throw the Exception

protected URLConnection openConnection(URL u, Proxy p) throws IOException {
throw new UnsupportedOperationException("Method not implemented.");
}

我想 WebLogic 需要你传递一个带有 UrlStreamHandler 子类的库,提供一个 openConnection 实现,但不确定它应该是哪个.

I suppose WebLogic needs you to pass a library with a child class of UrlStreamHandler providing an openConnection implementation but not sure exactly which it should be.

推荐答案

我在使用未覆盖 openConnection(URL u, Proxy p) 的旧 WL 客户端时遇到此异常,并且有时首先加载 weblogic 处理程序.解决方案是升级到更新的 WL 版本,并覆盖该方法.

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.

这篇关于在 Weblogic 10.3 上调用 WebService 时未实现方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆