title: Aspose cell exception:om.ctc.wstx.sr.ValidatingStreamReader cannot be cast to com.ctc.wstx.sr.ValidatingStreamReader
body: <p>I am using Aspose.Cells (trial version) to parse a .xls (Excel) file for Java. But when I try to load the file, it throws the exception given below:<br/></p>
  
  <blockquote>
    <p>SEVERE: java.lang.IllegalStateException: XML Stream Exception: XMLStreamException: com.ctc.wstx.sr.ValidatingStreamReader cannot be cast to com.ctc.wstx.sr.ValidatingStreamReader</p>
  </blockquote>
  
  <p>Here is my code<br/></p>
  
  <pre><code>Workbook workbook = new Workbook();
  try {
    workbook.open(path+fileName);
  } catch (Exception e) {
    e.printStackTrace();
  }
  Worksheet worksheet = workbook.getWorksheets().get(0);
  </code></pre>
  
  <p>This exception is coming at <strong><code>workbook.open(path+fileName);</code></strong> this line.I am quiet sure that this is not due to wrong path because when I give wrong path then aspose throws <code>FileNotFoundException</code>.So now I am stuck here and unable to find why this is happening?<br/><br/><strong>Note:</strong> In search of this problem, I found <a href="http://www.aspose.com/community/forums/permalink/342468/342468/showthread.aspx" rel="nofollow">this answer</a> on aspose forum but it is not helpful and feasible(to check all the classes present in jars placed in lib).</p>