Description
The following method:
public String toHostString() { if (this.port != -1) { //the highest port number is 65535, which is length 6 with the addition of the colon StringBuilder buffer = new StringBuilder(this.hostname.length() + 6); buffer.append(this.hostname); buffer.append(":"); buffer.append(Integer.toString(this.port)); return buffer.toString(); } else { return this.hostname; } }
... always appends a port number. Unfortunately, some sites don't accept a port number. See CONNECTORS-604.