Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/307.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java glue服务器在绑定时更改IP_Java - Fatal编程技术网

Java glue服务器在绑定时更改IP

Java glue服务器在绑定时更改IP,java,Java,我正在尝试绑定服务URL,但出现以下异常 代码: strHostName=inet[x].getHostAddress(); String url = "http://" + strHostName + ":" + strGluePort + "/glue/BladeInventoryService.wsdl"; logger.info("url "+url); IGBladeInventoryService objGlue = (IGBladeInven

我正在尝试绑定服务URL,但出现以下异常

代码:

strHostName=inet[x].getHostAddress();
String url = "http://" + strHostName + ":" + strGluePort
                    + "/glue/BladeInventoryService.wsdl";
logger.info("url "+url);
IGBladeInventoryService objGlue = (IGBladeInventoryService) Registry
                    .bind(url, IGBladeInventoryService.class);
例外情况:

url http://192.168.3.42:8004/glue/BladeCommandService
electric.util.WrappedException: java.rmi.ConnectException: url = http://169.254.245.248:8004/glue/BladeCommandService
    at electric.proxy.handler.Proxy.getCompatibleException(Unknown Source)
    at electric.proxy.handler.Proxy.invoke(Unknown Source)
    at $Proxy12.executeCommandOnBlade(Unknown Source)
    at com.clearcube.glue.GBladeCommandService.executeCommandOnBlade(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)

你能在浏览器中的url后面找到这个wsdl吗?

我无法复制这个场景,一旦我重新启动glue服务器,一切都开始正常工作。。将此贴在此处,以确保此问题是否有特定的解决方案或异常处理程序。它与发出临时IP地址的APIPA有关。这是由胶水服务器接收的。IP解析很好,但glue服务器继续使用169 IP地址。