See 
<https://ci-builds.apache.org/job/POI/job/POI-DSL-no-scratchpad/166/display/redirect?page=changes>

Changes:

[Dominik Stadler] Set one test-file to "IGNORED" in poi-integration

It was processing fine on some JVM versions, but failed with an error on others.
Seems there is a difference in XmlParsers across versions of the JVM.

[Dominik Stadler] Adjust max recursion nesting

Otherwise this still triggered StackOverflow on some version of JDK

[Dominik Stadler] Bug 66425: Avoid exceptions found via poi-fuzz

We try to avoid throwing NullPointerException, ClassCastExceptions and 
StackOverflowException, but it was possible
to trigger them

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61562
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62068

[PJ Fanning] update changes

[PJ Fanning] update changes

[PJ Fanning] use files nio APIs in more places

[PJ Fanning] [bug-67442] add test

[Dominik Stadler] Bug 66425: Avoid NullPointerExceptions and 
ClassCastExceptions found via poi-fuzz

We try to avoid throwing NullPointerException and ClassCastExceptions, but it 
was possible
to trigger them

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62414
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62442
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62450


------------------------------------------
[...truncated 1.85 MB...]
> Task :poi-scratchpad:javadoc
javadoc: warning - Error fetching URL: https://xmlbeans.apache.org/docs/5.0.0/
javadoc: warning - Error fetching URL: 
https://commons.apache.org/proper/commons-compress/apidocs/

> Task :poi-excelant:javadoc
javadoc: warning - Error fetching URL: 
https://commons.apache.org/proper/commons-compress/apidocs/
2 warnings

> Task :poi-excelant:javadocJar
> Task :poi-excelant:assemble
> Task :poi-excelant:forbiddenApisMain UP-TO-DATE
> Task :poi-excelant:getDeps
> Task :poi-ooxml:compileTest9
> Task :poi-ooxml:testClasses
> Task :poi-ooxml:testJar

> Task :poi-examples:javadoc
javadoc: warning - Error fetching URL: https://xmlbeans.apache.org/docs/5.0.0/
javadoc: warning - Error fetching URL: 
https://commons.apache.org/proper/commons-compress/apidocs/

> Task :poi-excelant:compileTestJava

> Task :poi-integration:compileTestJava
<https://ci-builds.apache.org/job/POI/job/POI-DSL-no-scratchpad/ws/poi-integration/src/test/java/org/apache/poi/stress/OptimizedNullPrintStream.java>:29:
 warning: [deprecation] NullPrintStream() in 
org.apache.commons.io.output.NullPrintStream has been deprecated
class OptimizedNullPrintStream extends NullPrintStream {
^
1 warning

> Task :poi-excelant:compileTest9
> Task :poi-excelant:testClasses
> Task :poi-excelant:forbiddenApisTest
> Task :poi-excelant:forbiddenApis
> Task :poi-excelant:testJar

> Task :poi-examples:javadoc
2 warnings

> Task :poi-examples:javadocJar
> Task :poi-examples:assemble
> Task :poi-examples:forbiddenApisMain
> Task :poi-examples:compileTestJava
> Task :poi-examples:testClasses
> Task :poi-examples:forbiddenApisTest
> Task :poi-examples:forbiddenApis

> Task :poi-excelant:test



> Task :poi-integration:compileTest9
> Task :poi-integration:testClasses

> Task :poi-examples:test



> Task :poi-integration:forbiddenApisTest
> Task :poi-integration:forbiddenApis
> Task :poi-integration:testJar

> Task :poi-excelant:spotbugsMain
M V EI2: 
org.apache.poi.ss.excelant.ExcelAntSet.setWorkbookUtil(ExcelAntWorkbookUtil) 
may expose internal representation by storing an externally mutable object into 
ExcelAntSet.wbUtil  At ExcelAntSet.java:[line 39]
M V EI: org.apache.poi.ss.excelant.util.ExcelAntWorkbookUtil.getWorkbook() may 
expose internal representation by returning ExcelAntWorkbookUtil.workbook  At 
ExcelAntWorkbookUtil.java:[line 193]
M V EI2: 
org.apache.poi.ss.excelant.ExcelAntTest.setWorkbookUtil(ExcelAntWorkbookUtil) 
may expose internal representation by storing an externally mutable object into 
ExcelAntTest.workbookUtil  At ExcelAntTest.java:[line 67]
M D DCN: Do not catch NullPointerException like in 
org.apache.poi.ss.excelant.ExcelAntTest.execute()  At ExcelAntTest.java:[line 
180]
M V EI2: 
org.apache.poi.ss.excelant.ExcelAntTask.addPrecision(ExcelAntPrecision) may 
expose internal representation by storing an externally mutable object into 
ExcelAntTask.precision  At ExcelAntTask.java:[line 55]
SpotBugs ended with exit code 1

> Task :poi-excelant:test
org.apache.poi.ss.excelant.TestExcelAntPrecision 
testVerifyPrecision() PASSED
org.apache.poi.ss.excelant.util.TestExcelAntEvaluationResult 
testCompletedWithErrorMessage() PASSED
org.apache.poi.ss.excelant.util.TestExcelAntEvaluationResult 
testDelta() PASSED
org.apache.poi.ss.excelant.util.TestExcelAntEvaluationResult 
testCellId() PASSED
org.apache.poi.ss.excelant.util.TestExcelAntEvaluationResult 
testPassed() PASSED
org.apache.poi.ss.excelant.TestExcelAntUserDefinedFunction 
testSetClassName() PASSED
org.apache.poi.ss.excelant.TestExcelAntUserDefinedFunction 
testSetFunction() PASSED
org.apache.poi.ss.excelant.TestBuildFile 
testFailOnErrorNoDetails() PASSED (2.7s)
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtilFactory 
testGetNewWorkbookUtilInstance() PASSED (5.7s)
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtilFactory 
testVerifyEquivalence() PASSED

> Task :poi-scratchpad:javadoc
2 warnings

> Task :poi-examples:test
org.apache.poi.integration.TestXLSX2CSV testInvalidFile() 
PASSED
org.apache.poi.integration.TestXLSX2CSV testNoArgument() 
PASSED

> Task :poi-excelant:spotbugsTest

> Task :poi-excelant:test
org.apache.poi.ss.excelant.TestExcelAntSet 
testSetWorkbookUtil() PASSED (6.4s)
org.apache.poi.ss.excelant.TestExcelAntSet testSetter() 
PASSED
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testWorkbookConstructor() PASSED (6s)
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testAddFunctionInvalidClassName() PASSED
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testGetEvaluatorWithUDF() PASSED
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testSetDoubleValue() PASSED
org.apache.poi.ss.excelant.TestExcelAntSetDoubleCell 
testSetDouble() PASSED (7.6s)
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testEvaluateCellWithError() PASSED
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testLoadNotExistingFile() PASSED
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testAddFunctionClassName() PASSED
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testGetNonexistingDouble() PASSED
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testAddFunction() PASSED
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testFileName() PASSED
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testGetNonexistingString() PASSED
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testSetNotExistingSheet() PASSED
org.apache.poi.ss.excelant.TestBuildFile testUdf() 
PASSED (6.2s)
org.apache.poi.ss.excelant.TestBuildFile testPrecision() 
PASSED

> Task :poi-examples:spotbugsTest

> Task :poi-examples:test
org.apache.poi.integration.TestXLSX2CSV testSampleFile() 
PASSED (6.7s)
org.apache.poi.integration.TestXLSX2CSV testMinColumns() 
PASSED
org.apache.poi.integration.TestXLSX2CSV 
testInvalidSampleFile() PASSED

SUCCESS: Executed 5 tests in 17s


> Task :poi-integration:test



> Task :poi-ooxml-lite:compileJava
> Task :poi-examples:getDeps
> Task :poi-scratchpad:javadocJar
> Task :poi-scratchpad:assemble
> Task :poi-scratchpad:build

> Task :poi-excelant:test
org.apache.poi.ss.excelant.TestBuildFile testPassOnError() 
PASSED
org.apache.poi.ss.excelant.TestBuildFile 
testMissingFilename() PASSED
org.apache.poi.ss.excelant.TestBuildFile 
testAddHandlerWrongClass() PASSED
org.apache.poi.ss.excelant.TestBuildFile testEvaluate() 
PASSED
org.apache.poi.ss.excelant.TestBuildFile testFileNotFound() 
PASSED
org.apache.poi.ss.excelant.TestBuildFile 
testEvaluateNoDetails() PASSED
org.apache.poi.ss.excelant.TestBuildFile 
testAddHandlerFails() PASSED
org.apache.poi.ss.excelant.TestBuildFile testPrecisionFail() 
PASSED
org.apache.poi.ss.excelant.TestBuildFile testSetText() 
PASSED
org.apache.poi.ss.excelant.TestBuildFile testAddHandler() 
PASSED
org.apache.poi.ss.excelant.TestBuildFile testFailOnError() 
PASSED

> Task :poi-examples:jacocoTestReport

> Task :poi:javadoc
2 warnings

> Task :poi-excelant:test
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testGetEvaluatorXLSXWithFunction() PASSED (5.1s)
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testStringConstructor() PASSED
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testEvaluateCellFailedPrecision() PASSED
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testSetString() PASSED
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testEvaluateCell() PASSED
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testGetWorkbook() PASSED
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testGetSheets() PASSED
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testSetFormula() PASSED
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testSetDate() PASSED
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testGetEvaluator() PASSED
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testGetEvaluatorXLSX() PASSED

SUCCESS: Executed 49 tests in 22.6s


> Task :poi-excelant:check
> Task :poi-excelant:build
> Task :poi-excelant:jacocoTestReport

> Task :poi-integration:test
org.apache.poi.stress.TestAllFiles > handleFile(String, 
FileHandlerKnown, String, Class, String) initializationError 
FAILED

  java.lang.NullPointerException
      at org.apache.poi.stress.TestAllFiles.allfiles(TestAllFiles.java:148)

org.apache.poi.stress.TestAllFiles > handleAdditional(String, 
FileHandlerKnown, String, Class, String) initializationError 
FAILED

  java.lang.NullPointerException
      at org.apache.poi.stress.TestAllFiles.allfiles(TestAllFiles.java:148)

org.apache.poi.stress.TestAllFiles > handleExtracting(String, 
FileHandlerKnown, String, Class, String) initializationError 
FAILED

  java.lang.NullPointerException
      at org.apache.poi.stress.TestAllFiles.allfiles(TestAllFiles.java:148)


FAILURE: Executed 3 tests in 16.1s (3 failed)


3 tests completed, 3 failed

> Task :poi-integration:test FAILED

> Task :poi-integration:spotbugsTest
M V MS: org.apache.poi.stress.AbstractFileHandler.EXPECTED_EXTRACTOR_FAILURES 
is a mutable collection which should be package protected  At 
AbstractFileHandler.java:[line 48]
M V MS: org.apache.poi.stress.TestAllFiles.SCAN_EXCLUDES should be package 
protected  At TestAllFiles.java:[line 86]
M V MS: org.apache.poi.stress.TestAllFiles.SCAN_EXCLUDES_NOSCRATCHPAD should be 
package protected  At TestAllFiles.java:[line 102]
SpotBugs ended with exit code 1

> Task :poi-ooxml:javadoc
javadoc: warning - Error fetching URL: https://xmlbeans.apache.org/docs/5.0.0/
javadoc: warning - Error fetching URL: 
https://commons.apache.org/proper/commons-compress/apidocs/

> Task :poi-examples:spotbugsMain
M V EI2: new org.apache.poi.examples.hwpf.Word2Forrest(HWPFDocument, 
OutputStream) may expose internal representation by storing an externally 
mutable object into Word2Forrest._doc  At Word2Forrest.java:[line 46]
H B Nm: The class name 
org.apache.poi.examples.hssf.usermodel.AddDimensionedImage shadows the simple 
name of the superclass org.apache.poi.examples.ss.AddDimensionedImage  At 
AddDimensionedImage.java:[line 29]
M V EI2: 
org.apache.poi.examples.hssf.usermodel.EventExample.processRecord(Record) may 
expose internal representation by storing an externally mutable object into 
EventExample.sstrec  At EventExample.java:[line 80]
M D SF: Switch statement found in 
org.apache.poi.examples.hssf.usermodel.EventExample.processRecord(Record) where 
default case is missing  At EventExample.java:[lines 50-88]
M V EI2: new org.apache.poi.examples.xssf.eventusermodel.XLSX2CSV(OPCPackage, 
PrintStream, int) may expose internal representation by storing an externally 
mutable object into XLSX2CSV.xlsxPackage  At XLSX2CSV.java:[line 181]
M V EI2: new org.apache.poi.examples.xssf.eventusermodel.XLSX2CSV(OPCPackage, 
PrintStream, int) may expose internal representation by storing an externally 
mutable object into XLSX2CSV.output  At XLSX2CSV.java:[line 182]
M V EI2: new 
org.apache.poi.examples.hssf.eventusermodel.XLS2CSVmra(POIFSFileSystem, 
PrintStream, int) may expose internal representation by storing an externally 
mutable object into XLS2CSVmra.output  At XLS2CSVmra.java:[line 92]
M V EI2: 
org.apache.poi.examples.hssf.eventusermodel.XLS2CSVmra.processRecord(Record) 
may expose internal representation by storing an externally mutable object into 
XLS2CSVmra.sstRecord  At XLS2CSVmra.java:[line 172]
M V EI2: new 
org.apache.poi.examples.hssf.eventusermodel.XLS2CSVmra(POIFSFileSystem, 
PrintStream, int) may expose internal representation by storing an externally 
mutable object into XLS2CSVmra.fs  At XLS2CSVmra.java:[line 91]
M C FL: Using floating-point loop counters can lead to unexpected behavior.  At 
OfficeDrawingWithGraphics.java:[line 93]
M V EI2: new org.apache.poi.examples.ss.html.HSSFHtmlHelper(HSSFWorkbook) may 
expose internal representation by storing an externally mutable object into 
HSSFHtmlHelper.wb  At HSSFHtmlHelper.java:[line 38]
M V EI: 
org.apache.poi.examples.hssf.usermodel.InCellLists$MultiLevelListItem.getLowerLevelItems()
 may expose internal representation by returning 
InCellLists$MultiLevelListItem.lowerLevelItems  At InCellLists.java:[line 536]
M V EI2: new 
org.apache.poi.examples.hssf.usermodel.InCellLists$MultiLevelListItem(String, 
List) may expose internal representation by storing an externally mutable 
object into InCellLists$MultiLevelListItem.lowerLevelItems  At 
InCellLists.java:[line 516]
M V EI2: new 
org.apache.poi.examples.ss.formula.CheckFunctionsSupported(Workbook) may expose 
internal representation by storing an externally mutable object into 
CheckFunctionsSupported.workbook  At CheckFunctionsSupported.java:[line 103]
M C UwF: Unwritten field: 
org.apache.poi.examples.hssf.eventusermodel.XLS2CSVmra.workbookBuildingListener 
 At XLS2CSVmra.java:[line 151]
M P SS: Unread field: 
org.apache.poi.examples.hssf.eventusermodel.XLS2CSVmra.outputFormulaValues; 
should this field be static?  At XLS2CSVmra.java:[line 64]
SpotBugs ended with exit code 1

> Task :poi-ooxml:javadoc
2 warnings

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':poi-integration:test'.
> There were failing tests. See the report at: 
> file://<https://ci-builds.apache.org/job/POI/job/POI-DSL-no-scratchpad/ws/poi-integration/build/reports/tests/test/index.html>

* Try:
> Run with --scan to get full insights.

Deprecated Gradle features were used in this build, making it incompatible with 
Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings 
and determine if they come from your own scripts or plugins.

For more on this, please refer to 
https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings
 in the Gradle documentation.

BUILD FAILED in 3m 15s
117 actionable tasks: 112 executed, 5 up-to-date
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
[SpotBugs] Skipping execution of recorder since overall result is 'FAILURE'
ERROR: Not all environment variables could be successfully injected. Check for 
similarly-named environment variables.
Archiving artifacts
ERROR: Not all environment variables could be successfully injected. Check for 
similarly-named environment variables.
Recording test results
ERROR: Not all environment variables could be successfully injected. Check for 
similarly-named environment variables.
[Checks API] No suitable checks publisher found.
ERROR: Not all environment variables could be successfully injected. Check for 
similarly-named environment variables.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to