https://bz.apache.org/bugzilla/show_bug.cgi?id=57818
Bug ID: 57818
Summary: BufferUnderrunException reading valid but difficult
winmail.dat file
Product: POI
Version: 3.11-FINAL
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: HMEF
Assignee: [email protected]
Reporter: [email protected]
While opening a winmail.dat file I get a BufferUnderrunException. The message
is properly opened and displayed if forwarded to an outlook.com email address.
My code is trivial:
HMEFContentsExtractor ext = new HMEFContentsExtractor(tnefFile);
I cannot include a sample file as it is confidential customer information,
however, I can privately share samples for testing, I have hundreds.
I have also tried and failed opening with these utilities:
* http://www.freeutils.net/source/jtnef/ java library
* http://tud.at/php/tnef/ online tnef extractor
* http://www.winmail-dat.com/online.php online tnef extractor
* http://github.com/verdammelt/tnef C utility on linux
* http://www.joshjacob.com/mac-development/tnef.php OSX app
* Forward to gmail.com email address
I was thinking the winmail.dat file was corrupt until I sent to outlook.com and
it worked perfectly.
Stack trace:
org.apache.poi.util.LittleEndian$BufferUnderrunException: buffer underrun
at org.apache.poi.util.LittleEndian.readUShort(LittleEndian.java:804)
at
org.apache.poi.hmef.attribute.TNEFAttribute.create(TNEFAttribute.java:61)
at org.apache.poi.hmef.HMEFMessage.process(HMEFMessage.java:74)
at org.apache.poi.hmef.HMEFMessage.process(HMEFMessage.java:98)
at org.apache.poi.hmef.HMEFMessage.process(HMEFMessage.java:98)
at org.apache.poi.hmef.HMEFMessage.process(HMEFMessage.java:98)
at org.apache.poi.hmef.HMEFMessage.process(HMEFMessage.java:98)
at org.apache.poi.hmef.HMEFMessage.process(HMEFMessage.java:98)
at org.apache.poi.hmef.HMEFMessage.process(HMEFMessage.java:98)
at org.apache.poi.hmef.HMEFMessage.process(HMEFMessage.java:98)
at org.apache.poi.hmef.HMEFMessage.process(HMEFMessage.java:98)
at org.apache.poi.hmef.HMEFMessage.<init>(HMEFMessage.java:63)
at
org.apache.poi.hmef.extractor.HMEFContentsExtractor.<init>(HMEFContentsExtractor.java:63)
... my code
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]