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

Changes:

[Dominik Stadler] Exception text changed for some file

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

Fix check after commit fcaac5073716b98cba26c0655f06f20e310fd85e
so that other IndexOutOfBoundsExceptions are still thrown out

Also free resources when throwing an exception in the constructor

[Dominik Stadler] Add some missing schema-files to ooxml-lite

This should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62255

[Dominik Stadler] Bug 66425: Avoid Exceptions found via oss-fuzz

We try to avoid throwing ConcurrentModificationException,
but it was possible to trigger one here with a specially
crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62861

[Dominik Stadler] Bug 66425: Avoid Exceptions found via oss-fuzz

We try to avoid throwing ClassCastExceptions,
but it was possible to trigger one here with a specially
crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62795

[Dominik Stadler] Bug 66425: Avoid Exceptions found via oss-fuzz

We try to avoid throwing NullPointerExceptions or endless allocations,
but it was possible to trigger one here with a specially
crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62745

[Dominik Stadler] Bug 66425: Avoid Exceptions found via oss-fuzz

We try to avoid throwing NullPointerExceptions or endless allocations,
but it was possible to trigger one here with a specially
crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62706

[Dominik Stadler] Bug 66425: Avoid Exceptions found via oss-fuzz

We try to avoid throwing NullPointerExceptions or endless allocations,
but it was possible to trigger one here with a specially
crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62697

[Dominik Stadler] Bug 66425: Avoid a NullPointerException found via oss-fuzz

We try to avoid throwing NullPointerException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62626

[Dominik Stadler] Add some missing schema-files to ooxml-lite

This should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62255

[PJ Fanning] update changes

[PJ Fanning] add internal annotation

[Dominik Stadler] Assert that deleting test-files and entries works in tests

[Dominik Stadler] Adjust order of testing and use try-with-resources

[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

Also improve some exception messages

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62698
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62606
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62685

[PJ Fanning] [bug-67579] do not close stream when reading XSSFWorkbook based on 
stream 


------------------------------------------
[...truncated 8.01 KB...]
-rwxr-xr-x 1 root root 12384 Jun  8 22:33 jps
-rwxr-xr-x 1 root root 12424 Jun  8 22:33 jrunscript
-rwxr-xr-x 1 root root 12392 Jun  8 22:33 jshell
-rwxr-xr-x 1 root root 12424 Jun  8 22:33 jstack
-rwxr-xr-x 1 root root 12384 Jun  8 22:33 jstat
-rwxr-xr-x 1 root root 12392 Jun  8 22:33 jstatd
-rwxr-xr-x 1 root root 12392 Jun  8 22:33 jwebserver
-rwxr-xr-x 1 root root 12392 Jun  8 22:33 keytool
-rwxr-xr-x 1 root root 12416 Jun  8 22:33 rmiregistry
-rwxr-xr-x 1 root root 12392 Jun  8 22:33 serialver
+ /home/jenkins/tools/java/latest22/bin/java -version
openjdk version "22-ea" 2024-03-19
OpenJDK Runtime Environment (build 22-ea+1-7)
OpenJDK 64-Bit Server VM (build 22-ea+1-7, mixed mode, sharing)
+ echo which java
which java
+ which java
/home/jenkins/tools/java/latest22/bin/java
+ java -version
openjdk version "22-ea" 2024-03-19
OpenJDK Runtime Environment (build 22-ea+1-7)
OpenJDK 64-Bit Server VM (build 22-ea+1-7, mixed mode, sharing)
+ echo which javac
which javac
+ which javac
/home/jenkins/tools/java/latest22/bin/javac
+ javac -version
javac 22-ea
+ echo Ant-Home:
Ant-Home:
+ ls -al
total 528
drwxr-xr-x 21 jenkins jenkins   4096 Oct  8 03:36 .
drwxr-xr-x  5 jenkins jenkins   4096 Oct  1 16:03 ..
-rw-r--r--  1 jenkins jenkins    520 Aug 13 03:36 .asf.yaml
-rw-r--r--  1 jenkins jenkins  30456 Oct  1 03:36 build.gradle
-rw-r--r--  1 jenkins jenkins 168668 Oct  1 03:36 build.xml
-rw-r--r--  1 jenkins jenkins   7363 Oct  1 03:36 doap_POI.rdf
-rw-r--r--  1 jenkins jenkins   3261 Aug 13 03:36 file-leak-detector.exclude
-rw-r--r--  1 jenkins jenkins   6229 Aug 13 03:36 forrest.properties
-rw-r--r--  1 jenkins jenkins     53 Aug 13 03:36 .gitattributes
drwxr-xr-x  3 jenkins jenkins   4096 Aug 13 03:36 .github
-rw-r--r--  1 jenkins jenkins    396 Aug 13 03:36 .gitignore
drwxr-xr-x  3 jenkins jenkins   4096 Aug 13 03:36 gradle
drwxr-xr-x  5 jenkins jenkins   4096 Aug 27 03:39 .gradle
-rw-r--r--  1 jenkins jenkins    599 Aug 13 03:36 gradle.properties
-rwxr-xr-x  1 jenkins jenkins   9125 Oct  1 03:36 gradlew
-rw-r--r--  1 jenkins jenkins   2868 Aug 13 03:36 gradlew.bat
drwxr-xr-x  2 jenkins jenkins   4096 Aug 13 03:36 jenkins
-rw-r--r--  1 jenkins jenkins 167516 Aug 13 03:36 KEYS
drwxr-xr-x  2 jenkins jenkins   4096 Aug 13 03:36 legal
drwxr-xr-x  2 jenkins jenkins   4096 Aug 13 03:36 lib.stored
drwxr-xr-x  3 jenkins jenkins   4096 Oct  1 03:36 osgi
-rw-r--r--  1 jenkins jenkins   4813 Aug 13 03:36 patch.xml
drwxr-xr-x  4 jenkins jenkins   4096 Sep 17 03:36 poi
drwxr-xr-x  3 jenkins jenkins   4096 Aug 13 03:36 poi-examples
drwxr-xr-x  3 jenkins jenkins   4096 Sep 17 03:36 poi-excelant
drwxr-xr-x  3 jenkins jenkins   4096 Sep 17 03:36 poi-integration
drwxr-xr-x  3 jenkins jenkins   4096 Sep 17 03:36 poi-ooxml
drwxr-xr-x  3 jenkins jenkins   4096 Aug 13 03:36 poi-ooxml-full
drwxr-xr-x  3 jenkins jenkins   4096 Oct  8 03:36 poi-ooxml-lite
drwxr-xr-x  3 jenkins jenkins   4096 Sep 17 03:36 poi-ooxml-lite-agent
drwxr-xr-x  4 jenkins jenkins   4096 Aug 13 03:36 poi-scratchpad
-rw-r--r--  1 jenkins jenkins   4351 Aug 13 03:36 README.rst
-rw-r--r--  1 jenkins jenkins    232 Aug 13 03:36 SECURITY.md
-rw-r--r--  1 jenkins jenkins    190 Aug 13 03:36 settings.gradle
drwxr-xr-x  4 jenkins jenkins   4096 Aug 13 03:37 src
drwxr-xr-x  4 jenkins jenkins   4096 Oct  8 03:36 .svn
drwxr-xr-x 15 jenkins jenkins   4096 Aug 13 03:36 test-data
-rw-r--r--  1 jenkins jenkins   3803 Aug 13 03:36 wrapper.gradle
+ 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.22/ws/build.javacheck.xml>
Detected Java version: 22 in: /usr/local/asfpackages/java/openjdk-22-ea+1
Detected OS: Linux
parsing buildfile 
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.22/ws/build.javacheck.xml> 
with URI = 
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.22/ws/build.javacheck.xml>
Project base dir set to: 
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.22/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 22/22-ea
     [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 22-ea

BUILD SUCCESSFUL
Total time: 0 seconds
+ exit 0
ERROR: Not all environment variables could be successfully injected. Check for 
similarly-named environment variables.
[POI-DSL-1.22] $ /bin/sh -xe /tmp/jenkins16452474250389230624.sh
+ touch --no-create build/*/build/test-results/TEST-*.xml 
build/*/build/test-results/test/TEST-*.xml
[Gradle] - Launching build.
ERROR: Not all environment variables could be successfully injected. Check for 
similarly-named environment variables.
[POI-DSL-1.22] $ 
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.22/ws/gradlew> 
-PjdkVersion=22 --refresh-dependencies clean jenkins
To honour the JVM settings for this build a single-use Daemon process will be 
forked. For more on this, please refer to 
https://docs.gradle.org/8.3/userguide/gradle_daemon.html#sec:disabling_the_daemon
 in the Gradle documentation.
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
Path for java installation '/usr/lib/jvm/openjdk-11' (Common Linux Locations) 
does not contain a java executable

> Task :poi-excelant:clean UP-TO-DATE
> Task :poi-ooxml:clean
> Task :poi-ooxml-lite:clean UP-TO-DATE
> Task :poi-ooxml-lite-agent:clean UP-TO-DATE
> Task :clean UP-TO-DATE
> Task :poi-ooxml-full:clean
> Task :poi-scratchpad:clean UP-TO-DATE
> Task :poi:clean UP-TO-DATE
> Task :poi-examples:clean UP-TO-DATE
> Task :poi-integration:clean UP-TO-DATE
> Task :poi-ooxml:cleanupBatik UP-TO-DATE
> Task :poi-examples:processResources NO-SOURCE
> Task :poi-integration:compileJava NO-SOURCE
> Task :poi-integration:processResources NO-SOURCE
> Task :poi-integration:classes UP-TO-DATE
> Task :poi-scratchpad:processResources
> Task :poi-excelant:processResources
> Task :poi-integration:jar
> Task :poi:generateVersionJava
> Task :poi-integration:javadoc SKIPPED
> Task :poi-scratchpad:processTestResources NO-SOURCE
> Task :poi-integration:javadocJar
> Task :poi-integration:sourcesJar SKIPPED
> Task :poi-integration:assemble
> Task :poi-integration:forbiddenApisMain NO-SOURCE
> Task :poi-ooxml-full:copy_xsds
> Task :poi-ooxml:fixBatik
> Task :poi-integration:processTestResources
> Task :poi-integration:spotbugsMain NO-SOURCE
> Task :poi-integration:getDeps NO-SOURCE
> Task :poi-ooxml-lite:generateModuleInfo
> Task :poi-ooxml-lite:processTestResources NO-SOURCE
> Task :poi-ooxml:processResources
> Task :poi-ooxml:processTestResources
> Task :poi-excelant:sourcesJar
> Task :poi-excelant:processTestResources
> Task :poi-examples:sourcesJar
> Task :poi-examples:processTestResources NO-SOURCE
> Task :replaceVersion

> Task :poi-ooxml-full:generate_beans
SchemaCompiler  Metadata LOAD:org/apache/xmlbeans/metadata 
GEN:org/apache/poi/schemas/ooxml
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-lite-agent:compileJava
> Task :poi-ooxml-lite-agent:compileJava9
> 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-scratchpad:sourcesJar
> Task :poi-ooxml-lite-agent:forbiddenApisMain FAILED
> Task :poi-ooxml:sourcesJar

> Task :poi-ooxml-full:generate_beans
Time to build schema type system: 6.263 seconds
Time to generate code: 8.995 seconds

> Task :poi:compileJava
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.22/ws/poi/src/main/java/org/apache/poi/hssf/model/InternalWorkbook.java>:1141:
 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.22/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.22/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.22/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.22/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();
                              ^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.22/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.22/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.22/ws/poi/src/main/java/org/apache/poi/poifs/nio/CleanerUtil.java>:79:
 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.22/ws/poi/src/main/java/org/apache/poi/poifs/nio/CleanerUtil.java>:179:
 warning: [removal] AccessController in java.security has been deprecated and 
marked for removal
            final Throwable error = AccessController.doPrivileged(
                                    ^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.22/ws/poi/src/main/java/org/apache/poi/util/ExceptionUtil.java>:38:
 warning: [removal] ThreadDeath in java.lang has been deprecated and marked for 
removal
                || throwable instanceof ThreadDeath
                                        ^
10 warnings

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':poi-ooxml-lite-agent:forbiddenApisMain'.
> The class file format of 
> '<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.22/ws/poi-ooxml-lite-agent/build/classes/java/main/org/apache/poi/ooxml/lite/OOXMLLiteAgent$ClazzLogger.class'>
>  is too recent to be parsed by ASM.

* 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 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 1m 27s
35 actionable tasks: 26 executed, 9 up-to-date
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as 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.
ERROR: Step ?Publish JUnit test result report? failed: No test report files 
were found. Configuration error?
ERROR: Not all environment variables could be successfully injected. Check for 
similarly-named environment variables.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to