You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by av...@itellix.com on 2004/01/04 04:11:40 UTC

More HPSF test failures -attn Rainer

o.a.p.hpsf.basic.TestWrite now fails on testRecreate for the file
TestSolidWorks.sldprt with the following message. Any Ideas? (I have fixed all
the previous errors in testCodepages and testVariantTypes)

 at org.apache.poi.hpsf.basic.TestWrite.testRecreate(TestWrite.java:669)
 at org.apache.poi.hpsf.basic.TestWrite.testRecreate(TestWrite.java:613)

expected:<org.apache.poi.hpsf.DocumentSummaryInformation[byteOrder: 65534,
classID: {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, format: 0, OSVersion: 131076,
sectionCount: 2, sections: [org.apache.poi.hpsf.Section[formatID:
{D5CDD502-2E9C-101B-9397-08002B2CF9AE}, offset: 68, propertyCount: 2, size: 48,
properties: [
org.apache.poi.hpsf.Property[id: 22, type: 11, value: false],
org.apache.poi.hpsf.Property[id: 0, type: 0, value: {0=}],
]]org.apache.poi.hpsf.Section[formatID: {D5CDD502-2E9C-101B-9397-08002B2CF9AE},
offset: 68, propertyCount: 2, size: 48, properties: [
org.apache.poi.hpsf.Property[id: 22, type: 11, value: false],
org.apache.poi.hpsf.Property[id: 0, type: 0, value: {0=}],
]]]]>]
but was:<org.apache.poi.hpsf.DocumentSummaryInformation[byteOrder: 65534,
classID: {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, format: 0, OSVersion: 131076,
sectionCount: 2, sections: [org.apache.poi.hpsf.Section[formatID:
{D5CDD502-2E9C-101B-9397-08002B2CF9AE}, offset: 68, propertyCount: 3, size: 62,
properties: [
org.apache.poi.hpsf.Property[id: 22, type: 11, value: false],
org.apache.poi.hpsf.Property[id: 0, type: 0, value: {0=}],
org.apache.poi.hpsf.Property[id: 1, type: 2, value: 1200],
]]org.apache.poi.hpsf.Section[formatID: {D5CDD502-2E9C-101B-9397-08002B2CF9AE},
offset: 68, propertyCount: 3, size: 62, properties: [
org.apache.poi.hpsf.Property[id: 22, type: 11, value: false],
org.apache.poi.hpsf.Property[id: 0, type: 0, value: {0=}],
org.apache.poi.hpsf.Property[id: 1, type: 2, value: 1200],
]]]]>


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


Re: More HPSF test failures -attn Rainer

Posted by av...@itellix.com.
So what do you suggest we do? Change the testcase, or change the code? Do they
work on your machine? What's your LANG setting?

Quoting Rainer Klute <ra...@gmx.de>:

> > o.a.p.hpsf.basic.TestWrite now fails on testRecreate for the file
> > TestSolidWorks.sldprt with the following message. Any Ideas? (I have fixed
> > all
> > the previous errors in testCodepages and testVariantTypes)
> 
> The original property set streams don't specify their codepage. HPSF then
> assumes the codepage to be 1200 (UTF-16) and puts that into the property set
> stream it creates. However, when comparing the original property set with
> the
> recreated one they are found to be unequal because one property set has the
> codepage property and the other one doesn't.
> 
> Best regards
> Rainer Klute
> 
> -- 
>                   RAINER KLUTE IT-CONSULTING GMBH
> Dipl.-Inform.
> Rainer Klute      klute@rainer-klute.de
> Körner Grund 24   Telefon: +49 172 2324824
> D-44143 Dortmund  Telefax: +49 231 5349423
> 
> +++ GMX - die erste Adresse für Mail, Message, More +++
> Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: poi-dev-help@jakarta.apache.org
> 
> 





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


Re: More HPSF test failures -attn Rainer

Posted by Rainer Klute <ra...@gmx.de>.
> o.a.p.hpsf.basic.TestWrite now fails on testRecreate for the file
> TestSolidWorks.sldprt with the following message. Any Ideas? (I have fixed
> all
> the previous errors in testCodepages and testVariantTypes)

The original property set streams don't specify their codepage. HPSF then
assumes the codepage to be 1200 (UTF-16) and puts that into the property set
stream it creates. However, when comparing the original property set with the
recreated one they are found to be unequal because one property set has the
codepage property and the other one doesn't.

Best regards
Rainer Klute

-- 
                  RAINER KLUTE IT-CONSULTING GMBH
Dipl.-Inform.
Rainer Klute      klute@rainer-klute.de
Körner Grund 24   Telefon: +49 172 2324824
D-44143 Dortmund  Telefax: +49 231 5349423

+++ GMX - die erste Adresse für Mail, Message, More +++
Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail


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