i want to read the 2010 excel file in java using apache poi api ... but it gives me an error Exception in thread "main" java.lang.IllegalArgumentException: Sheet index (0) is out of range (0..-1) i am using xssf but if i want to get the data from old format of the excel then it works fine by sing HSSF .. i dont know what is going with XSSF..here is my code ..plz help me in it.i want to read the 2010 excel file in java usin