Can you please check the poi versions of your Excel library in your windows RAS?(%ICONCLUDE_HOME%\RAS\Java\Default\repository\lib\Excel)
May be the error still continues in the new version of poi, or it is related with your input value. Can you append your input value to the forum? Are you trying to write .xlsx file or xls file format? It might the cause of your input formats.
For example with poi version 3.7, you cannot read the sheets which contains hyperlinks.