You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Matt Barron <mf...@gmail.com> on 2016/08/15 13:37:47 UTC

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

Re: Trouble building 3.15

Posted by Javen O'Neal <ja...@gmail.com>.
Remote versus local shouldn't matter. I was thinking the JVM might define
the width of a default character ('0') and scale it appropriately for an
ultra high DPI display. Sounds like this is not the case. More likely to do
with your Java 8 installation. I'm running OpenJDK 7 on Ubuntu.

On Aug 15, 2016 12:14, "Matt Barron" <mf...@gmail.com> wrote:

Javen,
I honestly never tried building it while logged in locally to my Linux
machine...I have only ever tried to build using a remote ssh session from
my Windows machine.
That being said, the monitor I have hooked up to the Linux machine is just
a simple 17in set at 1280x1024, assuming that won't make a difference
during a remote session.

Thanks again,
Matt


On Mon, Aug 15, 2016 at 1:30 PM, Javen O'Neal <ja...@gmail.com> wrote:

> Matt,
> Out of curiosity, are you using a very low or very high DPI or
> diagonal size monitor? This might have caused the significant
> difference in column sizing. On my computer my column widths are 1000
> for the narrow column and 10,000 for the wide column, and your wide
> column was less than half of that--4971 (units are 1/256th of the
> default character width).
>
> Question for POI developers: would getColumnWidthInPixels be any
> better at being consistent across Java versions and vendors, OS's,
> installed fonts, monitor resolution/size/density?
>
> https://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/
> apache/poi/xssf/usermodel/XSSFSheet.java?revision=1754786&view=markup#l884
>     public float getColumnWidthInPixels(int columnIndex) {
>         float widthIn256 = getColumnWidth(columnIndex);
>         return (float)(widthIn256/256.0*XSSFWorkbook.DEFAULT_
> CHARACTER_WIDTH);
>     }
>
> On Mon, Aug 15, 2016 at 10:18 AM, Javen O'Neal <ja...@gmail.com>
> wrote:
> > Fixed in r1756402 [1]. Let us know if you have any other problems
> > building or testing.
> >
> > [1] https://svn.apache.org/viewvc?view=revision&revision=1756402
> >
> > On Mon, Aug 15, 2016 at 8:32 AM, Javen O'Neal <ja...@gmail.com>
> wrote:
> >> I think I wrote that frail unit test, which looks to be (Java) platform
> >> dependent. I'll update the test.
> >>
> >> There is another test that tests the timing of autosizing columns, and
> that
> >> test fails on slower machines or on machines where the CPU is being
> heavily
> >> used by other processes while the unit test suite is running.
> >>
> >>
> >> On Aug 15, 2016 8:26 AM, "Matt Barron" <mf...@gmail.com> wrote:
> >>>
> >>> That is a test that was already in place, I did not modify any code
> prior
> >>> to attempting the build.
> >>>
> >>> I did modify the test case
> >>>
> >>> "src/ooxml/testcases/org/apache/poi/xssf/streaming/
> TestSXSSFSheetAutoSizeColumn.java"
> >>> and lowered the value of COLUMN_WIDTH_THRESHOLD_BETWEEN_SHORT_AND_LONG
> >>> from
> >>> 5000 to 4900 per the suggestion from Andreas.
> >>> After I made that change, the build process was successful and I had
no
> >>> errors.
> >>>
> >>> On Mon, Aug 15, 2016 at 11:17 AM, Murphy, Mark <
> murphymdev@metalexmfg.com>
> >>> wrote:
> >>>
> >>> > Is this a test he has created which is failing, or is it a current
> test
> >>> > that is already working for us?
> >>> >
> >>> > -----Original Message-----
> >>> > From: Andreas Beeker [mailto:kiwiwings@apache.org]
> >>> > Sent: Monday, August 15, 2016 10:25 AM
> >>> > To: POI Users List <us...@poi.apache.org>
> >>> > Subject: Re: Trouble building 3.15
> >>> >
> >>> > >      [java] java.lang.AssertionError: Expected a column width
> greater
> >>> > > than
> >>> > > 5000 but found 4971
> >>> >
> >>> > At first glance, this looks like a font issue - why don't you simply
> >>> > decrease the assertion to something above 4900 instead of 5000?
> >>> >
> >>> >
> >>> >
> >>> > ------------------------------------------------------------
> ---------
> >>> > To unsubscribe, e-mail: user-unsubscribe@poi.apache.org For
> additional
> >>> > commands, e-mail: user-help@poi.apache.org
> >>> >
> >>> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
>
>

Re: Trouble building 3.15

Posted by Matt Barron <mf...@gmail.com>.
Javen,
I honestly never tried building it while logged in locally to my Linux
machine...I have only ever tried to build using a remote ssh session from
my Windows machine.
That being said, the monitor I have hooked up to the Linux machine is just
a simple 17in set at 1280x1024, assuming that won't make a difference
during a remote session.

Thanks again,
Matt


On Mon, Aug 15, 2016 at 1:30 PM, Javen O'Neal <ja...@gmail.com> wrote:

> Matt,
> Out of curiosity, are you using a very low or very high DPI or
> diagonal size monitor? This might have caused the significant
> difference in column sizing. On my computer my column widths are 1000
> for the narrow column and 10,000 for the wide column, and your wide
> column was less than half of that--4971 (units are 1/256th of the
> default character width).
>
> Question for POI developers: would getColumnWidthInPixels be any
> better at being consistent across Java versions and vendors, OS's,
> installed fonts, monitor resolution/size/density?
>
> https://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/
> apache/poi/xssf/usermodel/XSSFSheet.java?revision=1754786&view=markup#l884
>     public float getColumnWidthInPixels(int columnIndex) {
>         float widthIn256 = getColumnWidth(columnIndex);
>         return (float)(widthIn256/256.0*XSSFWorkbook.DEFAULT_
> CHARACTER_WIDTH);
>     }
>
> On Mon, Aug 15, 2016 at 10:18 AM, Javen O'Neal <ja...@gmail.com>
> wrote:
> > Fixed in r1756402 [1]. Let us know if you have any other problems
> > building or testing.
> >
> > [1] https://svn.apache.org/viewvc?view=revision&revision=1756402
> >
> > On Mon, Aug 15, 2016 at 8:32 AM, Javen O'Neal <ja...@gmail.com>
> wrote:
> >> I think I wrote that frail unit test, which looks to be (Java) platform
> >> dependent. I'll update the test.
> >>
> >> There is another test that tests the timing of autosizing columns, and
> that
> >> test fails on slower machines or on machines where the CPU is being
> heavily
> >> used by other processes while the unit test suite is running.
> >>
> >>
> >> On Aug 15, 2016 8:26 AM, "Matt Barron" <mf...@gmail.com> wrote:
> >>>
> >>> That is a test that was already in place, I did not modify any code
> prior
> >>> to attempting the build.
> >>>
> >>> I did modify the test case
> >>>
> >>> "src/ooxml/testcases/org/apache/poi/xssf/streaming/
> TestSXSSFSheetAutoSizeColumn.java"
> >>> and lowered the value of COLUMN_WIDTH_THRESHOLD_BETWEEN_SHORT_AND_LONG
> >>> from
> >>> 5000 to 4900 per the suggestion from Andreas.
> >>> After I made that change, the build process was successful and I had no
> >>> errors.
> >>>
> >>> On Mon, Aug 15, 2016 at 11:17 AM, Murphy, Mark <
> murphymdev@metalexmfg.com>
> >>> wrote:
> >>>
> >>> > Is this a test he has created which is failing, or is it a current
> test
> >>> > that is already working for us?
> >>> >
> >>> > -----Original Message-----
> >>> > From: Andreas Beeker [mailto:kiwiwings@apache.org]
> >>> > Sent: Monday, August 15, 2016 10:25 AM
> >>> > To: POI Users List <us...@poi.apache.org>
> >>> > Subject: Re: Trouble building 3.15
> >>> >
> >>> > >      [java] java.lang.AssertionError: Expected a column width
> greater
> >>> > > than
> >>> > > 5000 but found 4971
> >>> >
> >>> > At first glance, this looks like a font issue - why don't you simply
> >>> > decrease the assertion to something above 4900 instead of 5000?
> >>> >
> >>> >
> >>> >
> >>> > ------------------------------------------------------------
> ---------
> >>> > To unsubscribe, e-mail: user-unsubscribe@poi.apache.org For
> additional
> >>> > commands, e-mail: user-help@poi.apache.org
> >>> >
> >>> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
>
>

Re: Trouble building 3.15

Posted by Javen O'Neal <ja...@gmail.com>.
Matt,
Out of curiosity, are you using a very low or very high DPI or
diagonal size monitor? This might have caused the significant
difference in column sizing. On my computer my column widths are 1000
for the narrow column and 10,000 for the wide column, and your wide
column was less than half of that--4971 (units are 1/256th of the
default character width).

Question for POI developers: would getColumnWidthInPixels be any
better at being consistent across Java versions and vendors, OS's,
installed fonts, monitor resolution/size/density?

https://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java?revision=1754786&view=markup#l884
    public float getColumnWidthInPixels(int columnIndex) {
        float widthIn256 = getColumnWidth(columnIndex);
        return (float)(widthIn256/256.0*XSSFWorkbook.DEFAULT_CHARACTER_WIDTH);
    }

On Mon, Aug 15, 2016 at 10:18 AM, Javen O'Neal <ja...@gmail.com> wrote:
> Fixed in r1756402 [1]. Let us know if you have any other problems
> building or testing.
>
> [1] https://svn.apache.org/viewvc?view=revision&revision=1756402
>
> On Mon, Aug 15, 2016 at 8:32 AM, Javen O'Neal <ja...@gmail.com> wrote:
>> I think I wrote that frail unit test, which looks to be (Java) platform
>> dependent. I'll update the test.
>>
>> There is another test that tests the timing of autosizing columns, and that
>> test fails on slower machines or on machines where the CPU is being heavily
>> used by other processes while the unit test suite is running.
>>
>>
>> On Aug 15, 2016 8:26 AM, "Matt Barron" <mf...@gmail.com> wrote:
>>>
>>> That is a test that was already in place, I did not modify any code prior
>>> to attempting the build.
>>>
>>> I did modify the test case
>>>
>>> "src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFSheetAutoSizeColumn.java"
>>> and lowered the value of COLUMN_WIDTH_THRESHOLD_BETWEEN_SHORT_AND_LONG
>>> from
>>> 5000 to 4900 per the suggestion from Andreas.
>>> After I made that change, the build process was successful and I had no
>>> errors.
>>>
>>> On Mon, Aug 15, 2016 at 11:17 AM, Murphy, Mark <mu...@metalexmfg.com>
>>> wrote:
>>>
>>> > Is this a test he has created which is failing, or is it a current test
>>> > that is already working for us?
>>> >
>>> > -----Original Message-----
>>> > From: Andreas Beeker [mailto:kiwiwings@apache.org]
>>> > Sent: Monday, August 15, 2016 10:25 AM
>>> > To: POI Users List <us...@poi.apache.org>
>>> > Subject: Re: Trouble building 3.15
>>> >
>>> > >      [java] java.lang.AssertionError: Expected a column width greater
>>> > > than
>>> > > 5000 but found 4971
>>> >
>>> > At first glance, this looks like a font issue - why don't you simply
>>> > decrease the assertion to something above 4900 instead of 5000?
>>> >
>>> >
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: user-unsubscribe@poi.apache.org For additional
>>> > commands, e-mail: user-help@poi.apache.org
>>> >
>>> >

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


Re: Trouble building 3.15

Posted by Javen O'Neal <ja...@gmail.com>.
Fixed in r1756402 [1]. Let us know if you have any other problems
building or testing.

[1] https://svn.apache.org/viewvc?view=revision&revision=1756402

On Mon, Aug 15, 2016 at 8:32 AM, Javen O'Neal <ja...@gmail.com> wrote:
> I think I wrote that frail unit test, which looks to be (Java) platform
> dependent. I'll update the test.
>
> There is another test that tests the timing of autosizing columns, and that
> test fails on slower machines or on machines where the CPU is being heavily
> used by other processes while the unit test suite is running.
>
>
> On Aug 15, 2016 8:26 AM, "Matt Barron" <mf...@gmail.com> wrote:
>>
>> That is a test that was already in place, I did not modify any code prior
>> to attempting the build.
>>
>> I did modify the test case
>>
>> "src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFSheetAutoSizeColumn.java"
>> and lowered the value of COLUMN_WIDTH_THRESHOLD_BETWEEN_SHORT_AND_LONG
>> from
>> 5000 to 4900 per the suggestion from Andreas.
>> After I made that change, the build process was successful and I had no
>> errors.
>>
>> On Mon, Aug 15, 2016 at 11:17 AM, Murphy, Mark <mu...@metalexmfg.com>
>> wrote:
>>
>> > Is this a test he has created which is failing, or is it a current test
>> > that is already working for us?
>> >
>> > -----Original Message-----
>> > From: Andreas Beeker [mailto:kiwiwings@apache.org]
>> > Sent: Monday, August 15, 2016 10:25 AM
>> > To: POI Users List <us...@poi.apache.org>
>> > Subject: Re: Trouble building 3.15
>> >
>> > >      [java] java.lang.AssertionError: Expected a column width greater
>> > > than
>> > > 5000 but found 4971
>> >
>> > At first glance, this looks like a font issue - why don't you simply
>> > decrease the assertion to something above 4900 instead of 5000?
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@poi.apache.org For additional
>> > commands, e-mail: user-help@poi.apache.org
>> >
>> >

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


Re: Trouble building 3.15

Posted by Javen O'Neal <ja...@gmail.com>.
I think I wrote that frail unit test, which looks to be (Java) platform
dependent. I'll update the test.

There is another test that tests the timing of autosizing columns, and that
test fails on slower machines or on machines where the CPU is being heavily
used by other processes while the unit test suite is running.

On Aug 15, 2016 8:26 AM, "Matt Barron" <mf...@gmail.com> wrote:

> That is a test that was already in place, I did not modify any code prior
> to attempting the build.
>
> I did modify the test case
> "src/ooxml/testcases/org/apache/poi/xssf/streaming/
> TestSXSSFSheetAutoSizeColumn.java"
> and lowered the value of COLUMN_WIDTH_THRESHOLD_BETWEEN_SHORT_AND_LONG
> from
> 5000 to 4900 per the suggestion from Andreas.
> After I made that change, the build process was successful and I had no
> errors.
>
> On Mon, Aug 15, 2016 at 11:17 AM, Murphy, Mark <mu...@metalexmfg.com>
> wrote:
>
> > Is this a test he has created which is failing, or is it a current test
> > that is already working for us?
> >
> > -----Original Message-----
> > From: Andreas Beeker [mailto:kiwiwings@apache.org]
> > Sent: Monday, August 15, 2016 10:25 AM
> > To: POI Users List <us...@poi.apache.org>
> > Subject: Re: Trouble building 3.15
> >
> > >      [java] java.lang.AssertionError: Expected a column width greater
> > > than
> > > 5000 but found 4971
> >
> > At first glance, this looks like a font issue - why don't you simply
> > decrease the assertion to something above 4900 instead of 5000?
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@poi.apache.org For additional
> > commands, e-mail: user-help@poi.apache.org
> >
> >
>

Re: Trouble building 3.15

Posted by Matt Barron <mf...@gmail.com>.
That is a test that was already in place, I did not modify any code prior
to attempting the build.

I did modify the test case
"src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFSheetAutoSizeColumn.java"
and lowered the value of COLUMN_WIDTH_THRESHOLD_BETWEEN_SHORT_AND_LONG from
5000 to 4900 per the suggestion from Andreas.
After I made that change, the build process was successful and I had no
errors.

On Mon, Aug 15, 2016 at 11:17 AM, Murphy, Mark <mu...@metalexmfg.com>
wrote:

> Is this a test he has created which is failing, or is it a current test
> that is already working for us?
>
> -----Original Message-----
> From: Andreas Beeker [mailto:kiwiwings@apache.org]
> Sent: Monday, August 15, 2016 10:25 AM
> To: POI Users List <us...@poi.apache.org>
> Subject: Re: Trouble building 3.15
>
> >      [java] java.lang.AssertionError: Expected a column width greater
> > than
> > 5000 but found 4971
>
> At first glance, this looks like a font issue - why don't you simply
> decrease the assertion to something above 4900 instead of 5000?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org For additional
> commands, e-mail: user-help@poi.apache.org
>
>

RE: Trouble building 3.15

Posted by "Murphy, Mark" <mu...@metalexmfg.com>.
Is this a test he has created which is failing, or is it a current test that is already working for us?

-----Original Message-----
From: Andreas Beeker [mailto:kiwiwings@apache.org] 
Sent: Monday, August 15, 2016 10:25 AM
To: POI Users List <us...@poi.apache.org>
Subject: Re: Trouble building 3.15

>      [java] java.lang.AssertionError: Expected a column width greater 
> than
> 5000 but found 4971

At first glance, this looks like a font issue - why don't you simply decrease the assertion to something above 4900 instead of 5000?



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


Re: Trouble building 3.15

Posted by Andreas Beeker <ki...@apache.org>.
>      [java] java.lang.AssertionError: Expected a column width greater than
> 5000 but found 4971

At first glance, this looks like a font issue - why don't you simply decrease the assertion to something
above 4900 instead of 5000?



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


Re: Trouble building 3.15

Posted by Matt Barron <mf...@gmail.com>.
Oh I forgot to include that detail...I am just using plain Ant to build, no
IDEs are involved.

On Mon, Aug 15, 2016 at 10:02 AM, Murphy, Mark <mu...@metalexmfg.com>
wrote:

> 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:mfb366@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
>

RE: Trouble building 3.15

Posted by "Murphy, Mark" <mu...@metalexmfg.com>.
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:mfb366@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