0
我试图绑定一个服务URL,但收到以下异常改变IP的Java胶服务器上绑定
代码:
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)
我无法复制一旦我重新启动胶水服务器的情况下,每件事情开始正常工作..张贴在这里,以确保这个问题是否有一个特定的解决方案或异常处理程序 –
它与APIPA发布一个临时的IP地址。这是由胶水服务器拾取的。 IP解决得很好,但胶水服务器保持使用169 IP地址。 –