If you set a name in a sheet larger that 31 characters and then try to open the generated file makes Excel crash. The rules for Excel sheet name is that it cannot be larger than 31 characters, it cannot contain the following characters : \ / ? * [ ] and cannot be blank. You can see this rules if you try to rename a sheet name in an excel spreadsheet and leave it blank. To avoid Excel crashes I think the HSSF api must check this rules.
you're right.
Fixed, thanks. Please crosscheck from CVS. This might break *some* existing programs that were using illegal sheet names, but were not opening the resulting file in excel. Unlikely, but possible. However, since Excel crashing is considered to be bug, this should be fixed. Also, the exception message should be self explanatory.