Web tier: servlets, JSP, Web frameworks: FileNotFoundExcept when usng weblogic.net.http.HttpURLConnectio

  1. 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'
            at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:369)
            at csr.comp.sess.processcsr.CSRSessImpl.getParsedCSRFromLEC(CSRSessImpl.java:521)

    Please let us what could be going wrong here. Any assistance is appreciated.
  2. Please check whether the required jar/class file is in classpath.