Seeing the error message, I think you are trying to create a .docx instead of a .doc or the opposite...
HSSFSheet is the object for a sheet of a .doc and XSSFSheet is the object for a sheet of a .docx
Are you trying to use .docx data in .doc or the opposite? If yes, I think it is not allowed...