************ Error messages **********************
Debug 1
Debug 2
java.net.ConnectException: A remote host refused an attempted connect
operati
on.
at java/lang/Throwable.<init>(Throwable.java:195)
at java/io/IOException.<init>(IOException.java:40)
at java/net/SocketException.<init>(SocketException.java:29)
at java/net/ConnectException.<init>(ConnectException.java:27)
at java/net/PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java/net/PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java/net/Socket.connect(Socket.java:426)
at java/net/Socket.connect(Socket.java:376)
at java/net/Socket.<init>(Socket.java:119)
at com/ibm/net/ssl/www/protocol/https/j.run(Unknown Source)
at com/ibm/net/ssl/www/protocol/https/b.b(Unknown Source)
at com/ibm/net/ssl/www/protocol/http/bs.a(Unknown Source)
at com/ibm/net/ssl/www/protocol/http/bs.o(Unknown Source)
at com/ibm/net/ssl/www/protocol/https/b.<init>(Unknown Source)
at com/ibm/net/ssl/www/protocol/https/b.a(Unknown Source)
at com/ibm/net/ssl/www/protocol/https/p.b(Unknown Source)
at com/ibm/net/ssl/www/protocol/https/p.connect(Unknown Source)
at com/ibm/net/ssl/www/protocol/http/bw.getInputStream(Unknown
Source
at com/ibm/net/ssl/www/protocol/https/r.getInputStream(Unknown
Source
)
at java/net/URL.openStream(URL.java:978)
at URLReader.main(URLReader.java:42)
$
***********************End of Error Message **********************
import java.net.*;
import java.io.*;
/*
* This example illustrates using a URL to access resources
* on a secure site.
*
* To use Sun's reference implementation of HTTPS protocol, Please set
* the following Java system property:
*
* java.protocol.handler.pkgs =
com.sun.net.ssl.internal.www.protocol
*
* If you are running inside a firewall, please also set the following
* Java system properties to the appropriate value:
*
* https.proxyHost = 10.0.0.1
* https.proxyPort = 12000
*
*/
public class URLReader {
public static void main(String[] args) throws Exception {
System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
System.setProperty("https.proxyHost","eagxx.xx.com");
System.setProperty("https.proxyPort","8080");
System.out.println("Debug 1 ");
URL verisign = new URL("https://www.verisign.com");
System.out.println("Debug 2 ");
BufferedReader in = new BufferedReader(new
InputStreamReader(verisign.openStream()));
String inputLine;
while ((inputLine = in.readLine()) != null){
System.out.println(inputLine);
in.close();
}
}
}
Is the 8080 port on the 400. Is the 400 setup to accept 8080 traffic via SSL.