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

Changes:

[github] Avoid quadratic regex backtracking in Context, AbstractWordConverter 
and

[github] DataFormatter: adjust years to 4 digits in a loop rather than

[github] IMAGINARY/IMREAL of a number without a real part; COMPLEX with -1 or 0


------------------------------------------
[...truncated 1.98 MiB...]
> Task :poi-ooxml-lite:compileJava
> Task :poi-fuzz:compileJava
> Task :poi-fuzz:classes

> 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]

> Task :poi-fuzz:jar
> Task :poi-fuzz:javadoc SKIPPED
> Task :poi-fuzz:javadocJar
> Task :poi-fuzz:assemble

> Task :poi-integration:test



> Task :poi-fuzz:forbiddenApisMain
> Task :poi-fuzz:compileTestJava
> Task :poi-fuzz:testClasses
> Task :poi-fuzz:forbiddenApisTest
> Task :poi-fuzz:forbiddenApis

> Task :poi-excelant:spotbugsMain
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 B CT: Exception thrown in class 
org.apache.poi.ss.excelant.util.ExcelAntWorkbookUtil at new 
org.apache.poi.ss.excelant.util.ExcelAntWorkbookUtil(String) will leave the 
constructor. The object under construction remains partially initialized and 
may be vulnerable to Finalizer attacks.  At ExcelAntWorkbookUtil.java:[line 71]
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-integration:test
Error occurred during initialization of boot layer
java.lang.module.FindException: Module org.apache.poi.scratchpad not found, 
required by org.apache.poi.stress

> Task :poi:javadoc
> Task :poi-scratchpad:javadoc

> Task :poi-integration:test FAILED
Error occurred during initialization of boot layer
java.lang.module.FindException: Module org.apache.poi.scratchpad not found, 
required by org.apache.poi.stress
Error occurred during initialization of boot layer
java.lang.module.FindException: Module org.apache.poi.scratchpad not found, 
required by org.apache.poi.stress
Error occurred during initialization of boot layer
java.lang.module.FindException: Module org.apache.poi.scratchpad not found, 
required by org.apache.poi.stress
Error occurred during initialization of boot layer
java.lang.module.FindException: Module org.apache.poi.scratchpad not found, 
required by org.apache.poi.stress
Error occurred during initialization of boot layer
java.lang.module.FindException: Module org.apache.poi.scratchpad not found, 
required by org.apache.poi.stress
Error occurred during initialization of boot layer
java.lang.module.FindException: Module org.apache.poi.scratchpad not found, 
required by org.apache.poi.stress
Error occurred during initialization of boot layer
java.lang.module.FindException: Module org.apache.poi.scratchpad not found, 
required by org.apache.poi.stress
Error occurred during initialization of boot layer
java.lang.module.FindException: Module org.apache.poi.scratchpad not found, 
required by org.apache.poi.stress
Error occurred during initialization of boot layer
java.lang.module.FindException: Module org.apache.poi.scratchpad not found, 
required by org.apache.poi.stress
Error occurred during initialization of boot layer
java.lang.module.FindException: Module org.apache.poi.scratchpad not found, 
required by org.apache.poi.stress

FAILURE: Executed 0 tests in 20.6s


> Task :poi-examples:test
org.apache.poi.integration.TestXLSX2CSV testInvalidFile() 
PASSED
org.apache.poi.integration.TestXLSX2CSV testNoArgument() 
PASSED
org.apache.poi.integration.TestXLSX2CSV microBenchmark() 
SKIPPED
org.apache.poi.examples.hssf.eventusermodel.TestXLS2CSVmra 
testProcessNumberRecord() PASSED (7.3s)
org.apache.poi.examples.hssf.eventusermodel.TestXLS2CSVmra 
testProcess() PASSED
org.apache.poi.examples.hssf.eventusermodel.TestXLS2CSVmra 
test() PASSED
org.apache.poi.examples.hssf.eventusermodel.TestXLS2CSVmra 
testWithMinCols() PASSED
org.apache.poi.integration.TestXLSX2CSV testSampleFile() 
PASSED (9.2s)
org.apache.poi.integration.TestXLSX2CSV testMinColumns() 
PASSED
org.apache.poi.integration.TestXLSX2CSV 
testInvalidSampleFile() PASSED

> Task :poi-examples:spotbugsTest

> Task :poi-excelant:test
org.apache.poi.ss.excelant.TestExcelAntUserDefinedFunction 
testSetClassName() PASSED
org.apache.poi.ss.excelant.TestExcelAntUserDefinedFunction 
testSetFunction() PASSED
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.TestBuildFile 
testFailOnErrorNoDetails() PASSED (3.3s)
org.apache.poi.ss.excelant.TestExcelAntSet 
testSetWorkbookUtil() PASSED (7.8s)
org.apache.poi.ss.excelant.TestExcelAntSet testSetter() 
PASSED
org.apache.poi.ss.excelant.TestExcelAntSetDoubleCell 
testSetDouble() PASSED (7.1s)
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testWorkbookConstructor() PASSED (6.9s)
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.util.TestExcelAntWorkbookUtilFactory 
testGetNewWorkbookUtilInstance() PASSED (7.5s)
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtilFactory 
testVerifyEquivalence() PASSED
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.7s)
org.apache.poi.ss.excelant.TestBuildFile testPrecision() 
PASSED

> Task :poi-examples:test
org.apache.poi.integration.TestXLSX2CSV testDeepFile() 
PASSED (7.6s)

SUCCESS: Executed 11 tests in 27.8s (1 skipped)


> Task :poi-fuzz:test


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:spotbugsMain
> Task :poi-ooxml:javadoc

> Task :poi-excelant:spotbugsTest
M B PA: Primitive field 
org.apache.poi.ss.excelant.MockExcelAntWorkbookHandler.workbook is public and 
set from inside the class, which makes it too exposed. Consider making it 
private to limit external accessibility.  At 
MockExcelAntWorkbookHandler.java:[line 26]
M B PA: Primitive field 
org.apache.poi.ss.excelant.MockExcelAntWorkbookHandler.executed is public and 
set from inside the class, which makes it too exposed. Consider making it 
private to limit external accessibility.  At 
MockExcelAntWorkbookHandler.java:[line 25]

> Task :poi-fuzz:test
org.apache.poi.fuzz.TestFormulaParserFuzzer testNPE() 
PASSED (2.8s)
org.apache.poi.fuzz.TestFormulaParserFuzzer test() PASSED

SUCCESS: Executed 2 tests in 14s


> 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.util.TestExcelAntWorkbookUtil 
testGetEvaluatorXLSXWithFunction() PASSED (3.5s)
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testStringConstructor() PASSED
org.apache.poi.ss.excelant.TestBuildFile testFileNotFound() 
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.TestBuildFile 
testEvaluateNoDetails() 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.TestBuildFile 
testAddHandlerFails() PASSED
org.apache.poi.ss.excelant.util.TestExcelAntWorkbookUtil 
testGetEvaluatorXLSX() 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

SUCCESS: Executed 49 tests in 30.5s


> Task :poi-excelant:spotbugsTest
SpotBugs ended with exit code 1

> Task :poi-fuzz:spotbugsTest
> 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 D RV: Return value of 
org.apache.poi.hwmf.record.HwmfText$WmfExtTextOut.getText(Charset) ignored, but 
method has no side effect  At HWMFFileHandler.java:[line 55]

> Task :poi-fuzz:spotbugsMain
M D RV: Return value of org.apache.poi.hsmf.MAPIMessage.getAttachmentFiles() 
ignored, but method has no side effect  At POIHSMFFuzzer.java:[line 38]
M D DCN: Do not catch NullPointerException like in 
org.apache.poi.fuzz.POIFileHandlerFuzzer.fuzzerTestOneInput(byte[])  At 
POIFileHandlerFuzzer.java:[line 129]
M D DCN: Do not catch NullPointerException like in 
org.apache.poi.fuzz.POIXSSFFuzzer.fuzzerTestOneInput(byte[])  At 
POIXSSFFuzzer.java:[line 56]
M D RV: Return value of org.apache.poi.ooxml.POIXMLDocument.getPackage() 
ignored, but method has no side effect  At POIXWPFFuzzer.java:[line 46]
M D RV: Return value of 
org.apache.poi.xwpf.usermodel.XWPFDocument.getBodyElementsIterator() ignored, 
but method has no side effect  At POIXWPFFuzzer.java:[line 52]
M D DCN: Do not catch NullPointerException like in 
org.apache.poi.fuzz.POIVisioFuzzer.fuzzerTestOneInput(byte[])  At 
POIVisioFuzzer.java:[line 45]
M D RV: Return value of 
org.apache.poi.ooxml.extractor.POIXMLTextExtractor.getPackage() ignored, but 
method has no side effect  At POIFuzzer.java:[line 172]
SpotBugs ended with exit code 1

> Task :poi-integration:spotbugsTest
M D RV: Return value of 
org.apache.poi.hemf.record.emf.HemfText$EmfExtTextOutA.getText(Charset) 
ignored, but method has no side effect  At HEMFFileHandler.java:[line 47]
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 94]
M V MS: org.apache.poi.stress.TestAllFiles.SCAN_EXCLUDES_NOSCRATCHPAD should be 
package protected  At TestAllFiles.java:[line 122]
SpotBugs ended with exit code 1

> 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]
M D FE: Test for floating point equality in 
org.apache.poi.examples.xwpf.usermodel.UpdateEmbeddedDoc.checkUpdatedDoc()  At 
UpdateEmbeddedDoc.java:[line 165]
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 77]
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.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.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 107]
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

[Incubating] Problems report is available at: 
file://<https://ci-builds.apache.org/job/POI/job/POI-DSL-no-scratchpad/ws/build/reports/problems/problems-report.html>

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':poi-integration:test' (registered by plugin 
'org.gradle.jvm-test-suite').
> Test process encountered an unexpected problem.
   > Could not stop all services.
      > Could not dispatch message [MethodInvocation method: 
processTestDefinition(ClassTestDefinition(org.apache.poi.stress.BaseIntegrationTest))].
      > Could not dispatch message [MethodInvocation method: 
processTestDefinition(ClassTestDefinition(org.apache.poi.stress.ExcInfo))].
      > Could not dispatch message [MethodInvocation method: 
processTestDefinition(ClassTestDefinition(org.apache.poi.stress.FileHandlerKnown))].
      > Could not dispatch message [MethodInvocation method: 
processTestDefinition(ClassTestDefinition(org.apache.poi.stress.HeapDump))].
      > Could not dispatch message [MethodInvocation method: 
processTestDefinition(ClassTestDefinition(org.apache.poi.stress.OptimizedNullPrintStream))].
      > Could not dispatch message [MethodInvocation method: 
processTestDefinition(ClassTestDefinition(org.apache.poi.stress.POIXMLDocumentHandler))].
      > Could not dispatch message [MethodInvocation method: 
processTestDefinition(ClassTestDefinition(org.apache.poi.stress.SlideShowHandler))].
      > Could not dispatch message [MethodInvocation method: 
processTestDefinition(ClassTestDefinition(org.apache.poi.stress.SpreadsheetHandler))].
      > Could not dispatch message [MethodInvocation method: 
processTestDefinition(ClassTestDefinition(org.apache.poi.stress.StressMap))].
      > Could not dispatch message [MethodInvocation method: 
processTestDefinition(ClassTestDefinition(org.apache.poi.stress.StressTestUtils))].
      > Could not dispatch message [MethodInvocation method: 
processTestDefinition(ClassTestDefinition(org.apache.poi.stress.TestAllFiles))].

* Try:
> Check common problems 
> https://docs.gradle.org/9.8.1/userguide/java_testing.html#sec:java_testing_troubleshooting.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights from a Build Scan (powered by 
> Develocity).
> Get more help at https://help.gradle.org.

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

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/9.8.1/userguide/command_line_interface.html#sec:command_line_warnings
 in the Gradle documentation.

BUILD FAILED in 4m 11s
159 actionable tasks: 146 executed, 13 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