Bug 57612 - Can't build, running tests as part of building ooxml-libs fail
Summary: Can't build, running tests as part of building ooxml-libs fail
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: POI Overall (show other bugs)
Version: 3.14-FINAL
Hardware: PC All
: P2 blocker (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-20 19:31 UTC by Vasili
Modified: 2016-06-26 10:42 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vasili 2015-02-20 19:31:39 UTC
Hi,

There is no way to build poi and the build problem is consistent in git snapshot, in svn trunk snapshot and in 3.11-FINAL

java version "1.7.0_67"

The extract (if you need a bigger log trace - let me know
--------------------8<------------------------

     [java] Class org.apache.poi.xssf.usermodel.TestXSSFSheetAutosizeColumn does
 not derive from TestCase and does not have a @Test annotation
     [java] Found 163 classes
     [java] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
     [java] SLF4J: Defaulting to no-operation (NOP) logger implementation
     [java] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for fu
rther details.
     [java] ....................................................................
...............................................................................I
..........E..................................................II.................
................................................................................
.......................................Setting col: 0 and row 0
     [java] Setting col: 1 and row 1
     [java] Warning - Row 13 has no cell 1, can't figure out test name
     [java] [Fatal Error] :1:1: JAXP00010001: The parser has encountered more th
an "4096" entity expansions in this document; this is the limit imposed by the J
DK.
     [java] [Fatal Error] :1:1: JAXP00010001: The parser has encountered more th
an "4096" entity expansions in this document; this is the limit imposed by the J
DK.
     [java] ....................................................................
................................................................................
................................................................................
...........I........I...........................................................
................................................................................
......................................................org.apache.poi.ss.usermode
l.CellValue [12.0]
     [java] org.apache.poi.ss.usermodel.CellValue [12.0]
     [java] ....org.apache.poi.ss.usermodel.CellValue [1.0]
     [java] org.apache.poi.ss.usermodel.CellValue [1.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [3.0]
     [java] ....................................................................
................................................................................
................................................................................
......Done
     [java] ...........<?xml version="1.0" encoding="UTF-8"?>
     [java] <worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/20
06/main"><dimension ref="A1"/><sheetViews><sheetView workbookViewId="0" tabSelec
ted="true"/></sheetViews><sheetFormatPr defaultRowHeight="15.0"/><sheetData/><pa
geMargins bottom="0.75" footer="0.3" header="0.3" left="0.7" right="0.7" top="0.
75"/></worksheet>
     [java] .......................................Name: /word/document.xml - Co
ntent Type: application/vnd.openxmlformats-officedocument.wordprocessingml.docum
ent.main+xml
     [java] Exception in thread "main" java.lang.RuntimeException: Tests did not
 succeed, cannot build ooxml-lite jar
--------------------8<------------------------
Comment 1 Dominik Stadler 2015-02-21 11:19:09 UTC
The error message about entity expansions is not the actual problem, rather a unit test that is executed as part of the build (which is necessary to create the ooxml-libs) is failing and thus causes the build to stop. 

Is this the latest SVN version? We lately added more output in this step to print out more information about which unit test failed, but I would assume it may be related to the other problems with HTTP proxy that you had before as there is at least one test which tries to download additional things.
Comment 2 Vasili 2015-02-23 15:12:29 UTC
Hi Dominik,

Yes, as I mentioned above, I got it with all 3 sources trees, I have right now, including svn trunk. So no way to build from sources on my side. 
If it helps, I've seen the revision printed which happens to be 1661133.

It can't be connected with proxy since 3.11-FINAL, which was downloaded by me separately as one zip, gives exactly the same error. And the probability of hitting the same error in all 3 src due to proxy is zero. 

If we can disable some unnecessary test - please let me know which and where.

Please let me know - if you want me to try a more recent fix from the trunk or a different version. I still believe that this is a kind of a limitation of 1.7.0_67 with those entity expansions.

Thanks
Comment 3 Vasili 2015-02-23 16:06:09 UTC
Hi Dominik,

Since you asked me regarding the latest svn version, I have "svn updated", seeing a few changes in the trunk, however the build fails with exactly the same error. I'm providing this information - just in case it may somehow help


>svn info | grep Revi
Revision: 1661706

> ant clean
...
> ant jar
...
compile-ooxml-lite:
    [mkdir] Created dir: C:\poi-src\trunk\build\ooxml-lite-merged
      [jar] Building jar: C:\poi-src\trunk\build\ooxml-lite-merged\ooxml-lite-me
rged.jar
     [java] Collecting unit tests from C:\poi-src\trunk\build\ooxml-test-classes

     [java] Inner class org.apache.poi.poifs.crypt.TestCertificateEncryption$Cer
tData.class not included
     [java] Inner class org.apache.poi.TestPOIXMLDocument$OPCParser.class not in
cluded
     [java] Inner class org.apache.poi.TestPOIXMLDocument$TestFactory.class not
included
     [java] Inner class org.apache.poi.xslf.geom.TestPresetGeometries$1.class no
t included
     [java] Inner class org.apache.poi.xssf.extractor.TestXSSFExportToXML$1.clas
s not included
     [java] Inner class org.apache.poi.xssf.extractor.TestXSSFExportToXML$DummyE
ntityResolver.class not included
     [java] Inner class org.apache.poi.xssf.streaming.TestSXSSFWorkbook$1.class
not included
     [java] Inner class org.apache.poi.xssf.streaming.TestSXSSFWorkbook$NullOutp
utStream.class not included
     [java] Inner class org.apache.poi.xssf.usermodel.TestFormulaEvaluatorOnXSSF
$Result.class not included
     [java] Inner class org.apache.poi.xssf.usermodel.TestFormulaEvaluatorOnXSSF
$SS.class not included
     [java] Inner class org.apache.poi.xssf.usermodel.TestMultiSheetFormulaEvalu
atorOnXSSF$Result.class not included
     [java] Inner class org.apache.poi.xssf.usermodel.TestMultiSheetFormulaEvalu
atorOnXSSF$SS.class not included
     [java] Inner class org.apache.poi.xssf.usermodel.TestXSSFBugs$1.class not i
ncluded
     [java] Class org.apache.poi.xssf.usermodel.TestXSSFSheetAutosizeColumn does
 not derive from TestCase and does not have a @Test annotation
     [java] Found 163 classes
     [java] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
     [java] SLF4J: Defaulting to no-operation (NOP) logger implementation
     [java] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for fu
rther details.
     [java] ....................................................................
................................................................................
.I..........E..................................................II...............
................................................................................
.........................................Setting col: 0 and row 0
     [java] Setting col: 1 and row 1
     [java] Warning - Row 13 has no cell 1, can't figure out test name
     [java] [Fatal Error] :1:1: JAXP00010001: The parser has encountered more th
an "4096" entity expansions in this document; this is the limit imposed by the J
DK.
     [java] [Fatal Error] :1:1: JAXP00010001: The parser has encountered more th
an "4096" entity expansions in this document; this is the limit imposed by the J
DK.
     [java] ....................................................................
................................................................................
................................................................................
...........I........I...........................................................
................................................................................
......................................................org.apache.poi.ss.usermode
l.CellValue [12.0]
     [java] org.apache.poi.ss.usermodel.CellValue [12.0]
     [java] ....org.apache.poi.ss.usermodel.CellValue [1.0]
     [java] org.apache.poi.ss.usermodel.CellValue [1.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [3.0]
     [java] ....................................................................
................................................................................
................................................................................
......Done
     [java] ...........<?xml version="1.0" encoding="UTF-8"?>
     [java] <worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/20
06/main"><dimension ref="A1"/><sheetViews><sheetView workbookViewId="0" tabSelec
ted="true"/></sheetViews><sheetFormatPr defaultRowHeight="15.0"/><sheetData/><pa
geMargins bottom="0.75" footer="0.3" header="0.3" left="0.7" right="0.7" top="0.
75"/></worksheet>
     [java] .......................................Name: /word/document.xml - Co
ntent Type: application/vnd.openxmlformats-officedocument.wordprocessingml.docum
ent.main+xml
     [java] ....................................................................
..................................................................
     [java] Time: 79.182
     [java] There was 1 failure:
     [java] 1) testSignEnvelopingDocument(org.apache.poi.poifs.crypt.TestSignatu
reInfo)
     [java] java.lang.RuntimeException: error while creating a time-stamp: no pr
otocol: ${env.http_proxy}
     [java]     at org.apache.poi.poifs.crypt.dsig.facets.XAdESXLSignatureFacet.
createXAdESTimeStamp(XAdESXLSignatureFacet.java:358)
     [java]     at org.apache.poi.poifs.crypt.dsig.facets.XAdESXLSignatureFacet.
createXAdESTimeStamp(XAdESXLSignatureFacet.java:349)
     [java]     at org.apache.poi.poifs.crypt.dsig.facets.XAdESXLSignatureFacet.
postSign(XAdESXLSignatureFacet.java:156)
     [java]     at org.apache.poi.poifs.crypt.dsig.SignatureInfo.postSign(Signat
ureInfo.java:587)
     [java]     at org.apache.poi.poifs.crypt.dsig.SignatureInfo.confirmSignatur
e(SignatureInfo.java:321)
     [java]     at org.apache.poi.poifs.crypt.TestSignatureInfo.testSignEnvelopi
ngDocument(TestSignatureInfo.java:382)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:57)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:43)
     [java]     at java.lang.reflect.Method.invoke(Method.java:606)
     [java]     at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(F
rameworkMethod.java:50)
     [java]     at org.junit.internal.runners.model.ReflectiveCallable.run(Refle
ctiveCallable.java:12)
     [java]     at org.junit.runners.model.FrameworkMethod.invokeExplosively(Fra
meworkMethod.java:47)
     [java]     at org.junit.internal.runners.statements.InvokeMethod.evaluate(I
nvokeMethod.java:17)
     [java]     at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)

     [java]     at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4
ClassRunner.java:78)
     [java]     at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4
ClassRunner.java:57)
     [java]     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
     [java]     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:7
1)
     [java]     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:
288)
     [java]     at org.junit.runners.ParentRunner.access$000(ParentRunner.java:5
8)
     [java]     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:2
68)
     [java]     at org.junit.internal.runners.statements.RunBefores.evaluate(Run
Befores.java:26)
     [java]     at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
     [java]     at org.junit.runners.Suite.runChild(Suite.java:128)
     [java]     at org.junit.runners.Suite.runChild(Suite.java:27)
     [java]     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
     [java]     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:7
1)
     [java]     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:
288)
     [java]     at org.junit.runners.ParentRunner.access$000(ParentRunner.java:5
8)
     [java]     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:2
68)
     [java]     at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
     [java]     at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
     [java]     at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
     [java]     at org.junit.runner.JUnitCore.run(JUnitCore.java:105)
     [java]     at org.junit.runner.JUnitCore.run(JUnitCore.java:94)
     [java]     at org.apache.poi.util.OOXMLLite.build(OOXMLLite.java:98)
     [java]     at org.apache.poi.util.OOXMLLite.main(OOXMLLite.java:84)
     [java] Caused by: java.net.MalformedURLException: no protocol: ${env.http_p
roxy}
     [java]     at java.net.URL.<init>(URL.java:585)
     [java]     at java.net.URL.<init>(URL.java:482)
     [java]     at java.net.URL.<init>(URL.java:431)
     [java]     at org.apache.poi.poifs.crypt.dsig.services.TSPTimeStampService.
timeStamp(TSPTimeStampService.java:120)
     [java]     at org.apache.poi.poifs.crypt.dsig.facets.XAdESXLSignatureFacet.
createXAdESTimeStamp(XAdESXLSignatureFacet.java:356)
     [java]     ... 37 more
     [java]
     [java] FAILURES!!!
     [java] Tests run: 1212,  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:100)
     [java]     at org.apache.poi.util.OOXMLLite.main(OOXMLLite.java:84)

BUILD FAILED
C:\poi-src\trunk\build.xml:1140: Java returned: 1
Comment 4 Dominik Stadler 2015-02-23 20:46:47 UTC
Ok, that contained the vital piece of information. Now we see the root-cause here:

     [java] Caused by: java.net.MalformedURLException: no protocol: ${env.http_proxy}
     [java]     at java.net.URL.<init>(URL.java:585)
     [java]     at java.net.URL.<init>(URL.java:482)
     [java]     at java.net.URL.<init>(URL.java:431)
     [java]     at org.apache.poi.poifs.crypt.dsig.services.TSPTimeStampService.timeStamp(TSPTimeStampService.java:120)
     [java]     at org.apache.poi.poifs.crypt.dsig.facets.XAdESXLSignatureFacet.createXAdESTimeStamp(XAdESXLSignatureFacet.java:356)
     [java]     ... 37 more

this pointed me to two small issues with a junit testcase:
* It tries to detect non-available external resources and tries to fail gracefully, but does this incorrectly
* The build.xml passes the http_proxy environment variable to the junit task in a invalid way, contributing to the issue

I tried to fix both in r1661774, please try with that revision and reopen this ticket with the latest build-log if it still does not work.
Comment 5 Vasili 2015-02-24 18:08:24 UTC
Just a quick question: can I apply this revision directly to poi-src-3.11-20141221, the latest stable version, we use, or it contains something else which requires more recent versions?
Comment 6 Dominik Stadler 2015-02-24 19:58:13 UTC
at least the changes in build.xml can be simply applied, they are the only thing really required to make it work and they should apply to the 3.11 version. The changes in the .java file are not absoultely necessary...
Comment 7 Vasili 2015-02-24 21:09:06 UTC
Using provided build.xml (I didn't replace the .java file from the fix), having modified 2 lines indicating the version number to avoid confusion with build versions, I got the following. There is no MalformedURLException but I believe that the problem remains with the entity expansions. 



compile-ooxml:

compile-examples:

compile-excelant:

compile:

compile-ooxml-lite:
      [jar] Building jar: C:\poi-src-3.11-20141221\poi-3.11\build\ooxml-lite-mer
ged\ooxml-lite-merged.jar
     [java] Collecting unit tests from C:\poi-src-3.11-20141221\poi-3.11\build\o
oxml-test-classes
     [java] Inner class org.apache.poi.poifs.crypt.TestCertificateEncryption$Cer
tData.class not included
     [java] Inner class org.apache.poi.TestPOIXMLDocument$OPCParser.class not in
cluded
     [java] Inner class org.apache.poi.TestPOIXMLDocument$TestFactory.class not
included
     [java] Inner class org.apache.poi.xslf.geom.TestPresetGeometries$1.class no
t included
     [java] Inner class org.apache.poi.xssf.extractor.TestXSSFExportToXML$1.clas
s not included
     [java] Inner class org.apache.poi.xssf.extractor.TestXSSFExportToXML$DummyE
ntityResolver.class not included
     [java] Inner class org.apache.poi.xssf.streaming.TestSXSSFWorkbook$1.class
not included
     [java] Inner class org.apache.poi.xssf.streaming.TestSXSSFWorkbook$NullOutp
utStream.class not included
     [java] Inner class org.apache.poi.xssf.usermodel.TestFormulaEvaluatorOnXSSF
$Result.class not included
     [java] Inner class org.apache.poi.xssf.usermodel.TestFormulaEvaluatorOnXSSF
$SS.class not included
     [java] Inner class org.apache.poi.xssf.usermodel.TestMultiSheetFormulaEvalu
atorOnXSSF$Result.class not included
     [java] Inner class org.apache.poi.xssf.usermodel.TestMultiSheetFormulaEvalu
atorOnXSSF$SS.class not included
     [java] Inner class org.apache.poi.xssf.usermodel.TestXSSFBugs$1.class not i
ncluded
     [java] Class org.apache.poi.xssf.usermodel.TestXSSFSheetAutosizeColumn does
 not derive from TestCase and does not have a @Test annotation
     [java] Found 158 classes
     [java] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
     [java] SLF4J: Defaulting to no-operation (NOP) logger implementation
     [java] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for fu
rther details.
     [java] ....................................................................
..............................................................................I.
.........E..............................................II......................
................................................................................
.................................Setting col: 0 and row 0
     [java] Setting col: 1 and row 1
     [java] Warning - Row 13 has no cell 1, can't figure out test name
     [java] [Fatal Error] :1:1: JAXP00010001: The parser has encountered more th
an "4096" entity expansions in this document; this is the limit imposed by the J
DK.
     [java] [Fatal Error] :1:1: JAXP00010001: The parser has encountered more th
an "4096" entity expansions in this document; this is the limit imposed by the J
DK.
     [java] ....................................................................
................................................................................
............................................................................I...
.....I..........................................................................
................................................................................
............................org.apache.poi.ss.usermodel.CellValue [12.0]
     [java] org.apache.poi.ss.usermodel.CellValue [12.0]
     [java] ....org.apache.poi.ss.usermodel.CellValue [1.0]
     [java] org.apache.poi.ss.usermodel.CellValue [1.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [3.0]
     [java] ....................................................................
................................................................................
..................................................................Done
     [java] ..........<?xml version="1.0" encoding="UTF-8"?>
     [java] <worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/20
06/main"><dimension ref="A1"/><sheetViews><sheetView workbookViewId="0" tabSelec
ted="true"/></sheetViews><sheetFormatPr defaultRowHeight="15.0"/><sheetData/><pa
geMargins bottom="0.75" footer="0.3" header="0.3" left="0.7" right="0.7" top="0.
75"/></worksheet>
     [java] ....................................Name: /word/document.xml - Conte
nt Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
.main+xml
     [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:109)
     [java]     at org.apache.poi.util.OOXMLLite.main(OOXMLLite.java:93)
     [java] ....................................................................
............................................................
     [java] Time: 69.73
     [java] There was 1 failure:
     [java] 1) testSignEnvelopingDocument(org.apache.poi.poifs.crypt.TestSignatu
reInfo)
     [java] java.lang.AssertionError: Only allowing ConnectException here, but h
ad: java.lang.RuntimeException: error while creating a time-stamp: no protocol:
${env.http_proxy}
     [java]     at org.junit.Assert.fail(Assert.java:88)
     [java]     at org.junit.Assert.assertTrue(Assert.java:41)
     [java]     at org.apache.poi.poifs.crypt.TestSignatureInfo.testSignEnvelopi
ngDocument(TestSignatureInfo.java:382)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:57)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:43)
     [java]     at java.lang.reflect.Method.invoke(Method.java:606)
     [java]     at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(F
rameworkMethod.java:50)
     [java]     at org.junit.internal.runners.model.ReflectiveCallable.run(Refle
ctiveCallable.java:12)
     [java]     at org.junit.runners.model.FrameworkMethod.invokeExplosively(Fra
meworkMethod.java:47)
     [java]     at org.junit.internal.runners.statements.InvokeMethod.evaluate(I
nvokeMethod.java:17)
     [java]     at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)

     [java]     at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4
ClassRunner.java:78)
     [java]     at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4
ClassRunner.java:57)
     [java]     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
     [java]     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:7
1)
     [java]     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:
288)
     [java]     at org.junit.runners.ParentRunner.access$000(ParentRunner.java:5
8)
     [java]     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:2
68)
     [java]     at org.junit.internal.runners.statements.RunBefores.evaluate(Run
Befores.java:26)
     [java]     at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
     [java]     at org.junit.runners.Suite.runChild(Suite.java:128)
     [java]     at org.junit.runners.Suite.runChild(Suite.java:27)
     [java]     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
     [java]     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:7
1)
     [java]     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:
288)
     [java]     at org.junit.runners.ParentRunner.access$000(ParentRunner.java:5
8)
     [java]     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:2
68)
     [java]     at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
     [java]     at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
     [java]     at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
     [java]     at org.junit.runner.JUnitCore.run(JUnitCore.java:105)
     [java]     at org.junit.runner.JUnitCore.run(JUnitCore.java:94)
     [java]     at org.apache.poi.util.OOXMLLite.build(OOXMLLite.java:107)
     [java]     at org.apache.poi.util.OOXMLLite.main(OOXMLLite.java:93)
     [java]
     [java] FAILURES!!!
     [java] Tests run: 1148,  Failures: 1
     [java]

BUILD FAILED
Comment 8 Vasili 2015-02-24 21:21:54 UTC
Using poi-3.12-beta2 snapshot with the new build.xml (the diff is minimal, comparing with 3.11-FINAL), I'm getting the same as above (I believe the same will be against svn and git versions, but I didn't try)

poi-3.12-beta2>diff build.xml.prev build.xml
85c85,89
<     <property name="http_proxy" value="${env.http_proxy}"/>
---
>       <condition property="http_proxy"
>          value="${env.http_proxy}"
>          else="">
>               <isset property="env.http_proxy"/>
>       </condition>
1736a1741
>


As for entity expansions, I tried a few ways to pass jdk.xml.entityExpansionLimit=0 as per
http://docs.oracle.com/javase/tutorial/jaxp/limits/limits.html
https://github.com/aws/aws-sdk-java/issues/123
but haven't succeeded yet. I will keep trying. If you have other ideas - please let me know.
Comment 9 Dominik Stadler 2015-02-26 13:45:48 UTC
It seems there are still cases where your environment does not allow things that the test relies upon. I have updated the test to print out a bit more information, can you fetch the latest version of src/ooxml/testcases/org/apache/poi/poifs/crypt/TestSignatureInfo.java and re-run with that? It will likely still not work, but will provide more information for us.

Sorry for the back-and-forth, but as we cannot reproduce the problems locally, there is no other way to tackle this...

If you are desperate to get it running, you can also comment out one the test-case testSignEnvelopingDocument() in that file for now.
Comment 10 Vasili 2015-02-26 17:52:35 UTC
Thanks, it works now.
I have taken the file from
https://svn.apache.org/repos/asf/poi/trunk/src/ooxml/testcases/org/apache/poi/poifs/crypt/TestSignatureInfo.java

and updated just that file in my 3.11-FINAL src tree and finally got everything built successfully:


compile-ooxml-lite:
    [mkdir] Created dir: C:\poi-src-3.11-20141221\poi-3.11\build\ooxml-lite-merg
ed
      [jar] Building jar: C:\poi-src-3.11-20141221\poi-3.11\build\ooxml-lite-mer
ged\ooxml-lite-merged.jar
     [java] Collecting unit tests from C:\poi-src-3.11-20141221\poi-3.11\build\o
oxml-test-classes
     [java] Inner class org.apache.poi.poifs.crypt.TestCertificateEncryption$Cer
tData.class not included
     [java] Inner class org.apache.poi.TestPOIXMLDocument$OPCParser.class not in
cluded
     [java] Inner class org.apache.poi.TestPOIXMLDocument$TestFactory.class not
included
     [java] Inner class org.apache.poi.xslf.geom.TestPresetGeometries$1.class no
t included
     [java] Inner class org.apache.poi.xssf.extractor.TestXSSFExportToXML$1.clas
s not included
     [java] Inner class org.apache.poi.xssf.extractor.TestXSSFExportToXML$DummyE
ntityResolver.class not included
     [java] Inner class org.apache.poi.xssf.streaming.TestSXSSFWorkbook$1.class
not included
     [java] Inner class org.apache.poi.xssf.streaming.TestSXSSFWorkbook$NullOutp
utStream.class not included
     [java] Inner class org.apache.poi.xssf.usermodel.TestFormulaEvaluatorOnXSSF
$Result.class not included
     [java] Inner class org.apache.poi.xssf.usermodel.TestFormulaEvaluatorOnXSSF
$SS.class not included
     [java] Inner class org.apache.poi.xssf.usermodel.TestMultiSheetFormulaEvalu
atorOnXSSF$Result.class not included
     [java] Inner class org.apache.poi.xssf.usermodel.TestMultiSheetFormulaEvalu
atorOnXSSF$SS.class not included
     [java] Inner class org.apache.poi.xssf.usermodel.TestXSSFBugs$1.class not i
ncluded
     [java] Class org.apache.poi.xssf.usermodel.TestXSSFSheetAutosizeColumn does
 not derive from TestCase and does not have a @Test annotation
     [java] Found 158 classes
     [java] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
     [java] SLF4J: Defaulting to no-operation (NOP) logger implementation
     [java] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for fu
rther details.
     [java] ....................................................................
..............................................................................I.
.......................................................II.......................
................................................................................
................................Setting col: 0 and row 0
     [java] Setting col: 1 and row 1
     [java] Warning - Row 13 has no cell 1, can't figure out test name
     [java] [Fatal Error] :1:1: JAXP00010001: The parser has encountered more th
an "4096" entity expansions in this document; this is the limit imposed by the J
DK.
     [java] [Fatal Error] :1:1: JAXP00010001: The parser has encountered more th
an "4096" entity expansions in this document; this is the limit imposed by the J
DK.
     [java] ....................................................................
................................................................................
............................................................................I...
.....I..........................................................................
................................................................................
............................org.apache.poi.ss.usermodel.CellValue [12.0]
     [java] org.apache.poi.ss.usermodel.CellValue [12.0]
     [java] ....org.apache.poi.ss.usermodel.CellValue [1.0]
     [java] org.apache.poi.ss.usermodel.CellValue [1.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [3.0]
     [java] ....................................................................
................................................................................
..................................................................Done
     [java] ..........<?xml version="1.0" encoding="UTF-8"?>
     [java] <worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/20
06/main"><dimension ref="A1"/><sheetViews><sheetView workbookViewId="0" tabSelec
ted="true"/></sheetViews><sheetFormatPr defaultRowHeight="15.0"/><sheetData/><pa
geMargins bottom="0.75" footer="0.3" header="0.3" left="0.7" right="0.7" top="0.
75"/></worksheet>
     [java] ....................................Name: /word/document.xml - Conte
nt Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
.main+xml
     [java] ....................................................................
............................................................
     [java] Time: 38.792
     [java]
     [java] OK (1148 tests)
     [java]
     [java] Copying classes to C:\poi-src-3.11-20141221\poi-3.11\build\ooxml-lit
e-classes
     [java] Copying .xsb resources

compile-all:

compile-version:
     [copy] Copying 1 file to C:\poi-src-3.11-20141221\poi-3.11\build\classes\or
g\apache\poi
    [javac] Compiling 1 source file to C:\poi-src-3.11-20141221\poi-3.11\build\c
lasses
    [javac] warning: [options] bootstrap class path not set in conjunction with
-source 1.6
    [javac] 1 warning
   [delete] Deleting: C:\poi-src-3.11-20141221\poi-3.11\build\classes\org\apache
\poi\Version.java

-manifest:

jar:
      [jar] Building jar: C:\poi-src-3.11-20141221\poi-3.11\build\dist\poi-3.11-
20150226.jar
      [jar] Building jar: C:\poi-src-3.11-20141221\poi-3.11\build\dist\poi-scrat
chpad-3.11-20150226.jar
      [jar] Building jar: C:\poi-src-3.11-20141221\poi-3.11\build\dist\poi-ooxml
-3.11-20150226.jar
      [jar] Building jar: C:\poi-src-3.11-20141221\poi-3.11\build\dist\poi-examp
les-3.11-20150226.jar
      [jar] Building jar: C:\poi-src-3.11-20141221\poi-3.11\build\dist\poi-ooxml
-schemas-3.11-20150226.jar
      [jar] Building jar: C:\poi-src-3.11-20141221\poi-3.11\build\dist\poi-excel
ant-3.11-20150226.jar

BUILD SUCCESSFUL
Total time: 4 minutes 23 seconds
Comment 11 Uwe Schindler (ASF) 2015-02-27 07:51:15 UTC
Hi,
FYI, the [FATAL ERROR] is wanted by this test and - as you found out - has nothing to do with the problem. The FATAL error is printed by the XML parser, which is actually a bug in the JDK/XERCES that it prints to System.err from code running inside the JDK. The test checks for the entity expansion limit to work, so this is wanted.
Comment 12 Vasili 2015-02-27 14:04:33 UTC
Thanks for the explanation

Have a great day
Comment 13 gil 2016-06-26 09:03:23 UTC
hi
seem i have a similar problem with poi 3.14


compile-ooxml-lite:
    [mkdir] Created dir: /builddir/build/BUILD/poi-3.14/build/ooxml-lite-merged
      [jar] Building jar: /builddir/build/BUILD/poi-3.14/build/ooxml-lite-merged/ooxml-lite-merged.jar
     [java] OpenJDK Zero VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
     [java] Collecting unit tests from /builddir/build/BUILD/poi-3.14/build/ooxml-test-classes
     [java] Found 176 classes
     [java] .......................................................................I..............................................................................I.......I...............................................................................................................Name: /word/document.xml - Content Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml
     [java] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
     [java] SLF4J: Defaulting to no-operation (NOP) logger implementation
     [java] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
     [java] ..............................I......................................................................................................I.......I.......................................................................................................................................11
     [java] Calibri
     [java] ..........................................................................I..I.I........................................................................I..............................................................................................................................I..........................................Cell formula evaluation currently unsupported
     [java] Array formulas currently unsupported
     [java] .....E.......................................................................................................................................III.II.......I............I.org.apache.poi.xssf.streaming.SXSSFWorkbook column autosizing timing...
     [java] Populate sheet time: 3235.0 ms (145458.6330935252 ns/cell)
     [java] 
     [java] Autosizing...
     [java] Column 0 took 905.0 ms
     [java] Column 1 took 898.0 ms
     [java] Column 2 took 900.0 ms
     [java] Column 3 took 900.0 ms
     [java] Column 4 took 902.0 ms
     [java] Column 5 took 903.0 ms
     [java] Column 6 took 905.0 ms
     [java] Column 7 took 903.0 ms
     [java] Column 8 took 907.0 ms
     [java] Column 9 took 908.0 ms
     [java] Column 10 took 931.0 ms
     [java] Column 11 took 932.0 ms
     [java] Column 12 took 935.0 ms
     [java] Column 13 took 937.0 ms
     [java] Column 14 took 936.0 ms
     [java] Column 15 took 935.0 ms
     [java] Column 16 took 938.0 ms
     [java] Column 17 took 939.0 ms
     [java] Column 18 took 940.0 ms
     [java] Column 19 took 941.0 ms
     [java] Column 20 took 943.0 ms
     [java] Column 21 took 944.0 ms
     [java] Column 22 took 944.0 ms
     [java] Column 23 took 944.0 ms
     [java] Column 24 took 948.0 ms
     [java] Column 25 took 948.0 ms
     [java] Column 26 took 1616.0 ms
     [java] Column 27 took 946.0 ms
     [java] Column 28 took 949.0 ms
     [java] Column 29 took 950.0 ms
     [java] Column 30 took 951.0 ms
     [java] Column 31 took 948.0 ms
     [java] Column 32 took 952.0 ms
     [java] Column 33 took 952.0 ms
     [java] Column 34 took 955.0 ms
     [java] Column 35 took 957.0 ms
     [java] Column 36 took 957.0 ms
     [java] Column 37 took 957.0 ms
     [java] Column 38 took 959.0 ms
     [java] Column 39 took 959.0 ms
     [java] Column 40 took 962.0 ms
     [java] Column 41 took 962.0 ms
     [java] Column 42 took 964.0 ms
     [java] Column 43 took 963.0 ms
     [java] Column 44 took 967.0 ms
     [java] Column 45 took 966.0 ms
     [java] Column 46 took 968.0 ms
     [java] Column 47 took 967.0 ms
     [java] Column 48 took 971.0 ms
     [java] Column 49 took 970.0 ms
     [java] Column 50 took 972.0 ms
     [java] Column 51 took 974.0 ms
     [java] Column 52 took 975.0 ms
     [java] Column 53 took 975.0 ms
     [java] Column 54 took 978.0 ms
     [java] Column 55 took 976.0 ms
     [java] Column 56 took 979.0 ms
     [java] Column 57 took 982.0 ms
     [java] Column 58 took 980.0 ms
     [java] Column 59 took 981.0 ms
     [java] Column 60 took 982.0 ms
     [java] Column 61 took 984.0 ms
     [java] Column 62 took 985.0 ms
     [java] Column 63 took 984.0 ms
     [java] Column 64 took 988.0 ms
     [java] Column 65 took 988.0 ms
     [java] Column 66 took 989.0 ms
     [java] Column 67 took 990.0 ms
     [java] Column 68 took 992.0 ms
     [java] Column 69 took 992.0 ms
     [java] Column 70 took 994.0 ms
     [java] Column 71 took 993.0 ms
     [java] Column 72 took 997.0 ms
     [java] Column 73 took 998.0 ms
     [java] Column 74 took 999.0 ms
     [java] Column 75 took 999.0 ms
     [java] Column 76 took 1001.0 ms
     [java] Column 77 took 1001.0 ms
     [java] Column 78 took 1005.0 ms
     [java] Column 79 took 1003.0 ms
     [java] Column 80 took 1006.0 ms
     [java] Column 81 took 1006.0 ms
     [java] Column 82 took 1008.0 ms
     [java] Column 83 took 1008.0 ms
     [java] Column 84 took 1011.0 ms
     [java] Column 85 took 1010.0 ms
     [java] Column 86 took 1012.0 ms
     [java] Column 87 took 1012.0 ms
     [java] Column 88 took 1015.0 ms
     [java] Column 89 took 1014.0 ms
     [java] Column 90 took 1017.0 ms
     [java] Column 91 took 1017.0 ms
     [java] Column 92 took 1019.0 ms
     [java] Column 93 took 1019.0 ms
     [java] Column 94 took 1023.0 ms
     [java] Column 95 took 1020.0 ms
     [java] Column 96 took 1024.0 ms
     [java] Column 97 took 1025.0 ms
     [java] Column 98 took 1026.0 ms
     [java] Column 99 took 1027.0 ms
     [java] Column 100 took 1052.0 ms
     [java] Column 101 took 1053.0 ms
     [java] Column 102 took 1053.0 ms
     [java] Column 103 took 1053.0 ms
     [java] Column 104 took 1055.0 ms
     [java] Column 105 took 1056.0 ms
     [java] Column 106 took 1057.0 ms
     [java] Column 107 took 1297.0 ms
     [java] Column 108 took 1060.0 ms
     [java] Column 109 took 1061.0 ms
     [java] Column 110 took 1063.0 ms
     [java] Column 111 took 1061.0 ms
     [java] Column 112 took 1064.0 ms
     [java] Column 113 took 1064.0 ms
     [java] Column 114 took 1066.0 ms
     [java] Column 115 took 1066.0 ms
     [java] Column 116 took 1069.0 ms
     [java] Column 117 took 1070.0 ms
     [java] Column 118 took 1071.0 ms
     [java] Column 119 took 1072.0 ms
     [java] Column 120 took 1075.0 ms
     [java] Column 121 took 1077.0 ms
     [java] Column 122 took 1076.0 ms
     [java] Column 123 took 1076.0 ms
     [java] Column 124 took 1078.0 ms
     [java] Column 125 took 1079.0 ms
     [java] Column 126 took 1080.0 ms
     [java] Column 127 took 1079.0 ms
     [java] Column 128 took 1083.0 ms
     [java] Column 129 took 1083.0 ms
     [java] Column 130 took 1085.0 ms
     [java] Column 131 took 1085.0 ms
     [java] Column 132 took 1086.0 ms
     [java] Column 133 took 1088.0 ms
     [java] Column 134 took 1090.0 ms
     [java] Column 135 took 1091.0 ms
     [java] Column 136 took 1092.0 ms
     [java] Column 137 took 1092.0 ms
     [java] Column 138 took 1095.0 ms
     [java] Auto sizing columns took a total of 139785.0 ms (1005.6474820143885 ms per column)
     [java] Best fit width time per cell: 6285296.762589928 ns
     [java] Total time: 143.02 s
     [java] ...........Retry 0 because run-time is too high: 30981
     [java] Retry 1 because run-time is too high: 17525
     [java] Retry 2 because run-time is too high: 17524
     [java] Retry 3 because run-time is too high: 17526
     [java] Retry 4 because run-time is too high: 17531
     [java] [Fatal Error] :1:1: JAXP00010001: The parser has encountered more than "4096" entity expansions in this document; this is the limit imposed by the JDK.
     [java] [Fatal Error] :1:1: JAXP00010001: The parser has encountered more than "4096" entity expansions in this document; this is the limit imposed by the JDK.
     [java] E....................I.......................................................................................................................................................................................................Cell: 3E-104
     [java] Cell: 5E-104
     [java] Cell: 5E-106
     [java] Cell: 
     [java] II........I......................I..............I.org.apache.poi.xssf.usermodel.XSSFWorkbook column autosizing timing...
     [java] Populate sheet time: 120198.0 ms (5404586.330935252 ns/cell)
     [java] 
     [java] Autosizing...
     [java] Column 0 took 867.0 ms
     [java] Column 1 took 865.0 ms
     [java] Column 2 took 866.0 ms
     [java] Column 3 took 866.0 ms
     [java] Column 4 took 866.0 ms
     [java] Column 5 took 864.0 ms
     [java] Column 6 took 865.0 ms
     [java] Column 7 took 866.0 ms
     [java] Column 8 took 867.0 ms
     [java] Column 9 took 866.0 ms
     [java] Column 10 took 888.0 ms
     [java] Column 11 took 888.0 ms
     [java] Column 12 took 888.0 ms
     [java] Column 13 took 890.0 ms
     [java] Column 14 took 893.0 ms
     [java] Column 15 took 889.0 ms
     [java] Column 16 took 889.0 ms
     [java] Column 17 took 889.0 ms
     [java] Column 18 took 889.0 ms
     [java] Column 19 took 890.0 ms
     [java] Column 20 took 893.0 ms
     [java] Column 21 took 891.0 ms
     [java] Column 22 took 890.0 ms
     [java] Column 23 took 888.0 ms
     [java] Column 24 took 891.0 ms
     [java] Column 25 took 891.0 ms
     [java] Column 26 took 891.0 ms
     [java] Column 27 took 890.0 ms
     [java] Column 28 took 892.0 ms
     [java] Column 29 took 890.0 ms
     [java] Column 30 took 892.0 ms
     [java] Column 31 took 888.0 ms
     [java] Column 32 took 893.0 ms
     [java] Column 33 took 891.0 ms
     [java] Column 34 took 892.0 ms
     [java] Column 35 took 891.0 ms
     [java] Column 36 took 894.0 ms
     [java] Column 37 took 893.0 ms
     [java] Column 38 took 895.0 ms
     [java] Column 39 took 896.0 ms
     [java] Column 40 took 894.0 ms
     [java] Column 41 took 893.0 ms
     [java] Column 42 took 893.0 ms
     [java] Column 43 took 893.0 ms
     [java] Column 44 took 893.0 ms
     [java] Column 45 took 898.0 ms
     [java] Column 46 took 893.0 ms
     [java] Column 47 took 895.0 ms
     [java] Column 48 took 894.0 ms
     [java] Column 49 took 895.0 ms
     [java] Column 50 took 893.0 ms
     [java] Column 51 took 894.0 ms
     [java] Column 52 took 895.0 ms
     [java] Column 53 took 896.0 ms
     [java] Column 54 took 894.0 ms
     [java] Column 55 took 896.0 ms
     [java] Column 56 took 896.0 ms
     [java] Column 57 took 895.0 ms
     [java] Column 58 took 896.0 ms
     [java] Column 59 took 895.0 ms
     [java] Column 60 took 896.0 ms
     [java] Column 61 took 897.0 ms
     [java] Column 62 took 898.0 ms
     [java] Column 63 took 897.0 ms
     [java] Column 64 took 898.0 ms
     [java] Column 65 took 897.0 ms
     [java] Column 66 took 897.0 ms
     [java] Column 67 took 895.0 ms
     [java] Column 68 took 899.0 ms
     [java] Column 69 took 900.0 ms
     [java] Column 70 took 899.0 ms
     [java] Column 71 took 898.0 ms
     [java] Column 72 took 898.0 ms
     [java] Column 73 took 897.0 ms
     [java] Column 74 took 899.0 ms
     [java] Column 75 took 896.0 ms
     [java] Column 76 took 899.0 ms
     [java] Column 77 took 898.0 ms
     [java] Column 78 took 899.0 ms
     [java] Column 79 took 898.0 ms
     [java] Column 80 took 898.0 ms
     [java] Column 81 took 900.0 ms
     [java] Column 82 took 901.0 ms
     [java] Column 83 took 898.0 ms
     [java] Column 84 took 901.0 ms
     [java] Column 85 took 899.0 ms
     [java] Column 86 took 900.0 ms
     [java] Column 87 took 898.0 ms
     [java] Column 88 took 900.0 ms
     [java] Column 89 took 899.0 ms
     [java] Column 90 took 901.0 ms
     [java] Column 91 took 899.0 ms
     [java] Column 92 took 903.0 ms
     [java] Column 93 took 901.0 ms
     [java] Column 94 took 901.0 ms
     [java] Column 95 took 899.0 ms
     [java] Column 96 took 901.0 ms
     [java] Column 97 took 902.0 ms
     [java] Column 98 took 1028.0 ms
     [java] Column 99 took 901.0 ms
     [java] Column 100 took 925.0 ms
     [java] Column 101 took 925.0 ms
     [java] Column 102 took 925.0 ms
     [java] Column 103 took 923.0 ms
     [java] Column 104 took 925.0 ms
     [java] Column 105 took 925.0 ms
     [java] Column 106 took 925.0 ms
     [java] Column 107 took 925.0 ms
     [java] Column 108 took 926.0 ms
     [java] Column 109 took 926.0 ms
     [java] Column 110 took 927.0 ms
     [java] Column 111 took 924.0 ms
     [java] Column 112 took 926.0 ms
     [java] Column 113 took 927.0 ms
     [java] Column 114 took 927.0 ms
     [java] Column 115 took 927.0 ms
     [java] Column 116 took 928.0 ms
     [java] Column 117 took 926.0 ms
     [java] Column 118 took 927.0 ms
     [java] Column 119 took 926.0 ms
     [java] Column 120 took 928.0 ms
     [java] Column 121 took 928.0 ms
     [java] Column 122 took 929.0 ms
     [java] Column 123 took 927.0 ms
     [java] Column 124 took 929.0 ms
     [java] Column 125 took 928.0 ms
     [java] Column 126 took 929.0 ms
     [java] Column 127 took 927.0 ms
     [java] Column 128 took 930.0 ms
     [java] Column 129 took 929.0 ms
     [java] Column 130 took 929.0 ms
     [java] Column 131 took 929.0 ms
     [java] Column 132 took 931.0 ms
     [java] Column 133 took 931.0 ms
     [java] Column 134 took 930.0 ms
     [java] Column 135 took 930.0 ms
     [java] Column 136 took 931.0 ms
     [java] Column 137 took 930.0 ms
     [java] Column 138 took 932.0 ms
     [java] Auto sizing columns took a total of 125577.0 ms (903.431654676259 ms per column)
     [java] Best fit width time per cell: 5646447.841726619 ns
     [java] Total time: 245.775 s
     [java] ...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Setting col: 0 and row 0
     [java] Setting col: 1 and row 1
     [java] Exception in thread "main" java.lang.RuntimeException: Tests did not succeed, cannot build ooxml-lite jar
     [java] ......................................................................................
     [java] 	at org.apache.poi.util.OOXMLLite.build(OOXMLLite.java:106)Time: 24,219.081
     [java] 
     [java] There were 2 failures:
     [java] 	at org.apache.poi.util.OOXMLLite.main(OOXMLLite.java:87)1) bug51585(org.apache.poi.xssf.usermodel.TestXSSFSheet)
     [java] 
     [java] org.junit.runners.model.TestTimedOutException: test timed out after 180000 milliseconds
     [java] 	at javax.xml.namespace.QName.equals(QName.java:360)
     [java] 	at org.apache.xmlbeans.impl.store.Xobj.find_element_user(Xobj.java:2079)
     [java] 	at org.apache.xmlbeans.impl.values.XmlComplexContentImpl.arraySetterHelper(XmlComplexContentImpl.java:1155)
     [java] 	at org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTColsImpl.setColArray(Unknown Source)
     [java] 	at org.apache.poi.xssf.usermodel.helpers.ColumnHelper.cleanColumns(ColumnHelper.java:65)
     [java] 	at org.apache.poi.xssf.usermodel.helpers.ColumnHelper.<init>(ColumnHelper.java:46)
     [java] 	at org.apache.poi.xssf.usermodel.XSSFSheet.read(XSSFSheet.java:179)
     [java] 	at org.apache.poi.xssf.usermodel.XSSFSheet.onDocumentRead(XSSFSheet.java:165)
     [java] 	at org.apache.poi.xssf.usermodel.XSSFWorkbook.parseSheet(XSSFWorkbook.java:417)
     [java] 	at org.apache.poi.xssf.usermodel.XSSFWorkbook.onDocumentRead(XSSFWorkbook.java:382)
     [java] 	at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:178)
     [java] 	at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:279)
     [java] 	at org.apache.poi.xssf.XSSFTestDataSamples.openSampleWorkbook(XSSFTestDataSamples.java:61)
     [java] 	at org.apache.poi.xssf.usermodel.TestXSSFSheet.bug51585(TestXSSFSheet.java:1371)
     [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     [java] 	at java.lang.reflect.Method.invoke(Method.java:498)
     [java] 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
     [java] 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
     [java] 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:52)
     [java] 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
     [java] 	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
     [java] 	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
     [java] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
     [java] 	at java.lang.Thread.run(Thread.java:745)
     [java] 2) testMergeRegionsSpeed(org.apache.poi.xssf.usermodel.TestXSSFSheetMergeRegions)
     [java] java.lang.AssertionError: Should have taken <2000 ms to iterate 50k merged regions but took 17531
     [java] 	at org.junit.Assert.fail(Assert.java:88)
     [java] 	at org.junit.Assert.assertTrue(Assert.java:41)
     [java] 	at org.apache.poi.xssf.usermodel.TestXSSFSheetMergeRegions.testMergeRegionsSpeed(TestXSSFSheetMergeRegions.java:46)
     [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     [java] 	at java.lang.reflect.Method.invoke(Method.java:498)
     [java] 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
     [java] 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
     [java] 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:52)
     [java] 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
     [java] 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
     [java] 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
     [java] 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
     [java] 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
     [java] 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
     [java] 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
     [java] 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
     [java] 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
     [java] 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
     [java] 	at org.junit.runners.Suite.runChild(Suite.java:128)
     [java] 	at org.junit.runners.Suite.runChild(Suite.java:27)
     [java] 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
     [java] 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
     [java] 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
     [java] 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
     [java] 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
     [java] 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
     [java] 	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
     [java] 	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
     [java] 	at org.junit.runner.JUnitCore.run(JUnitCore.java:105)
     [java] 	at org.junit.runner.JUnitCore.run(JUnitCore.java:94)
     [java] 	at org.apache.poi.util.OOXMLLite.build(OOXMLLite.java:104)
     [java] 	at org.apache.poi.util.OOXMLLite.main(OOXMLLite.java:87)
     [java] 
     [java] FAILURES!!!
     [java] Tests run: 1855,  Failures: 2
     [java] 
BUILD FAILED
/builddir/build/BUILD/poi-3.14/build.xml:1269: Java returned: 1
Comment 14 gil 2016-06-26 10:01:28 UTC
(In reply to gil from comment #13)
> hi
> seem i have a similar problem with poi 3.14
> 


forgotten,used:
openjdk 1.8.0.92-4.b14
on armv7hl arch based system
Comment 15 Dominik Stadler 2016-06-26 10:42:40 UTC
You are obviously running this on a very slow machine and thus some tests that depend on a certain speed of the build-machine are failing. It's propably best if you comment out those tests in that case:

testMergeRegionsSpeed(org.apache.poi.xssf.usermodel.TestXSSFSheetMergeRegions)
     [java] java.lang.AssertionError: Should have taken <2000 ms to iterate 50k
merged regions but took 17531

I am closing this issue again as it is a different issue. In such failures to build it is probably best if you post to the mailing list to discuss first or create new bugs as only the overall error message is similar here.