https://issues.apache.org/bugzilla/show_bug.cgi?id=44694
Summary: Unable to retrieve SummaryInformation from some Office
docs; NoPropertySetStreamException thrown
Product: POI
Version: 3.0
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: critical
Priority: P2
Component: HPFS
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
I get this on some Office docs, a specific PPT doc to reproduce this is
attached.
What I do is this:
POIFSFileSystem filesystem = new POIFSFileSystem(fis);
SummaryInformation si = (SummaryInformation) getPropertySet(filesystem,
SummaryInformation.DEFAULT_STREAM_NAME, sourcePath);
where getPropertySet does this:
public static PropertySet getPropertySet(POIFSFileSystem filesystem, String
setName, String filepath) throws IOException {
DocumentInputStream dis = filesystem.createDocumentInputStream(setName);
return PropertySetFactory.create(dis);
....
This causes the following exception:
org.apache.poi.hpsf.NoPropertySetStreamException
at org.apache.poi.hpsf.PropertySet.<init>(PropertySet.java:252)
at
org.apache.poi.hpsf.PropertySetFactory.create(PropertySetFactory.java:61)
The file doesn't appear corrupt as it opens in PPT just fine. Also, I dumped
out the directory nodes and I see that summary info is in fact there.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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]