See <https://ci-builds.apache.org/job/POI/job/POI-DSL-1.18/23/display/redirect?page=changes>
Changes: [PJ Fanning] use spaces for indents [PJ Fanning] compile issue [Dominik Stadler] Avoid flaky tests with parallel execution One test stores and deletes files named "-saved.xls", so we need to prevent other tests from reading those [Dominik Stadler] Remove unused imports, remove unnecessary boxing of int-value and apply some other IDE suggestions [Dominik Stadler] Improve error message if formula cannot be parsed [Dominik Stadler] Add reproducer for possible OOM when reading pictures in XWPF [Dominik Stadler] Fix issues found when fuzzing Apache POI via Jazzer Throw RecordFormatException instead of NPE or assertion for cases that can be triggered by a malformed document [Dominik Stadler] Prevent one more case of allocating endlessly on invalid TNEF/HMEF/MAPI files Limit the number of attributes to 10,000 by default [Dominik Stadler] Bug 65854: Use revert() instead of close() when OPCPackage is opened read-only Also add tests, however it is not possible to verify that no logging takes place, so you have to use debugging to verify it. [Dominik Stadler] Fix issues found when fuzzing Apache POI via Jazzer Replace assertions with actual checks when input-data can trigger them. We would not handle such input-data properly otherwise. Sometimes logging seems a better option if the issue is not blocking us from parsing the document anyway [PJ Fanning] POI 5.2.2 release [PJ Fanning] POI 5.2.2 release [PJ Fanning] javadoc [PJ Fanning] update test [PJ Fanning] add xssf test (width/height) [PJ Fanning] upgrade gradle [PJ Fanning] revert: try to fix java 18 build issue ------------------------------------------ [...truncated 8.47 KB...] -rwxr-xr-x 1 root root 12416 Feb 15 09:39 jlink -rwxr-xr-x 1 root root 12416 Feb 15 09:39 jmap -rwxr-xr-x 1 root root 12384 Feb 15 09:39 jmod -rwxr-xr-x 1 root root 12392 Feb 15 09:39 jpackage -rwxr-xr-x 1 root root 12384 Feb 15 09:39 jps -rwxr-xr-x 1 root root 12424 Feb 15 09:39 jrunscript -rwxr-xr-x 1 root root 12392 Feb 15 09:39 jshell -rwxr-xr-x 1 root root 12424 Feb 15 09:39 jstack -rwxr-xr-x 1 root root 12384 Feb 15 09:39 jstat -rwxr-xr-x 1 root root 12416 Feb 15 09:39 jstatd -rwxr-xr-x 1 root root 12392 Feb 15 09:39 jwebserver -rwxr-xr-x 1 root root 12392 Feb 15 09:39 keytool -rwxr-xr-x 1 root root 12416 Feb 15 09:39 rmiregistry -rwxr-xr-x 1 root root 12392 Feb 15 09:39 serialver + /home/jenkins/tools/java/latest18/bin/java -version openjdk version "18" 2022-03-22 OpenJDK Runtime Environment (build 18+36-2087) OpenJDK 64-Bit Server VM (build 18+36-2087, mixed mode, sharing) + echo which java which java + which java /home/jenkins/tools/java/latest18/bin/java + java -version openjdk version "18" 2022-03-22 OpenJDK Runtime Environment (build 18+36-2087) OpenJDK 64-Bit Server VM (build 18+36-2087, mixed mode, sharing) + echo which javac which javac + which javac /home/jenkins/tools/java/latest18/bin/javac + javac -version javac 18 + echo Ant-Home: Ant-Home: + ls -al total 520 drwxr-xr-x 22 jenkins jenkins 4096 Mar 20 17:47 . drwxr-xr-x 3 jenkins jenkins 4096 Mar 11 03:17 .. -rw-r--r-- 1 jenkins jenkins 520 Jan 2 17:47 .asf.yaml drwxr-xr-x 3 jenkins jenkins 4096 Mar 13 18:23 build -rw-r--r-- 1 jenkins jenkins 31130 Mar 20 17:47 build.gradle -rw-r--r-- 1 jenkins jenkins 166493 Mar 20 17:47 build.xml -rw-r--r-- 1 jenkins jenkins 7017 Mar 20 17:47 doap_POI.rdf -rw-r--r-- 1 jenkins jenkins 3057 Feb 27 17:46 file-leak-detector.exclude -rw-r--r-- 1 jenkins jenkins 6229 Jan 2 17:47 forrest.properties -rw-r--r-- 1 jenkins jenkins 53 Jan 2 17:47 .gitattributes drwxr-xr-x 3 jenkins jenkins 4096 Jan 2 17:47 .github -rw-r--r-- 1 jenkins jenkins 334 Jan 2 17:47 .gitignore drwxr-xr-x 3 jenkins jenkins 4096 Jan 2 17:47 gradle drwxr-xr-x 5 jenkins jenkins 4096 Feb 20 18:05 .gradle -rw-r--r-- 1 jenkins jenkins 599 Jan 2 17:47 gradle.properties -rwxr-xr-x 1 jenkins jenkins 8070 Jan 2 17:47 gradlew -rw-r--r-- 1 jenkins jenkins 2763 Jan 2 17:47 gradlew.bat drwxr-xr-x 2 jenkins jenkins 4096 Feb 22 08:42 jenkins -rw-r--r-- 1 jenkins jenkins 167281 Jan 2 17:47 KEYS drwxr-xr-x 2 jenkins jenkins 4096 Jan 2 17:47 legal drwxr-xr-x 2 jenkins jenkins 4096 Jan 2 17:47 lib.stored drwxr-xr-x 3 jenkins jenkins 4096 Mar 20 17:47 osgi -rw-r--r-- 1 jenkins jenkins 4813 Jan 2 17:47 patch.xml drwxr-xr-x 5 jenkins jenkins 4096 Mar 13 18:23 poi drwxr-xr-x 4 jenkins jenkins 4096 Mar 13 18:23 poi-examples drwxr-xr-x 4 jenkins jenkins 4096 Mar 13 18:23 poi-excelant drwxr-xr-x 4 jenkins jenkins 4096 Mar 13 18:23 poi-integration drwxr-xr-x 4 jenkins jenkins 4096 Mar 13 18:23 poi-ooxml drwxr-xr-x 4 jenkins jenkins 4096 Mar 13 18:23 poi-ooxml-full drwxr-xr-x 3 jenkins jenkins 4096 Feb 22 08:44 poi-ooxml-lite drwxr-xr-x 4 jenkins jenkins 4096 Mar 20 17:47 poi-ooxml-lite-agent drwxr-xr-x 5 jenkins jenkins 4096 Mar 13 18:23 poi-scratchpad -rw-r--r-- 1 jenkins jenkins 4351 Jan 2 17:47 README.rst -rw-r--r-- 1 jenkins jenkins 232 Jan 2 17:47 SECURITY.md -rw-r--r-- 1 jenkins jenkins 190 Jan 2 17:47 settings.gradle drwxr-xr-x 4 jenkins jenkins 4096 Jan 2 17:47 src drwxr-xr-x 4 jenkins jenkins 4096 Mar 20 17:47 .svn drwxr-xr-x 15 jenkins jenkins 4096 Jan 2 17:47 test-data + echo which ant which ant + which ant /usr/bin/ant + ant -version Apache Ant(TM) version 1.10.5 compiled on March 28 2019 + echo <project default="test"><target name="test"><echo>Java ${ant.java.version}/${java.version}</echo><exec executable="javac"><arg value="-version"/></exec></target></project> + ant -f build.javacheck.xml -v Apache Ant(TM) version 1.10.5 compiled on March 28 2019 Buildfile: <https://ci-builds.apache.org/job/POI/job/POI-DSL-1.18/ws/build.javacheck.xml> Detected Java version: 18 in: /usr/local/asfpackages/java/openjdk-18-ea+36 Detected OS: Linux parsing buildfile <https://ci-builds.apache.org/job/POI/job/POI-DSL-1.18/ws/build.javacheck.xml> with URI = <https://ci-builds.apache.org/job/POI/job/POI-DSL-1.18/ws/build.javacheck.xml> Project base dir set to: <https://ci-builds.apache.org/job/POI/job/POI-DSL-1.18/ws/> Build sequence for target(s) `test' is [test] Complete build sequence is [test, ] test: parsing buildfile jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file [echo] Java 18/18 [exec] Current OS is Linux [exec] Executing 'javac' with arguments: [exec] '-version' [exec] [exec] The ' characters around the executable and arguments are [exec] not part of the command. [exec] javac 18 BUILD SUCCESSFUL Total time: 0 seconds + exit 0 [POI-DSL-1.18] $ /bin/sh -xe /tmp/jenkins74781881886615486.sh + touch --no-create build/*/build/test-results/TEST-*.xml build/*/build/test-results/test/TEST-*.xml [Gradle] - Launching build. [POI-DSL-1.18] $ <https://ci-builds.apache.org/job/POI/job/POI-DSL-1.18/ws/gradlew> -PjdkVersion=18 clean jenkins To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.4.1/userguide/gradle_daemon.html#sec:disabling_the_daemon. Daemon will be stopped at the end of the build Configuration on demand is an incubating feature. > Configure project : Trying to override old definition of datatype junit Run with reduced parallelism for CI build Run with reduced parallelism for CI build Run with reduced parallelism for CI build Run with reduced parallelism for CI build Run with reduced parallelism for CI build Run with reduced parallelism for CI build Run with reduced parallelism for CI build Run with reduced parallelism for CI build Run with reduced parallelism for CI build [Fatal Error] :1:38: Invalid encoding name "UTF8". > Task :poi-excelant:clean > Task :poi-integration:clean > Task :poi-ooxml-lite-agent:clean > Task :poi-examples:clean > Task :poi-scratchpad:clean > Task :clean > Task :poi-ooxml-lite:clean UP-TO-DATE > Task :poi-integration:compileJava NO-SOURCE > Task :poi-ooxml-lite:processTestResources NO-SOURCE > Task :poi-examples:processResources NO-SOURCE > Task :poi-integration:processResources NO-SOURCE > Task :poi-integration:classes UP-TO-DATE > Task :poi-ooxml:clean > Task :poi:clean > Task :poi-excelant:processResources > Task :poi-integration:processTestResources > Task :poi-ooxml:fixBatik > Task :poi-scratchpad:processResources > Task :poi-scratchpad:processTestResources NO-SOURCE > Task :poi:generateVersionJava > Task :poi-integration:jar > Task :poi-integration:javadoc SKIPPED > Task :poi-integration:javadocJar SKIPPED > Task :poi-integration:sourcesJar SKIPPED > Task :poi-integration:assemble > Task :poi-integration:forbiddenApisMain NO-SOURCE > Task :poi-integration:spotbugsMain NO-SOURCE > Task :poi-ooxml:processResources > Task :poi-ooxml:processTestResources > Task :poi-ooxml-full:clean > Task :poi-excelant:sourcesJar > Task :replaceVersion > Task :poi-excelant:processTestResources > Task :poi-ooxml-full:copy_xsds > Task :poi-examples:sourcesJar > Task :poi-examples:processTestResources NO-SOURCE > Task :poi-ooxml-full:generate_beans [ant:xmlbean] ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console... > Task :poi-ooxml:sourcesJar > Task :poi-scratchpad:sourcesJar > Task :poi-ooxml-full:generate_beans Time to build schema type system: 10.759 seconds > Task :poi-ooxml-lite-agent:compileJava > Task :poi-ooxml-lite-agent:compileJava9 SKIPPED > Task :poi-ooxml-lite-agent:cacheJava9 NO-SOURCE > Task :poi-ooxml-lite-agent:processResources NO-SOURCE > Task :poi-ooxml-lite-agent:classes > Task :poi-ooxml-lite-agent:jar > Task :poi-ooxml-lite-agent:javadoc SKIPPED > Task :poi-ooxml-lite-agent:javadocJar SKIPPED > Task :poi-ooxml-lite-agent:sourcesJar > Task :poi-ooxml-lite-agent:assemble > Task :poi-ooxml-lite-agent:forbiddenApisMain FAILED > Task :poi:compileJava <https://ci-builds.apache.org/job/POI/job/POI-DSL-1.18/ws/poi/src/main/java/org/apache/poi/util/GenericRecordUtil.java>:132: warning: [unchecked] unchecked cast m.putAll((Map<String,Supplier<?>>)baseMap); ^ required: Map<String,Supplier<?>> found: Object <https://ci-builds.apache.org/job/POI/job/POI-DSL-1.18/ws/poi/src/main/java/org/apache/poi/hssf/model/InternalWorkbook.java>:1120: warning: [removal] AccessControlException in java.security has been deprecated and marked for removal } catch (AccessControlException e) { ^ <https://ci-builds.apache.org/job/POI/job/POI-DSL-1.18/ws/poi/src/main/java/org/apache/poi/hssf/record/NameRecord.java>:466: warning: [deprecation] readAllContinuedRemainder() in RecordInputStream has been deprecated byte[] remainder = ris.readAllContinuedRemainder(); ^ > Task :poi-ooxml-full:generate_beans Time to generate code: 4.853 seconds > Task :poi:compileJava <https://ci-builds.apache.org/job/POI/job/POI-DSL-1.18/ws/poi/src/main/java/org/apache/poi/hssf/record/AbstractEscherHolderRecord.java>:62: warning: [deprecation] readAllContinuedRemainder() in RecordInputStream has been deprecated byte[] data = in.readAllContinuedRemainder(); ^ <https://ci-builds.apache.org/job/POI/job/POI-DSL-1.18/ws/poi/src/main/java/org/apache/poi/ss/usermodel/CellBase.java>:39: warning: [deprecation] setCellType(CellType) in Cell has been deprecated public final void setCellType(CellType cellType) { ^ <https://ci-builds.apache.org/job/POI/job/POI-DSL-1.18/ws/poi/src/main/java/org/apache/poi/ss/formula/BaseFormulaEvaluator.java>:225: warning: [deprecation] setCellType(CellType) in Cell has been deprecated cell.setCellType(cellType); ^ <https://ci-builds.apache.org/job/POI/job/POI-DSL-1.18/ws/poi/src/main/java/org/apache/poi/hssf/record/RecordFactoryInputStream.java>:335: warning: [deprecation] processContinueRecord(byte[]) in DrawingRecord has been deprecated _lastDrawingRecord.processContinueRecord(contRec.getData()); ^ <https://ci-builds.apache.org/job/POI/job/POI-DSL-1.18/ws/poi/src/main/java/org/apache/poi/poifs/nio/CleanerUtil.java>:78: warning: [removal] AccessController in java.security has been deprecated and marked for removal final Object hack = AccessController.doPrivileged( ^ <https://ci-builds.apache.org/job/POI/job/POI-DSL-1.18/ws/poi/src/main/java/org/apache/poi/poifs/nio/CleanerUtil.java>:178: warning: [removal] AccessController in java.security has been deprecated and marked for removal final Throwable error = AccessController.doPrivileged( ^ 9 warnings FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':poi-ooxml-lite-agent:forbiddenApisMain'. > IO problem while reading files with API signatures. * Try: > 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. * Get more help at https://help.gradle.org Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See https://docs.gradle.org/7.4.1/userguide/command_line_interface.html#sec:command_line_warnings BUILD FAILED in 55s 31 actionable tasks: 30 executed, 1 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 [Fast Archiver] Compressed 2.91 MB of artifacts by 54.7% relative to #17 Recording test results ERROR: Step ?Publish JUnit test result report? failed: No test report files were found. Configuration error? --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org