I'm using apache-poi to parse a lot of word documents. I have the following
code.
URL u = new URL(fileName);
// given a url open a connection
URLConnection c = u.openConnection();
// set the connection timeout to 5 seconds
c.setConnectTimeout(5 * 1000);
System.out.println("Start to parse DOC file.");
POIFSFileSystem fs = new POIFSFileSystem(u.openStream());
System.out.println("File opened.");
I run this code in a loop, open the word document and parse the document.
Sometimes the code stopped at new POIFSFileSystem(u.openStream()) without
any warnings and errors for several hours. I have to restart the program.
What's the possible reason?
--
View this message in context:
http://apache-poi.1045710.n5.nabble.com/POI-stop-no-response-and-errors-tp5719051.html
Sent from the POI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]