See <https://ci-builds.apache.org/job/POI/job/POI-DSL-Windows-1.17/625/display/redirect?page=changes>
Changes: [PJ Fanning] fix use of forbidden api [Dominik Stadler] Some new test-files need to be excluded for no-scratchpad execution [Dominik Stadler] XLS(X) -> CSV: Wrap formatted numbers in quotes if necessary e.g. German locale uses "comma" instead of point, e.g. 1,23 instead of 1.23 so we may need to quote formatted numbers ------------------------------------------ [...truncated 28.89 KB...] > Task :poi-scratchpad:spotbugsMain FROM-CACHE > Task :poi-scratchpad:spotbugsTest FROM-CACHE > Task :poi-scratchpad:test FROM-CACHE > Task :poi-scratchpad:check UP-TO-DATE > Task :poi-ooxml-full:sourceJar > Task :poi-scratchpad:getDeps > Task :poi-scratchpad:jacocoTestReport FROM-CACHE > Task :poi-ooxml-lite:compileOoxmlLite > Task :poi-ooxml-full:jar > Task :poi-ooxml-full:javadoc SKIPPED > Task :poi-ooxml-full:javadocJar SKIPPED > Task :poi-ooxml:compileJava FROM-CACHE > Task :poi-ooxml:compileJava9 FROM-CACHE > Task :poi-ooxml:classes > Task :poi:javadoc FROM-CACHE > Task :poi-ooxml-full:sourcesJar > Task :poi-ooxml-full:assemble > Task :poi-ooxml-full:forbiddenApisMain UP-TO-DATE > Task :poi-ooxml-full:compileTestJava NO-SOURCE > Task :poi-ooxml-full:processTestResources NO-SOURCE > Task :poi-ooxml-full:testClasses UP-TO-DATE > Task :poi-ooxml-full:forbiddenApisTest NO-SOURCE > Task :poi-ooxml-full:forbiddenApis UP-TO-DATE > Task :poi-ooxml-full:spotbugsMain SKIPPED > Task :poi-ooxml-full:spotbugsTest SKIPPED > Task :poi-ooxml-full:test NO-SOURCE > Task :poi-ooxml-full:check UP-TO-DATE > Task :poi-ooxml-full:build > Task :poi-ooxml:jar > Task :poi:javadocJar > Task :poi-ooxml-full:getDeps > Task :poi-examples:compileJava > Task :poi-excelant:compileJava > Task :poi-excelant:compileJava FROM-CACHE > Task :poi-ooxml:compileTestJava FROM-CACHE > Task :poi-ooxml:compileTest9 FROM-CACHE > Task :poi-examples:compileJava9 FROM-CACHE > Task :poi-ooxml:testClasses > Task :poi-examples:classes > Task :poi-examples:jar > Task :poi:assemble > Task :poi:build > Task :poi-examples:javadoc warning: URL https://docs.oracle.com/javase/8/docs/api/element-list was redirected to https://docs.oracle.com/en/java/javase/22/ -- Update the command-line options to suppress this warning. 1 warning > Task :poi-excelant:compileJava9 > Task :poi-ooxml:testJar > Task :poi-examples:javadocJar > Task :poi-excelant:compileJava9 FROM-CACHE > Task :poi-excelant:classes > Task :poi-examples:assemble > Task :poi-excelant:jar > Task :poi-excelant:javadoc FROM-CACHE > Task :poi-examples:forbiddenApisMain > Task :poi-excelant:javadocJar > Task :poi-excelant:assemble > Task :poi-excelant:forbiddenApisMain UP-TO-DATE > Task :poi-excelant:spotbugsMain FROM-CACHE > Task :poi-excelant:getDeps > Task :poi-ooxml-full:jacocoTestReport SKIPPED > Task :poi-scratchpad:javadoc FROM-CACHE > Task :poi-examples:getDeps > Task :poi-excelant:compileTestJava FROM-CACHE > Task :poi-excelant:compileTest9 FROM-CACHE > Task :poi-ooxml-lite:compileJava > Task :poi-examples:spotbugsMain M B CT: Exception thrown in class org.apache.poi.examples.xssf.streaming.HybridStreaming$1 at new org.apache.poi.examples.xssf.streaming.HybridStreaming$1(InputStream) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. At HybridStreaming.java:[line 43] > Task :poi-scratchpad:javadocJar > Task :poi-integration:compileTestJava F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.17\poi-integration\src\test\java\org\apache\poi\stress\OptimizedNullPrintStream.java:29: warning: [deprecation] NullPrintStream() in NullPrintStream has been deprecated class OptimizedNullPrintStream extends NullPrintStream { ^ 1 warning > Task :poi-integration:compileTest9 FROM-CACHE > Task :poi-examples:spotbugsMain M B PI: Class name ?>?1/1??? in source file ?>?2/1??? shadows the publicly available identifier from the Java Standard Library. At Alignment.java:[lines 35-69] 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] M B PI: Class name ?>?1/1??? in source file ?>?2/1??? shadows the publicly available identifier from the Java Standard Library. At ExcelComparator.java:[line 88] M B CT: Exception thrown in class org.apache.poi.examples.xwpf.usermodel.UpdateEmbeddedDoc at new org.apache.poi.examples.xwpf.usermodel.UpdateEmbeddedDoc(String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. At UpdateEmbeddedDoc.java:[line 83] 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] > Task :poi-examples:compileTestJava > Task :poi-examples:testClasses > Task :poi-examples:forbiddenApisTest > Task :poi-examples:forbiddenApis > Task :poi-examples:spotbugsMain M D RCN: Redundant nullcheck of wb which is known to be null in org.apache.poi.examples.ss.CellStyleDetails.main(String[]) Redundant null check at CellStyleDetails.java:[line 90] M D NP: Load of known null value in org.apache.poi.examples.ss.CellStyleDetails.main(String[]) At CellStyleDetails.java:[line 90] 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 D RCN: Redundant nullcheck of workbook which is known to be null in org.apache.poi.examples.ss.formula.UserDefinedFunctionExample.main(String[]) Redundant null check at UserDefinedFunctionExample.java:[line 82] M D NP: Load of known null value in org.apache.poi.examples.ss.formula.UserDefinedFunctionExample.main(String[]) At UserDefinedFunctionExample.java:[line 82] M B CT: Exception thrown in class org.apache.poi.examples.hsmf.Msg2txt at new org.apache.poi.examples.hsmf.Msg2txt(String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. At Msg2txt.java:[line 56] 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 B CT: Exception thrown in class org.apache.poi.examples.hssf.eventusermodel.XLS2CSVmra at new org.apache.poi.examples.hssf.eventusermodel.XLS2CSVmra(String, int) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. At XLS2CSVmra.java:[line 108] M B CT: Exception thrown in class org.apache.poi.examples.ss.LinkedDropDownLists at new org.apache.poi.examples.ss.LinkedDropDownLists(String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. At LinkedDropDownLists.java:[line 84] 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.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.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-examples:test OpenJDK 64-Bit Server VM warning: Ignoring option --illegal-access=warn; support was removed in 17.0 WARNING: Unknown module: org.junit.platform.commons specified to --add-exports WARNING: Unknown module: org.junit.platform.commons specified to --add-exports > Task :poi-examples:spotbugsTest H C RV: org.junit.jupiter.api.Assertions.assertThrows(Class, Executable) not thrown in org.apache.poi.integration.TestXLSX2CSV.testInvalidSampleFile() At TestXLSX2CSV.java:[line 107] SpotBugs ended with exit code 1 > Task :poi-excelant:testClasses > Task :poi-excelant:forbiddenApisTest UP-TO-DATE > Task :poi-excelant:forbiddenApis UP-TO-DATE > Task :poi-excelant:spotbugsTest FROM-CACHE > Task :poi-excelant:testJar > Task :poi-excelant:test FROM-CACHE > Task :poi-excelant:check UP-TO-DATE > Task :poi-excelant:build > Task :poi-examples:test [0K[1morg.apache.poi.examples.hssf.eventusermodel.TestXLS2CSVmra[22m testProcessNumberRecord()[31m FAILED[31m (3.5s)[31m org.opentest4j.AssertionFailedError: expected: < ????1 [1]: ????2 [2]: ????3 [3]: > but was: < ????1 [1]: ????2 [2]: ????3 [3]: > at app//org.apache.poi.examples.hssf.eventusermodel.TestXLS2CSVmra.testProcessNumberRecord(TestXLS2CSVmra.java:88) [m [0K[1morg.apache.poi.examples.hssf.eventusermodel.TestXLS2CSVmra[22m testProcess()[31m FAILED[31m org.opentest4j.AssertionFailedError: expected: < First Sheet [1]: "Test spreadsheet" "2nd row","2nd row 2nd column" "This one is red" Sheet Number 2 [2]: "Start of 2nd sheet" "Sheet 2 row 2" "I'm in bold blue, on a yellow background" "cb=1","cb=10","cb=2","cb=sum" 1,10,2,13 Sheet3 [3]: > but was: < First Sheet [1]: "Test spreadsheet" "2nd row","2nd row 2nd column" "This one is red" Sheet Number 2 [2]: "Start of 2nd sheet" "Sheet 2 row 2" "I'm in bold blue, on a yellow background" "cb=1","cb=10","cb=2","cb=sum" 1,10,2,13 Sheet3 [3]: > at app//org.apache.poi.examples.hssf.eventusermodel.TestXLS2CSVmra.testProcess(TestXLS2CSVmra.java:56) [m [0K[1morg.apache.poi.examples.hssf.eventusermodel.TestXLS2CSVmra[22m test()[32m PASSED[m [0K[1morg.apache.poi.examples.hssf.eventusermodel.TestXLS2CSVmra[22m testWithMinCols()[32m PASSED[m > Task :poi-excelant:jacocoTestReport FROM-CACHE > Task :poi-integration:testClasses > Task :poi-integration:forbiddenApisTest > Task :poi-integration:forbiddenApis > Task :poi-examples:test OpenJDK 64-Bit Server VM warning: Ignoring option --illegal-access=warn; support was removed in 17.0 WARNING: Unknown module: org.junit.platform.commons specified to --add-exports WARNING: Unknown module: org.junit.platform.commons specified to --add-exports [0K[1morg.apache.poi.integration.TestXLSX2CSV[22m testInvalidFile()[32m PASSED[m [0K[1morg.apache.poi.integration.TestXLSX2CSV[22m testNoArgument()[32m PASSED[m [0K[1morg.apache.poi.integration.TestXLSX2CSV[22m testSampleFile()[32m PASSED[31m (5.5s)[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;31mFAILURE: [39mExecuted 9 tests in 35.5s (2 failed)[m 9 tests completed, 2 failed > Task :poi-examples:test FAILED > Task :poi-integration:spotbugsTest M D RV: Return value of org.apache.poi.extractor.POIOLE2TextExtractor.getRoot() ignored, but method has no side effect At AbstractFileHandler.java:[line 113] M B PI: Class name ?>?1/1??? in source file ?>?2/1??? shadows the publicly available identifier from the Java Standard Library. In FileHandler.java M V MS: org.apache.poi.stress.AbstractFileHandler.EXPECTED_EXTRACTOR_FAILURES is a mutable collection which should be package protected At AbstractFileHandler.java:[line 47] 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 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':poi-examples:test'. > There were failing tests. See the report at: > file:///F:/jenkins/jenkins-home/712657a4/workspace/POI/POI-DSL-Windows-1.17/poi-examples/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.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. BUILD FAILED in 11m 22s 114 actionable tasks: 68 executed, 37 from cache, 9 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' Archiving artifacts Recording test results [Checks API] No suitable checks publisher found. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org