java.io.IOException: Unable to read entire header; 162 bytes read; expected 512 bytes

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via sourceforge.net by Unknown author, 2 years ago
Unable to read entire header; 162 bytes read; expected 512 bytes
via sourceforge.net by Unknown author, 1 year ago
Unable to read entire header; 162 bytes read; expected 512 bytes
via opensearchserve by julien122
, 1 year ago
Unable to read entire header; 162 bytes read; expected 512 bytes
via Stack Overflow by Sameek Mishra
, 1 year ago
Unable to read entire header; 0 bytes read; expected 512 bytes
via Coderanch by Kousik Majumder, 1 year ago
Unable to read entire header; 92 bytes read; expected 512 bytes
via Stack Overflow by shanks_roux
, 1 year ago
Unable to read entire header; 162 bytes read; expected 512 bytes
java.io.IOException: Unable to read entire header; 162 bytes read; expected 512 bytes
at org.apache.poi.poifs.storage.HeaderBlock.alertShortRead(HeaderBlock.java:226)
at org.apache.poi.poifs.storage.HeaderBlock.readFirst512(HeaderBlock.java:207)
at org.apache.poi.poifs.storage.HeaderBlock.(HeaderBlock.java:104)
at org.apache.poi.hwpf.HWPFDocumentCore.verifyAndBuildPOIFS(HWPFDocumentCore.java:106)
at com.jaeksoft.searchlib.parser.DocParser.currentWordExtraction(DocParser.java:61)
at com.jaeksoft.searchlib.parser.DocParser.parseContent(DocParser.java:102)
at com.jaeksoft.searchlib.parser.Parser.doParserContent(Parser.java:105)
at com.jaeksoft.searchlib.parser.ParserSelector.parserLoop(ParserSelector.java:390)
at com.jaeksoft.searchlib.parser.ParserSelector.parseFileInstance(ParserSelector.java:452)
at com.jaeksoft.searchlib.crawler.file.spider.CrawlFile.download(CrawlFile.java:95)
at com.jaeksoft.searchlib.crawler.file.process.CrawlFileThread.crawl(CrawlFileThread.java:135)
at com.jaeksoft.searchlib.crawler.file.process.CrawlFileThread.runner(CrawlFileThread.java:110)
at com.jaeksoft.searchlib.process.ThreadAbstract.run(ThreadAbstract.java:261)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)

Users with the same issue

5 times, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.