0

Im first using JXL to modify one xls file created by POI. After that I will try to read that file with POI. In the moment of POIFSFileSystem creation

 poFileSystem = new POIFSFileSystem(input);

Im getting the exception

 java.io.IOException: block[ 907 ] already removed - does your POIFS have circular or duplicate block references?

Is this a compatibility problem between those 2 libraries or something else? Im using POI ver 3.6 and latest version of JXL.

Thanks

gospodin
  • 1,133
  • 4
  • 22
  • 42
  • 1
    POI 3.6 is a little old, have you tried with the latest version? Also, can you try opening with NPOIFSFileSystem instead of the older POIFSFileSystem to see if it helps? – Gagravarr Dec 03 '12 at 23:23
  • i tried also with 3.8 but i have the same problem.. I will try right now with NPOIFSFileSystem – gospodin Dec 04 '12 at 08:49
  • yes changing POIFSFileSystem to NPOIFSFileSystem solved my problem. thanks – gospodin Dec 04 '12 at 10:20

1 Answers1

1

changing POIFSFileSystem to NPOIFSFileSystem solved my problem.

Brian Webster
  • 30,033
  • 48
  • 152
  • 225
gospodin
  • 1,133
  • 4
  • 22
  • 42