You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Daniel Noll <da...@nuix.com.au> on 2006/03/21 04:26:09 UTC
getStorageClsid()
Hi all.
I've noticed that almost invariantly, fs.getRoot().getStorageClsid()
returns a ClassID with all zeros.
I'm fairly certain this is a bug because I've traced the creation of the
properties in a debugger, and the root property does have the correct
ClassID. At some point in the POIFSFileSystem constructor, it is then
throwing away the class ID, but I can't see exactly where it's being
thrown to.
Any ideas?
Daniel
--
Daniel Noll
Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, Australia Ph: +61 2 9280 0699
Web: http://www.nuix.com.au/ Fax: +61 2 9212 6902
This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.
---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List: http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/
Re: getStorageClsid()
Posted by Daniel Noll <da...@nuix.com.au>.
Daniel Noll wrote:
> I'm fairly certain this is a bug because I've traced the creation of the
> properties in a debugger, and the root property does have the correct
> ClassID. At some point in the POIFSFileSystem constructor, it is then
> throwing away the class ID, but I can't see exactly where it's being
> thrown to.
A reasonable workaround seems to be adding this at the bottom of the
(second) POIFSFileSystem constructor:
getRoot().setStorageClsid(properties.getRoot().getStorageClsid());
This doesn't fix the underlying problem which is that the entire root is
somehow being clobbered somewhere, but it does at least make the one
method I do need to call work as expected.
Daniel
--
Daniel Noll
Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, Australia Ph: +61 2 9280 0699
Web: http://www.nuix.com.au/ Fax: +61 2 9212 6902
This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.
---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List: http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/