poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Herchl" <pepa...@gmail.com>
Subject ChunkNotFoundException
Date Thu, 13 Dec 2007 12:57:42 GMT
Hello,
I tried to write a simple class to read a subject from outlook .msg
file. I got this exception:


org.apache.poi.hsmf.exceptions.ChunkNotFoundException:
__substg1.0_0037001E was named, but not found in POIFS object
        at org.apache.poi.hsmf.parsers.POIFSChunkParser.getDocumentNode(POIFSChunkParser.java:121)
        at org.apache.poi.hsmf.parsers.POIFSChunkParser.getDocumentNode(POIFSChunkParser.java:137)
        at org.apache.poi.hsmf.MAPIMessage.getStringFromChunk(MAPIMessage.java:68)
        at org.apache.poi.hsmf.MAPIMessage.getSubject(MAPIMessage.java:90)
        at SimpleMSGTitleReader.main(SimpleMSGTitleReader.java:13)
Exception in thread "main"

source:

public class SimpleMSGTitleReader {

        public static void main(String[] args)
                throws IOException, ChunkNotFoundException
        {
                MAPIMessage msg = new MAPIMessage("aa.msg");
                System.out.println("Subject: "+msg.getSubject());
        }
}

What's wrong with it? How can i solve this issue?

Thanks

Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Mime
View raw message