weblogic启动时,报might be incorrect or another process is using port 7001: java.net.SocketException: Add

<2014-1-21 下午01时49分39秒 CST> <Warning> <Server> <BEA-002611> <The hostname "Lenovo-PC", maps to multiple IP addresses: 192.168.1.127, 0:0:0:0:0:0:0:1.>
<2014-1-21 下午01时49分39秒 CST> <Error> <Server> <BEA-002606> <The server is unable to create a server socket for listening on channel "Default[3]". The address fe80:0:0:0:55a9:21f9:4b3d:fbde might be incorrect or another process is using port 7001: java.net.SocketException: Address family not supported by protocol family: bind>
<2014-1-21 下午01时49分39秒 CST> <Error> <Server> <BEA-002606> <The server is unable to create a server socket for listening on channel "Default[4]". The address fe80:0:0:0:0:100:7f:fffe might be incorrect or another process is using port 7001: java.net.SocketException: Address family not supported by protocol family: bind>
<2014-1-21 下午01时49分39秒 CST> <Error> <Server> <BEA-002606> <The server is unable to create a server socket for listening on channel "Default[1]". The address fe80:0:0:0:dcb3:7a0b:845e:2443 might be incorrect or another process is using port 7001: java.net.SocketException: Address family not supported by protocol family: bind>
<2014-1-21 下午01时49分39秒 CST> <Error> <Server> <BEA-002606> <The server is unable to create a server socket for listening on channel "Default[2]". The address fe80:0:0:0:7d05:5b9b:3b83:ca37 might be incorrect or another process is using port 7001: java.net.SocketException: Address family not supported by protocol family: bind>
<2014-1-21 下午01时49分39秒 CST> <Error> <Server> <BEA-002606> <The server is unable to create a server socket for listening on channel "Default[6]". The address 0:0:0:0:0:0:0:1 might be incorrect or another process is using port 7001: java.net.SocketException: Address family not supported by protocol family: bind>
<2014-1-21 下午01时49分39秒 CST> <Error> <Server> <BEA-002606> <The server is unable to create a server socket for listening on channel "Default[5]". The address fe80:0:0:0:4dbe:9fed:2a44:3ae2 might be incorrect or another process is using port 7001: java.net.SocketException: Address family not supported by protocol family: bind>
<2014-1-21 下午01时49分39秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.1.127:7001 for protocols iiop, t3, ldap, snmp, http.>
<2014-1-21 下午01时49分39秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[7]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
<2014-1-21 下午01时49分39秒 CST> <Notice> <WebLogicServer> <BEA-000331> <Started the WebLogic Server Administration Server "myserver" for domain "mydomain" running in development mode.>
<2014-1-21 下午01时49分39秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING.>
<2014-1-21 下午01时49分40秒 CST> <Notice> <WebLogicServer> <BEA-000360> <The server started in RUNNING mode.>

 

weblogic12.12启动时,报这个错,不过没有影响,能正常访问控制台、使用。报这个错是由于在开始创建域的时候,没有为AdminServer指定绑定地址,那么weblogic遍历所在主机的所有IP地址。每一个IP地址创建一个ServerSocket。从上面可以看出,总共有九个channel(流),失败的如下:

fe80:0:0:0:55a9:21f9:4b3d:fbde   Default[3]
 fe80:0:0:0:0:100:7f:fffe   Default[4]
 fe80:0:0:0:dcb3:7a0b:845e:2443  Default[1]
 fe80:0:0:0:7d05:5b9b:3b83:ca37    Default[2]
 0:0:0:0:0:0:0:1     Default[6] 
 fe80:0:0:0:4dbe:9fed:2a44:3ae2  Default[5]

如果不使用到这些ip,则没有影响。如下程序,遍历本机所有的ip地址:

package com.test;

import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.util.Enumeration;

public class Test
{
    public static void main(String[] args)
    {
        Enumeration<NetworkInterface> eni;
        try
        {
            eni = NetworkInterface.getNetworkInterfaces();
            while (eni.hasMoreElements())
            {
                NetworkInterface ni = eni.nextElement();
                Enumeration<InetAddress> eIa = ni.getInetAddresses();
                while (eIa.hasMoreElements())
                {
                    System.out.println(eIa.nextElement().getHostName());
                }
            }
        }
        catch (SocketException e)
        {
            e.printStackTrace();
        }
    }
}


 

 

来自:http://www.th7.cn/Program/java/201208/87653.shtml

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值