I developed a webapp that generates excel files. Development environment is Tomcat server under Windows XP. Production server is a Unix machine with no graphical environment. autoSizeColumn method, from HSSFSheet class, works ok in windows, but throws an exception in unix environment. The lack of graphical environment seems to be the reason.
ask this as a question on the user list.