2 Replies Latest reply on Feb 9, 2002 12:31 AM by 3004

    FileNotFound Servlet Exception

    3004
      I am sending a lot request to a particular Servlet (using a custom POST query), and once in a while, WebLogic Server does not want to serve the query and throws a FileNotFound Exception. We are not heavily using the Server at this point. I have tried to play with the Post TimeOut properties in the Management console, but it does not help. Any pointers or ideas?
                
                Thanks
                
                http://???:80/xmlApiServlet
                IOException caught: http://???:80/xmlApiServlet
                java.io.FileNotFoundException: http://???:80/xmlApiServlet
                at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
                Source)
                at
                
                Patrick Deloulay
                Lumenare Networks
                pdeloulay@lumenare.com
                
                [att1.html]
                
        • 1. Re: FileNotFound Servlet Exception
          3004
          Patrick
                    What version of the server/service pack are you using? Also could you
                    post the full stack trace; or better yet file a support case with BEA at
                    http://www.bea.com/support/index.html.
                    
                    Thanks
                    Jim
                    
                    Patrick Deloulay wrote:
                    
                    > I am sending a lot request to a particular Servlet (using a custom
                    > POST query), and once in a while, WebLogic Server does not want to
                    > serve the query and throws a FileNotFound Exception. We are not
                    > heavily using the Server at this point. I have tried to play with the
                    > Post TimeOut properties in the Management console, but it does not
                    > help. Any pointers or ideas? Thanks http://???:80/xmlApiServlet
                    > IOException caught: http://???:80/xmlApiServlet
                    > java.io.FileNotFoundException: http://???:80/xmlApiServlet
                    > at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
                    >
                    > Source)
                    > atPatrick Deloulay
                    > Lumenare Networkspdeloulay@lumenare.com
                    [att1.html]
                    [Reply.vcf]
                    
          • 2. Re: FileNotFound Servlet Exception
            3004
            We are using WL6.1 SP1,
                      In the code we are just 'posting' some XML file to a specific and same servlet.
                      This behaviour of Servlet/URL 'File Not Found' happens sometimes, not always during heavy load...
                      Here is the piece of code that sends the query out, and read the response back...
                      
                      [...]
                      String servletUrlString="<protocol>://<server>:<port>/xmlApiServlet";
                      java.net.URLConnection con = buildConnection(servletUrlString);
                      DataOutputStream out = new DataOutputStream(con.getOutputStream());
                      out.writeBytes(xmlData);
                      out.flush();
                      out.close();
                      StringBuffer sb = new StringBuffer();
                      BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
                      String inputLine;
                      while ( ( inputLine = in.readLine()) != null)
                      sb.append(inputLine);
                      in.close();
                      [...]
                      
                      "Jim Weaver" <Reply@ToNewsGroup.Only> wrote in message news:3C607462.50C96598@ToNewsGroup.Only...
                      Patrick
                      What version of the server/service pack are you using? Also could you post the full stack trace; or better yet file a support case with BEA at http://www.bea.com/support/index.html.
                      Thanks
                      Jim
                      
                      Patrick Deloulay wrote:
                      
                      I am sending a lot request to a particular Servlet (using a custom POST query), and once in a while, WebLogic Server does not want to serve the query and throws a FileNotFound Exception. We are not heavily using the Server at this point. I have tried to play with the Post TimeOut properties in the Management console, but it does not help. Any pointers or ideas? Thanks http://???:80/xmlApiServlet
                      IOException caught: http://???:80/xmlApiServlet
                      java.io.FileNotFoundException: http://???:80/xmlApiServlet
                      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
                      Source)
                      atPatrick Deloulay
                      Lumenare Networkspdeloulay@lumenare.com
                      [att1.html]