• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Using poi jar 2.5 - java.io.IOException: unable to read entire block.

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am writing a web app using JSPs and I want to use apache hpsf (poi 2.5.1) to read a word document and extract the properties (metadata) of the document. I followed the example code provided in the howto from the apache site - http://poi.apache.org/hpsf/how-to.html - I am having a problem where I get a java.io.IOException: unable to read entire block: 352 bytes read; expected 512 bytes. I tried to use the poi-3.0.jar and I still get the same error. Also, I have searched the internet and I have found similar problems where the persons where attempting to read MS Excel docs using poi hssf and they received the same error. So far I have not seen any viable solutions. Any and all suggestions are welcomed. Thanks.
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I found the resolution here: http://markmail.org/message/lzyi4o4tji2ab3hi


I know that this post is old but I faced this issue yesterday and was searching for a reply and found this thread. Thought this might be useful for someone who searches for a solution for similar problem in the future.
 
You ridiculous clown, did you think you could get away with it? This is my favorite tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic