Hi When i am trying to establish connection from applet to servlet using URLConnection.. It is giving me java.io.ioexception Connection failure with 500. Can anybody let me know why and how to solve this. Thanks&Regards, Subba
posted 14 years ago
There could be a few things causing that error: 1. Is the URL to your servlet correct ? 2. Generally 500 error means that your servlet is failing. Check for messages on your servlet container logs.
posted 13 years ago
If you are writing to a ServletOutputStream, make sure you close that stream when you're finished writing. Otherwise, you will get a 500 under WebSphere (though, strangely, Tomcat and WebLogic handle the unclosed stream fine). - James