Java POI exception
<p>These are the steps that i do:</p>

<p>Save excel file.
Run program that reads the excel file.</p>

<p>When i do those steps i get this error immediately:</p>

<blockquote>
  <p>java.lang.reflect.InvocationTargetException
   at
  sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
  Method)  at
  sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
   at
  sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
   at
  java.lang.reflect.Constructor.newInstance(Constructor.java:513)
   at
  org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:224)
   at
  org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:160)
   at
  org.apache.poi.hssf.usermodel.HSSFWorkbook.(HSSFWorkbook.java:163)
   at
  org.apache.poi.hssf.usermodel.HSSFWorkbook.(HSSFWorkbook.java:130)
   at</p>
  
  <p>Caused by:
  java.lang.ArrayIndexOutOfBoundsException:
  11  at
  org.apache.poi.util.LittleEndian.getNumber(LittleEndian.java:491)
   at
  org.apache.poi.util.LittleEndian.getInt(LittleEndian.java:139)
   at
  org.apache.poi.hssf.record.BOFRecord.fillFields(BOFRecord.java:133)
   at
  org.apache.poi.hssf.record.Record.fillFields(Record.java:90)
   at
  org.apache.poi.hssf.record.Record.(Record.java:55)
   at
  org.apache.poi.hssf.record.BOFRecord.(BOFRecord.java:98)
   ... 12 more
  org.apache.poi.hssf.record.RecordFormatException:
  Unable to construct record instance,
  the following exception occured: null
   at
  org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:237)
   at
  org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:160)
   at
  org.apache.poi.hssf.usermodel.HSSFWorkbook.(HSSFWorkbook.java:163)
   at
  org.apache.poi.hssf.usermodel.HSSFWorkbook.(HSSFWorkbook.java:130)
   at</p>
</blockquote>

<p>When i do these steps i dont get the error: </p>

<p>Save excel file.</p>

<p>Open excel file.</p>

<p>Click on a cell.</p>

<p>Hit save.</p>

<p>Run program.</p>

<p>No error is thrown. </p>

<p>Does anyone know why this would be? It is very frustrating!!!!!</p>
