title: java.io.FileNotFoundException: data.properties (The device is not ready)
body: <pre><code>getting the below error while exporting to PDF file:-   
  
   java.io.FileNotFoundException: D:\Workspace\PricingTool\data.properties (The device is not ready)
          at java.io.FileInputStream.open(Native Method)
          at java.io.FileInputStream.&lt;init&gt;(Unknown Source)
          at java.io.FileInputStream.&lt;init&gt;(Unknown Source)
          at export.ExportToPdf$PageNumbersWatermark.onOpenDocument(ExportToPdf.java:1451)
          at com.lowagie.text.pdf.PdfDocument.initPage(Unknown Source)
          at com.lowagie.text.pdf.PdfDocument.open(Unknown Source)
          at com.lowagie.text.Document.open(Unknown Source)
          at export.ExportToPdf.CreatePDF(ExportToPdf.java:189)
          at export.ExportToPdf.doGet(ExportToPdf.java:130)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  </code></pre>
  
  <p>Here is my code:</p>
  
  <pre><code>public void CreatePDF(Document document, PdfWriter writer,
              HttpServletRequest request) throws DocumentException {
          otherexpids = new ArrayList();
          int proj_id = Integer.parseInt(request.getParameter("proj_id"));
          int ver_id = Integer.parseInt(request.getParameter("ver_id"));
          document.addAuthor("Infogain Corporation");
          document.addTitle("Online Pricing");
          writer.setPageEvent(new PageNumbersWatermark());
          writer.setEncryption(null, "pc123!".getBytes(),
                  PdfWriter.AllowPrinting, PdfWriter.STANDARD_ENCRYPTION_128);
          document.open();
          Paragraph ph = new Paragraph("", header);
          ph.setAlignment("center");
          document.add(ph);
  </code></pre>
  
  <p>I want to export some records to a pdf file but while debugging i am getting error at <strong>document.open()</strong></p>
  
  <p>please help me on this. Thanks in advance</p>