您好我在Windows 7上运行了WAS 6.1 3-4个月没有问题,然后有一天当我停止它时它开始停止并且它不会启动备份。那是2个月前左右。我已经卸载它并重新安装它5到6次尝试解决问题没有运气;相同的症状。
当我尝试启动服务器时,它有时会起作用,而其他时候却没有。如果没有,我会得到以下异常:
Exception com.ibm.websphere.management.exception.ConnectorException: ADMC0016E: The system cannot create a SOAP connector to connect to host PHXJ05308513.ads.xxx.com at port 8880
我试图进入servers.xml并更改该端口,但似乎没有任何效果。我也尝试在启动之前删除.pid文件(在配置文件的logs文件夹中)。
此外,当我尝试创建数据源连接(我知道有效)时,我得到:
Exception attempting to get free port for status socket java.net.BindException: Address already in use: NET_Bind
我在尝试对此进行故障排除时也看到了日志中的CORBA错误。我已经阅读了足够的知识,知道某处存在网络冲突,但我已经尝试了许多解决方案而且他们没有解决问题。
启动服务器堆栈跟踪:
[6/29/15 18:29:21:102 GMT] 0000000a AdminTool A ADMU3100I: Reading configuration for server: server1
[6/29/15 18:29:23:741 GMT] 0000000a AdminTool A ADMU3012E: Exception attempting to get free port for status socket Address already in use: NET_Bind
[6/29/15 18:29:23:741 GMT] 0000000a AdminTool E ADMU3012E: Exception attempting to get free port for status socket java.net.BindException: Address already in use: NET_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:398)
at java.net.ServerSocket.bind(ServerSocket.java:331)
at java.net.ServerSocket.<init>(ServerSocket.java:197)
at java.net.ServerSocket.<init>(ServerSocket.java:109)
at com.ibm.ws.management.tools.AdminTool.initStatusPort(AdminTool.java:983)
at com.ibm.ws.management.tools.AdminTool.getStatusPort(AdminTool.java:964)
at com.ibm.ws.management.tools.WsServerLauncher.runTool(WsServerLauncher.java:282)
at com.ibm.ws.management.tools.AdminTool.executeUtility(AdminTool.java:261)
at com.ibm.ws.management.tools.WsServerController.executeUtilityOnWindows(WsServerController.java:136)
at com.ibm.ws.management.tools.WsServerLauncher.main(WsServerLauncher.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:263)
[6/29/15 18:29:25:441 GMT] 0000000a AdminTool A ADMU3200I: Server launched. Waiting for initialization status.
[6/29/15 18:29:25:441 GMT] 0000000a WsServerLaunc E ADMU3002E: Exception attempting to process server server1
[6/29/15 18:29:25:441 GMT] 0000000a WsServerLaunc E ADMU3007E: Exception java.lang.NullPointerException
at com.ibm.ws.management.tools.WsServerController.waitForServerInit(WsServerController.java:208)
at com.ibm.ws.management.tools.WsServerLauncher.runTool(WsServerLauncher.java:310)
at com.ibm.ws.management.tools.AdminTool.executeUtility(AdminTool.java:261)
at com.ibm.ws.management.tools.WsServerController.executeUtilityOnWindows(WsServerController.java:136)
at com.ibm.ws.management.tools.WsServerLauncher.main(WsServerLauncher.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:263)
[6/29/15 18:29:25:441 GMT] 0000000a AdminTool E ADMU0111E: Program exiting with error: java.lang.NullPointerException
at com.ibm.ws.management.tools.WsServerController.waitForServerInit(WsServerController.java:208)
at com.ibm.ws.management.tools.WsServerLauncher.runTool(WsServerLauncher.java:310)
at com.ibm.ws.management.tools.AdminTool.executeUtility(AdminTool.java:261)
at com.ibm.ws.management.tools.WsServerController.executeUtilityOnWindows(WsServerController.java:136)
at com.ibm.ws.management.tools.WsServerLauncher.main(WsServerLauncher.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:263)
[6/29/15 18:29:25:457 GMT] 0000000a AdminTool A ADMU0111E: Program exiting with error: java.lang.NullPointerException
at com.ibm.ws.management.tools.WsServerController.waitForServerInit(WsServerController.java:208)
at com.ibm.ws.management.tools.WsServerLauncher.runTool(WsServerLauncher.java:310)
at com.ibm.ws.management.tools.AdminTool.executeUtility(AdminTool.java:261)
at com.ibm.ws.management.tools.WsServerController.executeUtilityOnWindows(WsServerController.java:136)
at com.ibm.ws.management.tools.WsServerLauncher.main(WsServerLauncher.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:263)
停止服务器堆栈跟踪:
[6/29/15 18:31:28:858 GMT] 0000000a WsServerStop E ADMU3002E: Exception attempting to process server server1
[6/29/15 18:31:28:859 GMT] 0000000a WsServerStop E ADMU3007E: Exception com.ibm.websphere.management.exception.ConnectorException: ADMC0016E: The system cannot create a SOAP connector to connect to host PHXJ05308513.ads.xxxx.com at port 8881.
[6/29/15 18:31:28:860 GMT] 0000000a WsServerStop A ADMU3007E: Exception com.ibm.websphere.management.exception.ConnectorException: ADMC0016E: The system cannot create a SOAP connector to connect to host PHXJ05308513.ads.xxxx.com at port 8881.
at com.ibm.websphere.management.AdminClientFactory.createAdminClient(AdminClientFactory.java:479)
at com.ibm.ws.management.tools.LaunchUtils.getAdminClient(LaunchUtils.java:372)
at com.ibm.ws.management.tools.LaunchUtils.getAdminClient(LaunchUtils.java:312)
at com.ibm.ws.management.tools.WsServerStop.runTool(WsServerStop.java:325)
at com.ibm.ws.management.tools.AdminTool.executeUtility(AdminTool.java:261)
at com.ibm.ws.management.tools.WsServerController.executeUtilityOnWindows(WsServerController.java:136)
at com.ibm.ws.management.tools.WsServerStop.main(WsServerStop.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:183)
at com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:90)
at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:72)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:245)
at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:73)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:521)
at com.ibm.websphere.management.AdminClientFactory.createAdminClient(AdminClientFactory.java:331)
... 25 more
Caused by: com.ibm.websphere.management.exception.ConnectorNotAvailableException: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: java.net.BindException: Address already in use: NET_Bind; targetException=java.lang.IllegalArgumentException: Error opening socket: java.net.BindException: Address already in use: NET_Bind]
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SOAPConnectorClient.java:338)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.<init>(SOAPConnectorClient.java:175)
... 30 more
Caused by: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: java.net.BindException: Address already in use: NET_Bind; targetException=java.lang.IllegalArgumentException: Error opening socket: java.net.BindException: Address already in use: NET_Bind]
at org.apache.soap.transport.http.SOAPHTTPConnection.send(Unknown Source)
at org.apache.soap.rpc.Call.invoke(Unknown Source)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient$4.run(SOAPConnectorClient.java:303)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SOAPConnectorClient.java:296)
... 31 more
答案 0 :(得分:0)
使用netstat命令并搜索分配给JVM的所有默认端口。通过这种方式,您可以查看JVM使用的多个端口之一是否正被其他应用程序使用。它可能不仅仅是导致问题的肥皂端口,而是容器上许多其他定义端口之一。您还可以尝试telnet到所有JVM端口,以查看是否有其他应用正在侦听该特定端口。