Bug 51097 - org.apache.poi.hssf.usermodel.TestBugs test failure
Summary: org.apache.poi.hssf.usermodel.TestBugs test failure
Status: RESOLVED INVALID
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 3.8-dev
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-20 13:56 UTC by Orion Poplawski
Modified: 2011-04-20 18:30 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Orion Poplawski 2011-04-20 13:56:01 UTC
I'm getting the following test failure building POI 3.7 and 3.8-beta2 on Fedora:

    [junit] Running org.apache.poi.hssf.usermodel.TestBugs
    [junit] Warning, header block comes after data blocks in POIFS block listing
    [junit] Warning, incorrectly terminated empty data blocks in POIFS block listing (should end at -2, ended at 0)
    [junit] Warning - ExtRst was has wrong magic marker, expecting 1 but found 12 - ignoring
    [junit] ExtRst was supposed to be 12 bytes long, but seems to actually be 14
    [junit] Tests run: 112, Failures: 0, Errors: 1, Time elapsed: 1.603 sec
Comment 1 Nick Burch 2011-04-20 17:13:54 UTC
Which test gave the error though? And what were the error details?

Also, are you using a real JVM, or trying it with GCJ?
Comment 2 Orion Poplawski 2011-04-20 17:49:20 UTC
No idea which test failed.  How do I find out?

This is with OpenJDK.  You can see logs here:
http://koji.fedoraproject.org/koji/getfile?taskID=3011844&name=build.log
Comment 3 Nick Burch 2011-04-20 18:13:00 UTC
Test details should be in the file build/test-results/TEST-org.apache.poi.hssf.usermodel.TestBugs.txt 

Also, from your koji log, it looks like you don't have any fonts on your build machine. You need to have TTF fonts installed, otherwise POI can't figure out how wide columns need to be when sizing them (sizings are absolute, not relative to the font). That explains errors like:

     [java] 1) testAutoSizeColumn(org.apache.poi.xssf.usermodel.TestXSSFSheet)java.lang.Error: Probable fatal error:No fonts found.
     [java] 	at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1087)
     [java] 	at sun.font.FontManager.initialiseDeferredFont(FontManager.java:959)
     [java] 	at sun.font.FontManager.findOtherDeferredFont(FontManager.java:898)
Comment 4 Orion Poplawski 2011-04-20 18:30:52 UTC
It appears that for some reason fontconfig is no longer being pulled into the buildroot and that is causing the trouble.  Thanks for the help.