JTNEF problem
843834Jun 30 2008 — edited Nov 17 2009Has anybody used JTNEF API to parse exchange tnef messages? [http://www.freeutils.net/source/jtnef/|http://www.freeutils.net/source/jtnef/]
I am facing some problem with this API in parsing a specific tnef message. I get following exception while parsing that message:
Exception occurred while converting tnef message
java.io.IOException: Unexpected end of stream
at net.freeutils.tnef.TNEFInputStream.readAttr(Unknown Source)
at net.freeutils.tnef.Message.read(Unknown Source)
at net.freeutils.tnef.Message.<init>(Unknown Source)
at net.freeutils.tnef.mime.TNEFMime.convert(Unknown Source)
at net.freeutils.tnef.mime.TNEFMime.convert(Unknown Source)
at net.freeutils.tnef.mime.TNEFMime.convert(Unknown Source)
at net.freeutils.tnef.mime.TNEFMime.convert(Unknown Source)
Since I am using the jar file, the trace is not showing the line numbers, but I've found the line from which the error occurs. The problem is that the message is not being read completely by the API and Unexpected end of stream error occurs.
Any help would be greatly appreciated.