weblogic 集群出现socket错误
启动出现错误
<span style="font-size:14px;"><Nov 13, 2013 12:57:10 PM CST> <Error> <Cluster> <BEA-000109> <An error occurred while sending multicast message: java.io.IOException: Invalid argument java.io.IOException: Invalid argument at java.net.PlainDatagramSocketImpl.send(Native Method) at java.net.DatagramSocket.send(DatagramSocket.java:612) at weblogic.cluster.MulticastFragmentSocket.sendThrottled(MulticastFragmentSocket.java:206) at weblogic.cluster.MulticastFragmentSocket.send(MulticastFragmentSocket.java:158) at weblogic.cluster.FragmentSocketWrapper.send(FragmentSocketWrapper.java:91) Truncated. see log file for complete stacktrace > <Nov 13, 2013 12:57:10 PM CST> <Error> <Cluster> <BEA-000110> <Multicast socket receive error: java.net.SocketException: Socket closed java.net.SocketException: Socket closed at java.net.PlainDatagramSocketImpl.receive0(Native Method) at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136) at java.net.DatagramSocket.receive(DatagramSocket.java:712) at weblogic.cluster.MulticastFragmentSocket.receive(MulticastFragmentSocket.java:239) at weblogic.cluster.FragmentSocketWrapper.receive(FragmentSocketWrapper.java:98) Truncated. see log file for complete stacktrace > </span>
解决办法。在管理服务器,如server1,server2中找到bin/ setDomainEnv.sh,在JAVA_OPTION节加入:-Djava.net.preferIPv4Stack=true。
if [ "${debugFlag}" = "true" ] ; then JAVA_DEBUG="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=${DEBUG_PORT},server=y,suspend=n -Djava.compiler=NONE" export JAVA_DEBUG JAVA_OPTIONS="${JAVA_OPTIONS} ${enableHotswapFlag} -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole... -Djava.net.preferIPv4Stack=true" export JAVA_OPTIONS else JAVA_OPTIONS="${JAVA_OPTIONS} ${enableHotswapFlag} -da -Djava.net.preferIPv4Stack=true" export JAVA_OPTIONS
|