Build failed in Jenkins: spring-extensions-v7 #36

Shibboleth Jenkins noreply at shibboleth.net
Fri Jul 22 15:28:59 UTC 2022


See <http://127.0.0.1:1583/jenkins/job/spring-extensions-v7/36/display/redirect?page=changes>

Changes:

[Rod Widdowson] JSPT-108 ServiceableComponent should implement AutoClose


------------------------------------------
Started by an SCM change
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building remotely on EC2 (I2) - CentOS7 (i-04008bd7ea2766fb5) (CentOS7) in workspace <http://127.0.0.1:1583/jenkins/job/spring-extensions-v7/ws/>
The recommended git tool is: NONE
No credentials specified
Cloning the remote Git repository
Cloning repository https://git.shibboleth.net/git/spring-extensions
 > git init <http://127.0.0.1:1583/jenkins/job/spring-extensions-v7/ws/> # timeout=10
Fetching upstream changes from https://git.shibboleth.net/git/spring-extensions
 > git --version # timeout=10
 > git --version # 'git version 1.8.3.1'
 > git fetch --tags --progress https://git.shibboleth.net/git/spring-extensions +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url https://git.shibboleth.net/git/spring-extensions # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
 > git rev-parse refs/remotes/origin/main^{commit} # timeout=10
Checking out Revision 24bb2fe4ded1a70ad78e273281b6eb02af0b18b4 (refs/remotes/origin/main)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 24bb2fe4ded1a70ad78e273281b6eb02af0b18b4 # timeout=10
Commit message: "JSPT-108 ServiceableComponent should implement AutoClose"
 > git rev-list --no-walk 0a36c92182d2c26e68b4d4ea3f6e6f79baf2d67c # timeout=10
Parsing POMs
Downloaded artifact https://build.shibboleth.net/maven/snapshots/net/shibboleth/parent/17.0.0-SNAPSHOT/maven-metadata.xml
Failed to transfer Could not find metadata net.shibboleth:parent:17.0.0-SNAPSHOT/maven-metadata.xml in shib-thirdparty-snapshot (https://build.shibboleth.net/maven/thirdparty-snapshots/)
Established TCP socket on 44985
maven35-agent.jar already up to date
maven35-interceptor.jar already up to date
maven3-interceptor-commons.jar already up to date
[spring-extensions-v7] $ /opt/jdk/amazon-17/bin/java -cp /opt/jenkins/maven35-agent.jar:/opt/maven_home/boot/plexus-classworlds-2.6.0.jar:/opt/maven_home/conf/logging jenkins.maven3.agent.Maven35Main /opt/maven_home /tmp/remoting.jar /opt/jenkins/maven35-interceptor.jar /opt/jenkins/maven3-interceptor-commons.jar 44985
<===[JENKINS REMOTING CAPACITY]===>   channel started
Executing Maven:  -B -f <http://127.0.0.1:1583/jenkins/job/spring-extensions-v7/ws/pom.xml> -V -B --update-snapshots -Dno-check-m2 clean install
Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537)
Maven home: /efs/optjava/maven/apache-maven-3.8.4
Java version: 17.0.4, vendor: Amazon.com Inc., runtime: /efs/optjava/jdk/amazon/amazon-corretto-17.0.4.8.1-linux-x64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-1160.66.1.el7.x86_64", arch: "amd64", family: "unix"
[INFO] Scanning for projects...
[INFO] Downloading from shib-thirdparty-snapshot: https://build.shibboleth.net/maven/thirdparty-snapshots/net/shibboleth/parent/17.0.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloading from shib-snapshot: https://build.shibboleth.net/maven/snapshots/net/shibboleth/parent/17.0.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded from shib-snapshot: https://build.shibboleth.net/maven/snapshots/net/shibboleth/parent/17.0.0-SNAPSHOT/maven-metadata.xml (601 B at 1.6 kB/s)
[INFO] 
[INFO] ----------------< net.shibboleth.ext:spring-extensions >----------------
[INFO] Building Spring Framework Extension 7.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] Downloading from shib-snapshot: https://build.shibboleth.net/maven/snapshots/net/shibboleth/utilities/java-support/9.0.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloading from shib-thirdparty-snapshot: https://build.shibboleth.net/maven/thirdparty-snapshots/net/shibboleth/utilities/java-support/9.0.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded from shib-snapshot: https://build.shibboleth.net/maven/snapshots/net/shibboleth/utilities/java-support/9.0.0-SNAPSHOT/maven-metadata.xml (1.7 kB at 127 kB/s)
[INFO] 
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ spring-extensions ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (maven-version) @ spring-extensions ---
[INFO] 
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ spring-extensions ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 5 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ spring-extensions ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 90 source files to <http://127.0.0.1:1583/jenkins/job/spring-extensions-v7/ws/target/classes>
[INFO] <http://127.0.0.1:1583/jenkins/job/spring-extensions-v7/ws/src/main/java/net/shibboleth/ext/spring/velocity/VelocityView.java>: <http://127.0.0.1:1583/jenkins/job/spring-extensions-v7/ws/src/main/java/net/shibboleth/ext/spring/velocity/VelocityView.java> uses or overrides a deprecated API.
[INFO] <http://127.0.0.1:1583/jenkins/job/spring-extensions-v7/ws/src/main/java/net/shibboleth/ext/spring/velocity/VelocityView.java>: Recompile with -Xlint:deprecation for details.
[INFO] <http://127.0.0.1:1583/jenkins/job/spring-extensions-v7/ws/src/main/java/net/shibboleth/ext/spring/service/ClassBasedServiceStrategy.java>: <http://127.0.0.1:1583/jenkins/job/spring-extensions-v7/ws/src/main/java/net/shibboleth/ext/spring/service/ClassBasedServiceStrategy.java> uses unchecked or unsafe operations.
[INFO] <http://127.0.0.1:1583/jenkins/job/spring-extensions-v7/ws/src/main/java/net/shibboleth/ext/spring/service/ClassBasedServiceStrategy.java>: Recompile with -Xlint:unchecked for details.
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] <http://127.0.0.1:1583/jenkins/job/spring-extensions-v7/ws/src/main/java/net/shibboleth/ext/spring/factory/ProxiedFactoryBean.java>:[115,61] incompatible types: try-with-resources not applicable to variable type
    (net.shibboleth.utilities.java.support.service.ServiceableComponent<org.springframework.context.ApplicationContext> cannot be converted to java.lang.AutoCloseable)
[ERROR] <http://127.0.0.1:1583/jenkins/job/spring-extensions-v7/ws/src/main/java/net/shibboleth/ext/spring/config/ReloadableScope.java>:[63,61] incompatible types: try-with-resources not applicable to variable type
    (net.shibboleth.utilities.java.support.service.ServiceableComponent<org.springframework.context.ApplicationContext> cannot be converted to java.lang.AutoCloseable)
[INFO] 2 errors 
[INFO] -------------------------------------------------------------
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  9.910 s
[INFO] Finished at: 2022-07-22T15:28:55Z
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project spring-extensions: Compilation failure: Compilation failure:
[ERROR] <http://127.0.0.1:1583/jenkins/job/spring-extensions-v7/ws/src/main/java/net/shibboleth/ext/spring/factory/ProxiedFactoryBean.java>:[115,61] incompatible types: try-with-resources not applicable to variable type
[ERROR] (net.shibboleth.utilities.java.support.service.ServiceableComponent<org.springframework.context.ApplicationContext> cannot be converted to java.lang.AutoCloseable)
[ERROR] <http://127.0.0.1:1583/jenkins/job/spring-extensions-v7/ws/src/main/java/net/shibboleth/ext/spring/config/ReloadableScope.java>:[63,61] incompatible types: try-with-resources not applicable to variable type
[ERROR] (net.shibboleth.utilities.java.support.service.ServiceableComponent<org.springframework.context.ApplicationContext> cannot be converted to java.lang.AutoCloseable)
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Sending e-mails to: commits at shibboleth.net
channel stopped
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/target/surefire-reports/testng-results.xml
Did not find any matching files.


More information about the commits mailing list