public IpAddress(String i, int p) { try { ip_addr=InetAddress.getByName(i); } catch(Exception e) { if(log.isWarnEnabled()) log.warn("failed to get " + i + ':' + p + ", using \"127.0.0.1\", exception: " + Util.printStackTrace(e)); try { ip_addr=InetAddress.getByName("127.0.0.1"); } catch(Exception ex) { if(log.isWarnEnabled()) log.warn("exception: " + ex); } } port=p;
public IpAddress() {
    public IpAddress(String i, int p) {    	try {        	ip_addr=InetAddress.getByName(i);        }        catch(Exception e) {            if(log.isWarnEnabled()) log.warn("failed to get " + i + ':' + p +                       ", using \"127.0.0.1\", exception: " + Util.printStackTrace(e));            try {                ip_addr=InetAddress.getByName("127.0.0.1");            }            catch(Exception ex) {                if(log.isWarnEnabled()) log.warn("exception: " + ex);            }        }        port=p;    }