i have a hardship and dont know why.. it has to do with the argument FileInputStream that i send to the POIFSFileSystem constructor, but dont detect the error... it should show the 1st sheet's name
classes> classes>java -classpath org\poi\poi.jar;. org.base.TestPOI Exception in thread "main" java.lang.NullPointerException at org.apache.poi.util.IOUtils.readFully(IOUtils.java:51) at org.apache.poi.util.IOUtils.readFully(IOUtils.java:36) at org.apache.poi.poifs.storage.HeaderBlockReader.<init>(HeaderBlockReader.java:71) at org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>( POIFSFileSystem.java:83) at org.base.TestPOI.main(TestPOI.java:29)
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35241
7
posted
0
Is the file readable in the sense that File.canRead() returns true?