I have a java class that initializes different cell styles to will be applied on a spreadsheet. Like the following: private void createNormalStyle(Workbook wb){ CellStyle cs = wb.createCellStyle(); // cs.setShrinkToFit(true); cs.setAlignment(CellStyle.ALIGN_LEFT); cs.setVerticalAlignment(CellStyle.VERTICAL_CENTER); this.standardCellStyle=cs; } If I add the line that sets the rhinkToFt to true, the program blocks, without throwing any error. If I remove it the program works fine.
Is this on all files, or just one? Have you tried with the latest version of Apache POI? (3.11 beta 3) Is this on all JVMs, or just one machine+JVM combination?
Only JVM 1.6. I have tried only with Apache POI 3.10 (3.10-FINAL). It was happening just with one file. I did not try with other files.
(In reply to giovannig from comment #2) > Only JVM 1.6. > > I have tried only with Apache POI 3.10 (3.10-FINAL). > > It was happening just with one file. I did not try with other files. Srry, I was meaning JVM 1.7
If this is still a problem for you we need a bit more information here, i.e. what is "jstack" reporting when you run it with the pid of the java program that hangs? Can you provide a self-sufficient sample-code that reproduces the problem? Ideally as a unit-test that we can add the test-suite of POI to keep a potential problem from re-appearing in the future?