In the past when I have had trouble with a build, it has been a configuration 
error in my environment. I use Eclipse for development and build, so that may 
be different, but you really didn't give us much to go on. Are you using an IDE 
or just plain Ant? 

-----Original Message-----
From: Matt Barron [mailto:mfb...@gmail.com] 
Sent: Monday, August 15, 2016 9:38 AM
To: user@poi.apache.org
Subject: Trouble building 3.15

Hi,
I am fairly new to building POI, but I have set up all of the dependencies on 
my machine and I have yet to have it build successfully.  So I am just looking 
for some pointers to get it kicked off.

Build environment information:
     [echo] Using Ant: Apache Ant(TM) version 1.9.7 compiled on April 9
2016 from /home/matt/build_tools/apache-ant-1.9.7, Ant detected Java 1.8 (may 
be different than actual Java sometimes...)
     [echo] Using Java: 1.8.0_101/1.8.0_101-b13/25.101-b13/OpenJDK 64-Bit 
Server VM from Oracle Corporation on Linux: 4.7.0-1-default
     [echo] Using Findbugs: 3.0.1 for Java 1.8.0_101


The compile target runs with no issue, but the test target fails with the 
following message under test-ooxml:
[junit] Running org.apache.poi.xssf.streaming.TestSXSSFSheetAutoSizeColumn
    [junit] Tests run: 26, Failures: 1, Errors: 0, Skipped: 0, Time
elapsed: 0.149 sec

BUILD FAILED
/home/matt/javaLibraries/apache-poi/trunk/build.xml:1443: The following error 
occurred while executing this line:
/home/matt/javaLibraries/apache-poi/trunk/build.xml:1396: Tests failed

If I run the jar target, it similarly fails under compile-ooxml-lite with the 
following message:
     [java] Time: 113.927
     [java] There was 1 failure:
     [java] 1) test_WindowSizeEqualsOne_flushedRowHasMergedCell[0:
useMergedCells=false](org.apache.poi.xssf.streaming.TestSXSSFSheetAutoSizeColumn)
     [java] java.lang.AssertionError: Expected a column width greater than
5000 but found 4971
     [java]     at org.junit.Assert.fail(Assert.java:88)
     [java]     at org.junit.Assert.assertTrue(Assert.java:41)
     [java]     at
org.apache.poi.xssf.streaming.TestSXSSFSheetAutoSizeColumn.assertColumnWidthStrictlyWithinRange(TestSXSSFSheetAutoSizeColumn.java:373)
     [java]     at
org.apache.poi.xssf.streaming.TestSXSSFSheetAutoSizeColumn.test_WindowSizeEqualsOne_flushedRowHasMergedCell(TestSXSSFSheetAutoSizeColumn.java:216)
    (...truncated lines...)
     [java]     at org.apache.poi.util.OOXMLLite.build(OOXMLLite.java:129)
     [java]     at org.apache.poi.util.OOXMLLite.main(OOXMLLite.java:88)
     [java]
     [java] FAILURES!!!
     [java] Tests run: 2022,  Failures: 1
     [java]
     [java] Exception in thread "main" java.lang.RuntimeException: Tests did 
not succeed, cannot build ooxml-lite jar
     [java]     at org.apache.poi.util.OOXMLLite.build(OOXMLLite.java:131)
     [java]     at org.apache.poi.util.OOXMLLite.main(OOXMLLite.java:88)


Thanks in advance,
Matt

Reply via email to