title: FileNotFoundException - But, file exists. Tried URLEncoder.encode() too
body: <p>I'm trying to read some xml files from a folder. I'm able to read 3 out of 5 files. But, 2 xmls throws <code>FileNotFoundException</code>.</p>
  
  <pre><code>java.io.FileNotFoundException: /pd00/test/myspace/workspace/xml/info.xml  (No such file or directory)
  Exception in thread "pool-1-thread-4" java.lang.NullPointerException
  </code></pre>
  
  <p>Even I have hardcoded the path and tried. I'm using SAXParser to parse the xmls where I get this exception.</p>
  
  <pre><code>SAXParser saxParser = factory.newSAXParser();
              saxParser.parse(theXml, saxHandler);
  </code></pre>
  
  <p>The above lines are in a method called inputParsing. Then, i call this from another method beginParse using</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>int beginParse(String theField){
      Integer.parseInt(inputParsing(theXml, theField).getOffset()) - 1;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The above beginParse method is called from another class by creating an instance for the above method's enclosing Class like:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>Parsing parser = new Parsing();
  parser.beginParse("NAME");</code></pre>
  </div>
  </div>
  </p>
  
  <p>What could be the problem.</p>