Skip to content
Failed

Console Output

Started by an SCM change
[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 bfef239689701fd86c15bb3f5655d9e2011de9ac (refs/remotes/origin/appng-authentication-1.14.x)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f bfef239689701fd86c15bb3f5655d9e2011de9ac # 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 bfef239689701fd86c15bb3f5655d9e2011de9ac # timeout=10
Commit message: "AUTH-33"
 > git rev-list --no-walk 53f0b7c51b8fcf5c984dd36da8d4e467839a57a4 # 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.0-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.10.1:compile (default-compile) @ appng-authentication ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 14 source files to /var/lib/jenkins/workspace/appNG_Authentication/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.10.1:testCompile (default-testCompile) @ appng-authentication ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 11 source files to /var/lib/jenkins/workspace/appNG_Authentication/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.0.0-M7: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
Jan 27, 2023 1:54:23 PM ch.sla.jdbcperflogger.Logger info
INFO: Using config file jdbcperflogger-fallback.xml
2023-01-27 13:54:27,721 ERROR [main] org.appng.core.security.DigestValidator: Encrypted part does not match. Encrypted part is 2C4DB1A6ADA81121E098072DEAFBDB49, but should be 8D0FC84EAAC644BFBA0C039728A82BCC
2023-01-27 13:54:27,721 ERROR [main] org.appng.core.security.DigestValidator: Digest validation failed.
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.139 s - in org.appng.application.authentication.digest.DigestLoginTest
[INFO] Running org.appng.application.authentication.ntlm.NtlmLoginTest
2023-01-27 13:54:30,561 ERROR [main] org.appng.core.service.CoreService: No valid group membership found for user 'subject-42'
[ERROR] Tests run: 4, Failures: 0, Errors: 1, Skipped: 2, Time elapsed: 2.684 s <<< FAILURE! - in org.appng.application.authentication.ntlm.NtlmLoginTest
[ERROR] org.appng.application.authentication.ntlm.NtlmLoginTest.testNtmlLoginError  Time elapsed: 0.143 s  <<< ERROR!
org.appng.api.ProcessingException: error performing action 'login' of event 'form-ntlm', ID: 1838292331
	at org.appng.api.support.CallableAction.execute(CallableAction.java:457)
	at org.appng.api.support.CallableAction.perform(CallableAction.java:337)
	at org.appng.api.support.CallableAction.perform(CallableAction.java:309)
	at org.appng.application.authentication.ntlm.NtlmLoginTest.doTest(NtlmLoginTest.java:59)
	at org.appng.application.authentication.ntlm.NtlmLoginTest.testNtmlLoginError(NtlmLoginTest.java:53)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
	at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
	at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:252)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94)
	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.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
	at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:377)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:284)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:248)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:167)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:456)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:169)
	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:595)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:581)
Caused by: 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.AbstractLogon.processLogonResult(AbstractLogon.java:113)
	at org.appng.application.authentication.ntlm.NtlmLogin.perform(NtlmLogin.java:54)
	at org.appng.application.authentication.ntlm.NtlmLogin.perform(NtlmLogin.java:41)
	at org.appng.api.support.CallableAction.execute(CallableAction.java:439)
	... 37 more

[INFO] Running org.appng.application.authentication.webform.LogoutUserTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.394 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.021 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: 2.805 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.325 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.305 s - in org.appng.application.authentication.webform.PasswordResetTest
[INFO] Running org.appng.application.authentication.webform.LoginUserTest
[ERROR] Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.336 s <<< FAILURE! - in org.appng.application.authentication.webform.LoginUserTest
[ERROR] org.appng.application.authentication.webform.LoginUserTest.testLoginWrongPassword  Time elapsed: 0.148 s  <<< ERROR!
org.appng.api.ProcessingException: error performing action 'login' of event 'form-auth', ID: 1161939802
	at org.appng.api.support.CallableAction.execute(CallableAction.java:457)
	at org.appng.api.support.CallableAction.perform(CallableAction.java:337)
	at org.appng.api.support.CallableAction.perform(CallableAction.java:309)
	at org.appng.application.authentication.webform.LoginUserTest.testLoginWrongPassword(LoginUserTest.java:83)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
	at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
	at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:252)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94)
	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.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
	at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:377)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:284)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:248)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:167)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:456)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:169)
	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:595)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:581)
Caused by: 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.AbstractLogon.processLogonResult(AbstractLogon.java:113)
	at org.appng.application.authentication.webform.LoginUser.perform(LoginUser.java:51)
	at org.appng.application.authentication.webform.LoginUser.perform(LoginUser.java:37)
	at org.appng.api.support.CallableAction.execute(CallableAction.java:439)
	... 36 more

[INFO] Running org.appng.application.authentication.BaseLoginTest
[WARNING] Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.001 s - in org.appng.application.authentication.BaseLoginTest
[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Errors: 
[ERROR]   NtlmLoginTest.testNtmlLoginError:53->doTest:59 » Processing error performing action 'login' of event 'form-ntlm', ID: 1838292331
[ERROR]   LoginUserTest.testLoginWrongPassword:83 » Processing error performing action 'login' of event 'form-auth', ID: 1161939802
[INFO] 
[ERROR] Tests run: 28, Failures: 0, Errors: 2, Skipped: 3
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  43.480 s
[INFO] Finished at: 2023-01-27T13:54:56+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M7: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