Started by user Matthias Mueller [Pipeline] Start of Pipeline [Pipeline] node Running on Jenkins in /var/lib/jenkins/workspace/appNG_Authentication [Pipeline] { [Pipeline] tool [Pipeline] tool [Pipeline] stage [Pipeline] { (git clone) [Pipeline] git The recommended git tool is: NONE No credentials specified > git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/appNG_Authentication/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:appNG/appng-authentication.git # timeout=10 Fetching upstream changes from git@github.com:appNG/appng-authentication.git > git --version # timeout=10 > git --version # 'git version 2.30.2' > git fetch --tags --force --progress -- git@github.com:appNG/appng-authentication.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/remotes/origin/appng-authentication-1.14.x^{commit} # timeout=10 Checking out Revision b6b875f07346b10a2b84d596fcb35a664c214f4e (refs/remotes/origin/appng-authentication-1.14.x) > git config core.sparsecheckout # timeout=10 > git checkout -f b6b875f07346b10a2b84d596fcb35a664c214f4e # timeout=10 > git branch -a -v --no-abbrev # timeout=10 > git branch -D appng-authentication-1.14.x # timeout=10 > git checkout -b appng-authentication-1.14.x b6b875f07346b10a2b84d596fcb35a664c214f4e # timeout=10 Commit message: "AUTH-36" > git rev-list --no-walk cc0813bc7a5083e711946807c5ad819c007cbe83 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Maven Build) [Pipeline] sh + /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.6.3/bin/mvn clean deploy [INFO] Scanning for projects... [INFO] [INFO] -------------------< org.appng:appng-authentication >------------------- [INFO] Building appNG Authentication 1.14.2-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ appng-authentication --- [INFO] Deleting /var/lib/jenkins/workspace/appNG_Authentication/target [INFO] [INFO] --- appng-maven-plugin:1.24.5:generateApplicationConstants (applicationConstants) @ appng-authentication --- [INFO] generate application constants for [/var/lib/jenkins/workspace/appNG_Authentication/application-home/application.xml, org.appng.application.authentication.AuthenticationSettings, /var/lib/jenkins/workspace/appNG_Authentication/target/generated-sources/constants] [INFO] [INFO] --- appng-maven-plugin:1.24.5:generateMessageConstants (messageConstants) @ appng-authentication --- [INFO] generate message constants for [/var/lib/jenkins/workspace/appNG_Authentication/application-home/dictionary/authentication-messages.properties, org.appng.application.authentication.MessageConstants, /var/lib/jenkins/workspace/appNG_Authentication/target/generated-sources/constants] [INFO] [INFO] --- build-helper-maven-plugin:3.0.0:add-source (default) @ appng-authentication --- [INFO] Source directory: /var/lib/jenkins/workspace/appNG_Authentication/target/generated-sources/constants added. [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ appng-authentication --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/appNG_Authentication/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.13.0:compile (default-compile) @ appng-authentication --- [INFO] Recompiling the module because of changed source code. [INFO] Compiling 14 source files with javac [debug release 17] to target/classes [INFO] /var/lib/jenkins/workspace/appNG_Authentication/src/main/java/org/appng/application/authentication/webform/PasswordReset.java: /var/lib/jenkins/workspace/appNG_Authentication/src/main/java/org/appng/application/authentication/webform/PasswordReset.java uses or overrides a deprecated API. [INFO] /var/lib/jenkins/workspace/appNG_Authentication/src/main/java/org/appng/application/authentication/webform/PasswordReset.java: Recompile with -Xlint:deprecation for details. [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ appng-authentication --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 9 resources [INFO] [INFO] --- maven-compiler-plugin:3.13.0:testCompile (default-testCompile) @ appng-authentication --- [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 12 source files with javac [debug release 17] to target/test-classes [INFO] /var/lib/jenkins/workspace/appNG_Authentication/src/test/java/org/appng/application/authentication/webform/PasswordResetTest.java: /var/lib/jenkins/workspace/appNG_Authentication/src/test/java/org/appng/application/authentication/webform/PasswordResetTest.java uses or overrides a deprecated API. [INFO] /var/lib/jenkins/workspace/appNG_Authentication/src/test/java/org/appng/application/authentication/webform/PasswordResetTest.java: Recompile with -Xlint:deprecation for details. [INFO] [INFO] --- maven-surefire-plugin:3.3.0:test (default-test) @ appng-authentication --- [INFO] Using auto detected provider org.apache.maven.surefire.junit4.JUnit4Provider [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running org.appng.application.authentication.digest.DigestLoginTest Jul 12, 2024 4:34:38 PM ch.sla.jdbcperflogger.Logger info INFO: Using config file jdbcperflogger-fallback.xml 2024-07-12 16:34:42,538 ERROR [main] org.appng.core.security.DigestValidator: Encrypted part does not match. Encrypted part is F219934A7F3132CF326DDC6DDE0F28F2, but should be F37F2B7102747F193A3E803311AAB682 2024-07-12 16:34:42,539 ERROR [main] org.appng.core.security.DigestValidator: Digest validation failed. [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.522 s -- in org.appng.application.authentication.digest.DigestLoginTest [INFO] Running org.appng.application.authentication.ntlm.NtlmLoginTest 2024-07-12 16:34:45,161 ERROR [main] org.appng.core.service.CoreService: No valid group membership found for user 'subject-42' [WARNING] Tests run: 4, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 2.485 s -- in org.appng.application.authentication.ntlm.NtlmLoginTest [INFO] Running org.appng.application.authentication.webform.LogoutUserTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.983 s -- in org.appng.application.authentication.webform.LogoutUserTest [INFO] Running org.appng.application.authentication.webform.LoginFormTest [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.27 s -- in org.appng.application.authentication.webform.LoginFormTest [INFO] Running org.appng.application.authentication.webform.EditProfileTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.532 s -- in org.appng.application.authentication.webform.EditProfileTest [INFO] Running org.appng.application.authentication.webform.PasswordChangeTest [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.124 s -- in org.appng.application.authentication.webform.PasswordChangeTest [INFO] Running org.appng.application.authentication.webform.PasswordResetTest [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.405 s -- in org.appng.application.authentication.webform.PasswordResetTest [INFO] Running org.appng.application.authentication.webform.LoginUserTest [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.324 s -- in org.appng.application.authentication.webform.LoginUserTest [INFO] Running org.appng.application.authentication.BaseLoginTest [WARNING] Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.002 s -- in org.appng.application.authentication.BaseLoginTest [INFO] Running org.appng.application.authentication.saml.SamlControllerTest [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.092 s <<< FAILURE! -- in org.appng.application.authentication.saml.SamlControllerTest [ERROR] org.appng.application.authentication.saml.SamlControllerTest.test -- Time elapsed: 0.089 s <<< ERROR! java.lang.NullPointerException: Cannot invoke "org.appng.api.model.Subject.getGroups()" because the return value of "org.appng.api.Environment.getSubject()" is null at org.appng.application.authentication.saml.SamlController.reply(SamlController.java:178) at org.appng.application.authentication.saml.SamlControllerTest.test(SamlControllerTest.java:74) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162) at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495) [INFO] [INFO] Results: [INFO] [ERROR] Errors: [ERROR] SamlControllerTest.test:74 ยป NullPointer Cannot invoke "org.appng.api.model.Subject.getGroups()" because the return value of "org.appng.api.Environment.getSubject()" is null [INFO] [ERROR] Tests run: 29, Failures: 0, Errors: 1, Skipped: 3 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 43.636 s [INFO] Finished at: 2024-07-12T16:35:11+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.3.0:test (default-test) on project appng-authentication: [ERROR] [ERROR] Please refer to /var/lib/jenkins/workspace/appNG_Authentication/target/surefire-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. [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 [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: script returned exit code 1 Finished: FAILURE