HttpURLConnection.getInputStream FileNotFoundException

Hy all,
when i try to accessa business servlet from a presentation serlvet i get
the folowing exception
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.io.IOException.<init>(Compiled Code)
at java.io.FileNotFoundException.<init>(Compiled Code)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Compiled
Code)
at
servlets_edomus.U1AB00JSBucleAbonado.obtenMensaje(U1AB00JSBucleAbonado.java:519)
This only happen when i protect all the servlets with a acl, bun not
when this acl is not installed.
Somebody know about it
Thanks in advance
Ignacio Ramos Garcia
Division TSO
Area de Telecomunicaciones
Tecsidel
C/ Enrique Jardiel Poncela, 6
28016 Madrid
Tel: (+34) 91 353 08 19
Fax: (+34) 91 353 08 81
<mailto:[email protected]>
www.tecsidel.es

Since all of your ACLs are at the webserver tier, and all of your
servlets are at the appserver tier, this shouldn't be happening.
How are are you forwarding from presentation servlet to business
servlet? Are you resistering your business servlet in your
web.mxl/ias-web.xml? Can you include more of your kjs log?
David
Ignacio Ramos Garcia wrote:
Hy all,
when i try to accessa business servlet from a presentation serlvet i get
the folowing exception
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.io.IOException.<init>(Compiled Code)
at java.io.FileNotFoundException.<init>(Compiled Code)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Compiled Code)
at
servlets_edomus.U1AB00JSBucleAbonado.obtenMensaje(U1AB00JSBucleAbonado.java:519)
This only happen when i protect all the servlets with a acl, bun not
when this acl is not installed.
Somebody know about it
Thanks in advance

Similar Messages

  • HttpUrlConnection.getInputStream() does not return for a particular website

    Hi,
    In my code, I am using an instance of java.net.HttpUrlConnection to "get" a web page. I am able to do it for all websites - except a particular website [Summary is at the end of this post]. The program hangs [for 10+ minutes and then throws an exception ] when I invoke
    InputStream err = httpCon.getErrorStream();
    System.out.println("Error is : " + err); // I get err as "null"
    // It hangs below for 10+ minutes and then throws an exception
    httpUrlConnection.getInputStream(); // httpUrlConnection is a valid
    I get an error when I try to get the webpage using I.E or Netscape too.
    So most likely there is some problem with the website. However I do not want my program to hang for 10+ minutes.
    I even tried to get the headers but even that invocation blocks:
    System.out.println("Reading header ........");
    for(int i = 1; i < 100; i++) {
    str = httpCon.getHeaderFieldKey(i); // <<<<<-- HANGS HERE!!!
    if(str == null || str.length() <= 0) {
    System.out.println("Header stopped reading at: " + i);
    break;
    System.out.println(str + ": " + httpCon.getHeaderField(str));
    I get an exception trace after 10+ minutes :
    java.net.SocketException: Unexpected end of file from server
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:699)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:604)
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:697)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:604)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:510)
    at com.panacya.dp.xml.HttpInputSource.processResponse(HttpInputSource.java:440)
    at com.panacya.dp.xml.HttpInputSource.get(HttpInputSource.java:398)
    Summary:
    1. Works for most of the websites but not for at least one [out of 30+ I tried]
    2. httpUrlConnection.getErrorStream() returns a null.
    3. httpUrlConnection.getInputStream() blocks for 10+ minutes and the httpUrlConnection.getHeaderFieldKey() also blocks.
    4. After 10+ minutes the program throws an exception.
    Q) How do make the getInputStream() call as non-blocking or have a tweakable timeout? [better still check if the call getInputStream()  should be made in the first place].
    Thanks,
    A C

    very simple... start a new thread with a timer... create a variable in your main thread... if you recieve a request (at least one) before the timer runs out... then set the variable in the main thread to true, so when the thread runs out it will not throw an exception.... on the other hand if you do not receive a request... the thread will run out... see that the variable in the main thread is still false... so then... it willl throw a exception... that you can catch... and work with from there...
    Have fun...
    matt

  • IOException on httpURLConnection.getInputStream();

    Hello !
    I have written some code to transfer a HTTP Request received on a servlet... but I'm catching an IOException when getting inputstream
    at the end....
    I though that adding a setDoInput(true) would solve the problem but
    the code stops on it instead...
    Thanks to help me,
    Bye,
    Ludovic, France
    public int transferRequest(String fullRequestURL, HttpServletRequest request, byte[] body)
         try
              // Construct URL
              URL url = new URL(fullRequestURL);
              // Open URL and get input stream ...
              HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();
              // Getting request type informations (method requestURI protocol)
              String method = request.getMethod();
              // Set method
              httpURLConnection.setRequestMethod(method);
              // Set output mode to true
              httpURLConnection.setDoOutput(true);
              // Temp string used in loop statement
              String key = "";
              String value = "";
              // Then set all header parameters
         Enumeration e = request.getHeaderNames();
         while (e.hasMoreElements())
         // Get next header key
         key = (String)e.nextElement();
         // Set forward request with it
         httpURLConnection.setRequestProperty(key, request.getHeader(key));
    } /* end of while */
              // Open output stream
              OutputStream outputStream = httpURLConnection.getOutputStream();
              // Write body into stream
              outputStream.write(body);
              // Flush and close the streams
              outputStream.flush();
              outputStream.close();
              //httpURLConnection.setDoInput(true);
              // Open an input stream
              InputStream urlInputStream = httpURLConnection.getInputStream();
              // Initiate byte[] to read from URL input stream
              int responseCode = httpURLConnection.getResponseCode();
              // Flush and close the streams
              urlInputStream.close();
              httpURLConnection.disconnect();
              // Return the byte array
              return responseCode;
         catch (UnknownServiceException unknownServiceException)
              unknownServiceException.printStackTrace();
         catch (MalformedURLException malformedURLException)
              malformedURLException.printStackTrace();
         catch (ProtocolException protocolException)
              protocolException.printStackTrace();
         catch (IOException aIOException)
              aIOException.printStackTrace();
         catch (Exception aException)
              aException.printStackTrace();
         // At this point, an error occured !
         return 500;
    } /* end of transferRequest */

    An info:
    This code works only when using no proxy... but I must use a proxy !

  • FileNotFoundException during HttpURLConnection.getInputStream()

    I keep getting a FileNotFoundException when I do the following:
    Open a connection to a URL
    Get the OutputStream
    Write something to the OutputStream
    Flush and close the OutputStream
    Get the InputStream
    Read the data
    Close the InputStream
    Get the OutputStream again
    Write more data to the OutputStream
    Flush and close the OutputStream
    Get the InputStream again
    It's always OK up until the point that I get the InputStream for the second time. I looked through the archives and saw that some people were getting this error if they hadn't closed the output stream befored opening the input stream or if they hadn't set the request method to POST, doInput and doOutput to true, and useCaches to false. I checked my code and I am doing all of these things.
    Any suggestions on why this might be happening? Your help is very appreciated.

    Figured out the problem. The error was caused by not having a trailing slash in the URL.
    Thanks!

  • HttpURLConnection throws FileNotFoundException on returning http 404

    Hello,
    I'd like to getOutputStream for any received content, 404 also, but it throws FileNotFoundException (btw. what silly thing to do :-/ )
    I've tried getErrorStream but no data there...
    I'd gladly remove the lines regarging throwing that exception for the class which appears to be sun.net.www.protocol.http.HttpURLConnection.
    Please help.
    I haven't found any solution...

    The simply built-in HTTP client is just that: simple and optimized for simple situations.
    Usually you only want the content if it's actually what you requested and not just an error page.
    If you need more control over your HTTP client, then you might want to look into other implementations. [Jakarta Commons HTTP client|http://hc.apache.org/httpclient-3.x/] is a pretty widely-used one.

  • FileNotFoundException while trying to run a form on the web

    Hi,
    I've installed Forms Server on Windows NT. I'm trying to run the test form on the web, and in the java console window I'm getting the following message:
    Oracle JInitiator version 1.1.7.30
    Using JRE version 1.1.7.30o
    User home directory = D:\WINNT\Profiles\07223
    JAR caching enabled.
    Cache directory: D:\PROGRA~1\Oracle\JINITI~1.30\jcache
    Maximum cache size: 50000000 bytes
    Opening http://nbk981536.ul.us.com:80/forms60java/f60web.jar no proxy
    Unable to contact http://nbk981536.ul.us.com:80/forms60java/f60web.jar
    Opening http://nbk981536.ul.us.com:80/forms60java/f60web.jar no proxy
    java.io.FileNotFoundException: http://nbk981536.ul.us.com:80/forms60java/f60web.jar
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Compiled Code)
    at sun.net.www.protocol.http.HttpURLConnection.openConnectionCheckRedirects(Compiled Code)
    at sun.applet.JARCache.beginStoring(JARCache.java:348)
    at sun.applet.AppletResourceLoader.loadJar(AppletResourceLoader.java:218)
    at sun.applet.JinitAppletPanel.loadJarFiles(Compiled Code)
    at sun.plugin.AppletViewer.loadJarFiles(Compiled Code)
    at sun.applet.JinitAppletPanel.runLoader(JinitAppletPanel.java:588)
    at sun.applet.JinitAppletPanel.run(Compiled Code)
    at java.lang.Thread.run(Thread.java:466)
    Any ideas as to why this is happening, and any suggestions to resolve this is highly appreciated.
    Thanx in advance.
    VL

    I've installed Forms Server in another Oracle home called 'dev6i'. I've the f60web.jar and 11 other .jar files in \dev6i\forms60\java directory. I've installed the forms server successfully (I can say this because I was able to run the test form successfully couple of times, until I installed reports server in the same Oracle home. Then it started giving this message in the java console). I've also installed Webdblistener. My reports test page is displaying correctly though. Any ideas what might have happened??
    Thanks
    VL.

  • Java.io.FileNotFoundException: Response: '404: Not Found' for url:

    Hello,
    I am in the processing porting a J2EE based application deployed originally in OC4J to WLS. I am not changing anything as far as J2EE/Web configuration files such as web.xml. Whenever I hit the URL of the application, I am getting the below exception.
    What does usually "java.io.FileNotFoundException: Response: '404: Not Found' for url...." indicate?
    If you could please give me some pointers to narrow down the places to look, I would appreciate it.
    Thanks,
    Mustafa
    java.io.FileNotFoundException: Response: '404: Not Found' for url: 'http://cayc
    001geo1:7001/IUS_Editor/mapservlet'
    at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnectionjava:487)
    at weblogic.net.http.SOAPHttpURLConnection.getInputStream(SOAPHttpURLConection.java:37)
    at oracle.lbs.mapclient.MapViewer.getXMLResponse(MapViewer.java:6013)
    at oracle.lbs.mapclient.MapViewer.getDataSources(MapViewer.java:629)
    at gov.census.geo.maftiger.interactiveupdate.navigation.mapservlet.ISGegraphyController.getMapviewerDS(ISGeographyController.java:730)
    at gov.census.geo.maftiger.interactiveupdate.navigation.mapservlet.ISGegraphyController.doPost(ISGeographyController.java:161)
    at gov.census.geo.maftiger.interactiveupdate.navigation.mapservlet.ISGegraphyController.doGet(ISGeographyController.java:73)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.ru(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurtyHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.ja
    a:300)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.ja
    a:184)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActi

    Hello,
    I was able to sort out this issue. I was comparing the web.xml and found out that the servlet-mapping was missing.
    Thanks,
    Mustafa

  • Sometime fail to call servlet ERROR message: java.io.FileNotFoundException: Response: '500: Internal Server Error' for url:.

              Error:
              java.io.FileNotFoundException: Response: '500: Internal Server Error' for url:
              'http://www.xxxx.com//myServlet/anyfile.exml'
              at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:380)
              The URL is correct.
              When it fails, on IE browser, receive the following message,
              ·     The RPC server is unavailable
              ·     The remote procedure call failed.
              Servlet receives xml and set it into session.
              This class set or get session.
              Servlet is called many times.
              Using weblogic 8.1
              

              Error:
              java.io.FileNotFoundException: Response: '500: Internal Server Error' for url:
              'http://www.xxxx.com//myServlet/anyfile.exml'
              at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:380)
              The URL is correct.
              When it fails, on IE browser, receive the following message,
              ·     The RPC server is unavailable
              ·     The remote procedure call failed.
              Servlet receives xml and set it into session.
              This class set or get session.
              Servlet is called many times.
              Using weblogic 8.1
              

  • FileNotFoundException in XMLProvider

    I modified the SampleXML provider's URL property to point to "http://www.w3schools.com/xml/simple.xml" and have a xsl file under the defaults. I get this exception when i run the portal. I can open this url in the browser and it brings up the xml page.
    03/24/2003 11:58:52:782 AM EST: Thread[Thread-270,5,main]
    ERROR: Exception in HTMLFetcher:run()
    java.io.FileNotFoundException: http://www.w3schools.com/xml/simple.xml
    at
    sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
    nection.java:602)
    at
    sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLCon
    nection.java:881)
    at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:449)
    03/24/2003 11:58:52:782 AM EST: Thread[Thread-270,5,main]M EST:
    Thread[Thread-270,5,main]
    ERROR: Exception in HTMLFetcher:run()
    ERROR: URLScraperProvider.getContent(): fetcher did not finish! 03/24/2003 11:58:52:786 AM EST: Thread[Thread-269,5,main]
    ERROR: XMLProvider.doTransform():Error in transforming xml.
    ; Line#: 1; Column#: -1
    javax.xml.transform.TransformerException: Document root element is missing.
    at
    org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:660)
    at
    org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1118)
    at
    com.sun.portal.providers.xml.XMLProvider.doTransform(XMLProvider.java:216)
    at
    com.sun.portal.providers.xml.XMLProvider.getContent(XMLProvider.java:280)
    at
    com.sun.portal.desktop.context.ReusableProviderCaller.run(ReusableProviderCaller.ja
    va:145)
    03/24/2003 11:58:52:788 AM EST: Thread[Thread-269,5,main]
    ERROR: XMLProvider.getContent():Error in XML transformation.

    Is the URL able to be resolved on the server where the portal is running? Does a proxy need to be configured?

  • Java.io.FileNotFoundException: Response: '403: Forbidden' for url

    Hi,
    I'm in wls7.0sp6 and trying to connect to a secure site, bu all I get is either
    "java.io.FileNotFoundException: Response: '403: Forbidden' for url 'https://www.....'"
    or
    java.net.SocketException: Connection aborted by peer: JVM_recv in socket input stream read
    I can connect to this url in html form post from browser.
    I was battling with it for a week already.
    Any help will be appreciated.

    When i connect through the browser i connect using the Https to that URL. There is no more authentication for that. It just accepts the username and password that i am sending in along with the request.
    I am able to connect to the server using the jdk1.3 stand alone implementing with the SSL handler.
    But when i try to do that through weblogic it gives me the following error.
    java.io.FileNotFoundException: Response: '403: Forbidden' for url: 'https://server4.dollarsonthenet.net/api/s4tran_action.cfm'
    at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:379)
    at com.acquity.ond.burton.shift4.Shift4CardClient.sendPostToServer(Shift4CardClient.java:306)
    at com.acquity.ond.burton.shift4.Shift4CardClient.processCreditCard(Shift4CardClient.java:97)
    at com.acquity.ond.burton.shift4.Shift4CheckCardBalance.execute(Shift4CheckCardBalance.java:50)
    at com.bluemartini.server.BusinessActionServlet.executeInternal(BusinessActionServlet.java:419)
    at com.bluemartini.server.BusinessActionServlet.executeOnce(BusinessActionServlet.java:359)
    at com.bluemartini.server.BusinessActionServlet.executeInternal(BusinessActionServlet.java:214)
    at com.bluemartini.server.BusinessActionServlet.execute(BusinessActionServlet.java:48)
    at com.bluemartini.client.BusinessActionClient.executeBusinessActionInternal(BusinessActionClient.java:761)
    at com.bluemartini.client.BusinessActionClient.executeBusinessAction(BusinessActionClient.java:283)
    at com.bluemartini.client.BusinessActionClient.executeBusinessAction(BusinessActionClient.java:210)
    at com.bluemartini.html.StandardRequestHandler.executeProcessBusinessAction(StandardRequestHandler.java:2512)
    at com.bluemartini.html.StandardRequestHandler.executeProcessBusinessActions(StandardRequestHandler.java:2392)
    at com.bluemartini.html.StandardRequestHandler.handleRequest(StandardRequestHandler.java:605)
    at com.bluemartini.html.HTMLFilter.doFilter(HTMLFilter.java:321)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5632)
    at weblogic.security.service.
    Regards,
    Mayuri

  • XML Component FileNotFoundException Error

    I am using 9iAS r2 and am trying to use the XML Component. The source for my XML is a URL, this point to Oracle Reports and is working an produces valid XML, the XSL is static (entered in the dialog box).
    When I try and run the XML Component I get the following error:
    java.io.FileNotFoundException: http://XXXXX:7779/reports/rwservlet?exp5&p_lmtnum=12 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java) at oracle.webdb.xmlcomp.XMLTransDoc.Transform(XMLTransDoc.java:129)
    If I take the XML that the above URL returns and paste it into the XML source dialogue box everything runs fine. Also if I save the XML the above URL returns to a file and store it on the same server as a static file it runs fine.
    I have also tried setting the caching on Reports so the XML is returned almost without any significant delay.
    Any ideas,
    Jon

    The problems turned out to be related to an authtication error. The XML component was not passing the authtication through to reports, despite being logged in to create the XML component.
    If I added authid=user/pwd to the report request query string this resolved the problem,
    Jon

  • HttpURLConnection throws a FileNotFound exception

    Hi Everybody,
    I want to post the data to a remote servlet using HttpURLConnection.
    But it throws a FileNotFound exception. Pls send me the solution.
    My code is
    First Servlet:
    ==============
    import java.io.*;
    import java.net.*;
    import java.text.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Test extends HttpServlet {
         public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException {
    response.setContentType("text/html");
              URL url = new URL("http://node_18:8080/examples/servlet/HelloWorldExample1");
              HttpURLConnection conn = (HttpURLConnection) url.openConnection();
              conn.setRequestMethod("POST");
              //HttpURLConnection.setFollowRedirects(true);
              conn.setUseCaches(false);
              conn.setDoOutput(true);
              conn.setDoInput(true);
              String postData = "name=value&othername=value";
              String lengthString = String.valueOf(postData.length());
              conn.setRequestProperty("Content-Length", lengthString);
              conn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
              Writer out = new OutputStreamWriter(conn.getOutputStream());
              out.write(postData);
              out.close();
              PrintWriter out1 = response.getWriter();
              BufferedReader in =
              new BufferedReader(new InputStreamReader(conn.getInputStream()));
              String line = null;
              while (null != (line = in.readLine()))
              out1.println(line);
              in.close();
              out1.close();
    Second Servlet:
    ================
    import java.io.*;
    import java.text.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class HelloWorldExample1 extends HttpServlet {
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    String name = request.getParameter("name");
    String othername = request.getParameter("othername");
    System.out.println("name = "+name+" othername = "+othername);
    out.println("<html>");
    out.println("<head>");
         out.println("<title> Test </title>");
    out.println("</head>");
    out.println("<body bgcolor=\"white\">");
         out.println("Test");
    out.println("</body>");
    out.println("</html>");
    public void destroy() {
         System.out.println("Servlet Destroyed");
    public void doPost(HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException
         doPost(request,
    response);
    Error:
    =======
    java.io.FileNotFoundException: http://node_18:8080/examples/servlet/HelloWorldExample1
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:574)
         at Test.doGet(Test.java:37)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:471)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:623)
         at java.lang.Thread.run(Thread.java:484)

    Hi p200002,
    I call doPost method in doPost in the second servlet. It will be
    public void doPost(HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException
         doGet(request,
    response);
    }

  • FileNotFoundException:  403 Forbidden

    Hi, I have a web app that connects to an external site to retrieve an XML file. We have four deployment levels, that is, four different machines with their own installation of weblogic 7 SP2 (jdk131_06): local, development, test and production.<br>
    <br>
    Attempting to connect to the external site through the web app generates a 403 error on the local and test boxes, but <b>not</b> on the development or production boxes. However, cutting and pasting the url into a browser works fine on all boxes. So it appears the problem is at the weblogic level, not necessarily a problem on the box itself.<br>
    <br>
    Any ideas where to look to debug this issue?<br>
    <br>
    The stack trace I get is:
    java.io.FileNotFoundException: Response: '403: Forbidden' for url: 'https://externalsite.org/directory/service.cfm?u=someuser&p=20060626&ssn=111111111&doeid=00000100&format=XML'<br>
    at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:366)<br>
    at org.ecmc.esign.myf.MyfOslcHelper.getMYFData(MyfOslcHelper.java:76)<br>
    at org.ecmc.esign.myf.MyfOslcHelper.getSsnSchoolList(MyfOslcHelper.java:101)<br>
    at org.ecmc.esign.webapp.action.DirectLinkSsnDobAction.performSubmit(DirectLinkSsnDobAction.java:103)<br>
    at org.ecmc.esign.webapp.action.ActionServicer.perform(ActionServicer.java:61)<br>
    at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)<br>
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)<br>
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)<br>
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)<br>
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)<br>
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)<br>
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)<br>
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)<br>
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5445)<br>
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:780)<br>
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3105)<br>
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2588)<br>
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)<br>
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)<br>
    <br>
    TIA,<br>
    <br>
    Jon

    Hi, I have a web app that connects to an external site to retrieve an XML file. We have four deployment levels, that is, four different machines with their own installation of weblogic 7 SP2 (jdk131_06): local, development, test and production.<br>
    <br>
    Attempting to connect to the external site through the web app generates a 403 error on the local and test boxes, but <b>not</b> on the development or production boxes. However, cutting and pasting the url into a browser works fine on all boxes. So it appears the problem is at the weblogic level, not necessarily a problem on the box itself.<br>
    <br>
    Any ideas where to look to debug this issue?<br>
    <br>
    The stack trace I get is:
    java.io.FileNotFoundException: Response: '403: Forbidden' for url: 'https://externalsite.org/directory/service.cfm?u=someuser&p=20060626&ssn=111111111&doeid=00000100&format=XML'<br>
    at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:366)<br>
    at org.ecmc.esign.myf.MyfOslcHelper.getMYFData(MyfOslcHelper.java:76)<br>
    at org.ecmc.esign.myf.MyfOslcHelper.getSsnSchoolList(MyfOslcHelper.java:101)<br>
    at org.ecmc.esign.webapp.action.DirectLinkSsnDobAction.performSubmit(DirectLinkSsnDobAction.java:103)<br>
    at org.ecmc.esign.webapp.action.ActionServicer.perform(ActionServicer.java:61)<br>
    at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)<br>
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)<br>
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)<br>
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)<br>
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)<br>
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)<br>
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)<br>
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)<br>
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5445)<br>
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:780)<br>
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3105)<br>
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2588)<br>
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)<br>
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)<br>
    <br>
    TIA,<br>
    <br>
    Jon

  • FileNotFoundException with multiple keywords

    With multiple keywords 'pi_keyword=account and manager', my program generates: java.io.FileNotFoundException.......sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:702). But the url works fine in IE address box. In addition, if only single keyword
    'pi_keyword=account ', my program works no problem. Any solution? Thanks.
    The following is my program:
    URL url = new URL(str);
    URLConnection connection = (URLConnection) url.openConnection();
    connection.setDoOutput(true);
    BufferedReader in = new BufferedReader(
    new InputStreamReader(connection.getInputStream()));
    The fullurl is:
    http://jobs.workopolis.com/jobshome/db/work.process_job?pi_post_date=&pi_smart=N&pi_sort_col=&pi_employer=Dummy&pi_advertiser=Dummy&pi_category=Dummy&pi_industry=Dummy&pi_msg=LOCATION&pi_language=EN&pi_keyword=manager and account&pi_location=British Columbia

    I think whitespace isn't allowed in the keyword values, what do you get if you replace space with '+'?
    That is: "pi_keyword=account+and+manager" and "pi_location=British+Columbia"

  • Application-server.dtd FileNotFoundException

    I am building an app via ant, to run in an Ora9ias (9.0.3) installation on Win2k (SP2). I've been running successfully with this configuration for nearly a year. This morning, out of the blue, I started getting this exception when I try to build:
    [makeParent] java.io.FileNotFoundException: http://xmlns.oracle.com/ias/dtds/application-server.dtd
    [makeParent] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:707)
    [makeParent] at java.net.URL.openStream(URL.java:960)
    [makeParent] at org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:796)
    [makeParent] at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:756)
    [makeParent] at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:267)
    [makeParent] at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:826)
    [makeParent] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
    [makeParent] at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)
    [makeParent] at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)
    [makeParent] at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
    [makeParent] at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:253)
    [makeParent] at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:201)
    [makeParent] at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:151)
    [makeParent] at com.gal.fast.portal.build.ParentAppTask.execute(ParentAppTask.java:148)
    [makeParent] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166)
    [makeParent] at org.apache.tools.ant.Task.perform(Task.java:317)
    [makeParent] at org.apache.tools.ant.Target.execute(Target.java:309)
    [makeParent] at org.apache.tools.ant.Target.performTasks(Target.java:334)
    [makeParent] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [makeParent] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371)
    [makeParent] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)
    [makeParent] at org.apache.tools.ant.Task.perform(Task.java:317)
    [makeParent] at org.apache.tools.ant.Target.execute(Target.java:309)
    [makeParent] at org.apache.tools.ant.Target.performTasks(Target.java:334)
    [makeParent] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [makeParent] at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
    [makeParent] at org.apache.tools.ant.Main.runBuild(Main.java:610)
    [makeParent] at org.apache.tools.ant.Main.start(Main.java:196)
    [makeParent] at org.apache.tools.ant.Main.main(Main.java:235)
    There have been no network configuration changes at my workplace, and other DTD-related operations seem to be working properly. Has something significant changed at xmlns.oracle.com ?

    hi,
    am facing now exactly the same poblem and i couldnt figure it out yet but my situation might help spotting your problem.
    am accessing my solaris 10 server using an xwindow manager and when ever i close the session my server stops being accessible and checking its status again i found that the imqbroke is stopped for the same reason which is client closed the connection . in my case this is true as i log off so u really need to check whats causing the connection to close.
    Best regards

Maybe you are looking for