Troubleshooting

Can't Connect to a Socket

Whenever I attempt to make a socket connection, I get an exception.

Most of the time, the reason that you can't connect to a port is either there is another application listening on that port that doesn't understand your protocol, or the application that you are trying to connect to isn't running.

Can't Get HTTPS Connection

Whenever I try to connect to a site using the HTTPS protocol, I get a MalformedURLException.

This is a common problem that comes up regularly on the newsgroups. You need to be using the Java Secure Socket Extension library and make sure that the JAR files for JSSE are properly installed in your systemCLASSPATH.

Using JSSE Takes Forever

When using JSSE, it seems to take forever for ...

Get Special Edition Using Java 2 Standard Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.