We wanted to connect to a servlet from a Java program (client) and have a facility to timeout the client if the Servlet did not respond for a while. We are using Weblogic 6.1. We saw the API of weblogic.net.http.HttpURLConnection and saw that there was a way to timeOut the client. So we used it.
Now, we get java.io.FileNotFoundException: Response: '500: Internal Server Error' when we try to connect. The problem is intermittent and does not happen always.
Here is the stackTrace
java.io.FileNotFoundException: Response: '500: Internal Server Error' for url: 'http://URL/project/MyServlet
Please let us what could be going wrong here. Any assistance is appreciated.