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 [0K[1morg.apache.poi.ss.excelant.TestExcelAntPrecision[22m testVerifyPrecision()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntEvaluationResult[22m testCompletedWithErrorMessage()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntEvaluationResult[22m testDelta()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntEvaluationResult[22m testCellId()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntEvaluationResult[22m testPassed()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.TestExcelAntUserDefinedFunction[22m testSetClassName()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.TestExcelAntUserDefinedFunction[22m testSetFunction()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.TestBuildFile[22m testFailOnErrorNoDetails()[32m PASSED[31m (2.7s)[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtilFactory[22m testGetNewWorkbookUtilInstance()[32m PASSED[31m (5.7s)[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtilFactory[22m testVerifyEquivalence()[32m PASSED[m > Task :poi-scratchpad:javadoc 2 warnings > Task :poi-examples:test [0K[1morg.apache.poi.integration.TestXLSX2CSV[22m testInvalidFile()[32m PASSED[m [0K[1morg.apache.poi.integration.TestXLSX2CSV[22m testNoArgument()[32m PASSED[m > Task :poi-excelant:spotbugsTest > Task :poi-excelant:test [0K[1morg.apache.poi.ss.excelant.TestExcelAntSet[22m testSetWorkbookUtil()[32m PASSED[31m (6.4s)[m [0K[1morg.apache.poi.ss.excelant.TestExcelAntSet[22m testSetter()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil[22m testWorkbookConstructor()[32m PASSED[31m (6s)[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil[22m testAddFunctionInvalidClassName()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil[22m testGetEvaluatorWithUDF()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil[22m testSetDoubleValue()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.TestExcelAntSetDoubleCell[22m testSetDouble()[32m PASSED[31m (7.6s)[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil[22m testEvaluateCellWithError()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil[22m testLoadNotExistingFile()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil[22m testAddFunctionClassName()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil[22m testGetNonexistingDouble()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil[22m testAddFunction()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil[22m testFileName()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil[22m testGetNonexistingString()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil[22m testSetNotExistingSheet()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.TestBuildFile[22m testUdf()[32m PASSED[31m (6.2s)[m [0K[1morg.apache.poi.ss.excelant.TestBuildFile[22m testPrecision()[32m PASSED[m > Task :poi-examples:spotbugsTest > Task :poi-examples:test [0K[1morg.apache.poi.integration.TestXLSX2CSV[22m testSampleFile()[32m PASSED[31m (6.7s)[m [0K[1morg.apache.poi.integration.TestXLSX2CSV[22m testMinColumns()[32m PASSED[m [0K[1morg.apache.poi.integration.TestXLSX2CSV[22m testInvalidSampleFile()[32m PASSED[m [0K[1;32mSUCCESS: [39mExecuted 5 tests in 17s[m > 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 [0K[1morg.apache.poi.ss.excelant.TestBuildFile[22m testPassOnError()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.TestBuildFile[22m testMissingFilename()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.TestBuildFile[22m testAddHandlerWrongClass()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.TestBuildFile[22m testEvaluate()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.TestBuildFile[22m testFileNotFound()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.TestBuildFile[22m testEvaluateNoDetails()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.TestBuildFile[22m testAddHandlerFails()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.TestBuildFile[22m testPrecisionFail()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.TestBuildFile[22m testSetText()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.TestBuildFile[22m testAddHandler()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.TestBuildFile[22m testFailOnError()[32m PASSED[m > Task :poi-examples:jacocoTestReport > Task :poi:javadoc 2 warnings > Task :poi-excelant:test [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil[22m testGetEvaluatorXLSXWithFunction()[32m PASSED[31m (5.1s)[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil[22m testStringConstructor()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil[22m testEvaluateCellFailedPrecision()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil[22m testSetString()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil[22m testEvaluateCell()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil[22m testGetWorkbook()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil[22m testGetSheets()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil[22m testSetFormula()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil[22m testSetDate()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil[22m testGetEvaluator()[32m PASSED[m [0K[1morg.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil[22m testGetEvaluatorXLSX()[32m PASSED[m [0K[1;32mSUCCESS: [39mExecuted 49 tests in 22.6s[m > Task :poi-excelant:check > Task :poi-excelant:build > Task :poi-excelant:jacocoTestReport > Task :poi-integration:test [0K[1morg.apache.poi.stress.TestAllFiles > handleFile(String, FileHandlerKnown, String, Class, String)[22m initializationError[31m FAILED[31m java.lang.NullPointerException at org.apache.poi.stress.TestAllFiles.allfiles(TestAllFiles.java:148) [m [0K[1morg.apache.poi.stress.TestAllFiles > handleAdditional(String, FileHandlerKnown, String, Class, String)[22m initializationError[31m FAILED[31m java.lang.NullPointerException at org.apache.poi.stress.TestAllFiles.allfiles(TestAllFiles.java:148) [m [0K[1morg.apache.poi.stress.TestAllFiles > handleExtracting(String, FileHandlerKnown, String, Class, String)[22m initializationError[31m FAILED[31m java.lang.NullPointerException at org.apache.poi.stress.TestAllFiles.allfiles(TestAllFiles.java:148) [m [0K[1;31mFAILURE: [39mExecuted 3 tests in 16.1s (3 failed)[m 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]
