Return-Path: Delivered-To: apmail-poi-user-archive@www.apache.org Received: (qmail 28199 invoked from network); 13 Dec 2007 12:58:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Dec 2007 12:58:14 -0000 Received: (qmail 62683 invoked by uid 500); 13 Dec 2007 12:58:01 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 62666 invoked by uid 500); 13 Dec 2007 12:58:01 -0000 Mailing-List: contact user-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Users List" Delivered-To: mailing list user@poi.apache.org Received: (qmail 62657 invoked by uid 99); 13 Dec 2007 12:58:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2007 04:58:01 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pepanko@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nf-out-0910.google.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2007 12:57:40 +0000 Received: by nf-out-0910.google.com with SMTP id c7so582228nfi.35 for ; Thu, 13 Dec 2007 04:57:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=PJCqBduTQpS/00jnbIeKgVlT4LVqo7MlRKDMOWHgFC0=; b=AO7U6cDCmhOv48H0+7Lpb4aiPNQxfT2qkZNsfs1aE/W73B+JYxywTMfC0q3th0xkb4S4uHlvHDxPeZp7Hj3NXLnPjSNzzotdajc1qNCblGrQGf8H/KlTOksutfp1UEDunJyDB2+0bP9VRLs0IguHeuY3X1QEpihhLU8Zc09ak+8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XtSRXQoDjyotu8QGpLZZTaGy89gEX/wlMRFnsX4pM2JusBsMJt+vbFav14IurYMvpJ0y5MJPrKTUK/70hZMVxS5fUDgZIICrECFnteUrRh7S8yvt550UwBAB5E2IwMg3BX43VaOgCMcOGliy01T9PWO4UAoFORU6My3Ex8VhrkE= Received: by 10.86.54.3 with SMTP id c3mr1815799fga.4.1197550662295; Thu, 13 Dec 2007 04:57:42 -0800 (PST) Received: by 10.86.99.19 with HTTP; Thu, 13 Dec 2007 04:57:42 -0800 (PST) Message-ID: <29d2a4dd0712130457j7288d990pefbeee3ea5c8cbdc@mail.gmail.com> Date: Thu, 13 Dec 2007 13:57:42 +0100 From: "Peter Herchl" To: user@poi.apache.org Subject: ChunkNotFoundException In-Reply-To: <29d2a4dd0712120740q754a5f0di7eeb329090870c9f@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <29d2a4dd0712120535n41eeb315gd691723124ec543f@mail.gmail.com> <29d2a4dd0712120740q754a5f0di7eeb329090870c9f@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org 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