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 the connection to take place.

Unfortunately that's the normal behavior right now. What is taking so long is the handshaking that is going on between the client and server. They are trying to negotiate the algorithm that they will use to exchange information. Hopefully, it will speed up with newer versions of JSSE, but it will always have some overhead. That's the price we pay for the additional security.

   


Special Edition Using Java 2 Standard Edition
Special Edition Using Java 2, Standard Edition (Special Edition Using...)
ISBN: 0789724685
EAN: 2147483647
Year: 1999
Pages: 353

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net