CABI Login with superuser fails with Internal Error
/opt/nimsoft/probes/service/wasp/webapps/cabijs/WEB-INF/logs/jasperserver.log captures the error below on the logon attempt
ERROR SystemErrorController,https-jsse-nio-443-exec-9:89 - Internal server error java.lang.NullPointerException
at java.util.Objects.requireNonNull(Objects.java:203)
at com.jaspersoft.jasperserver.api.common.crypto.PasswordCipherer.matches(PasswordCipherer.java:267)
at com.jaspersoft.jasperserver.api.security.internalAuth.InternalDaoAuthenticationProvider.additionalAuthenticationChecksForNumberOfFailedAttempts(InternalDaoAuthenticationProvider.java:132)
at com.jaspersoft.jasperserver.api.security.internalAuth.InternalDaoAuthenticationProvider.additionalAuthenticationChecks(InternalDaoAuthenticationProvider.java:121)
at com.ca.bicoe.cajasperserver.preauth.sso.authentication.CADaoAuthenticationProvider.authenticate(CADaoAuthenticationProvider.java:104)
at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:182)
at org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter.attemptAuthentication(UsernamePasswordAuthenticationFilter.java:8
This login issue is sometimes seen when superuser password is missing.
1. Run the query below to check the superuser account properties and validate if PASSWORD the field has a (null) entry
select * from JIUser where username like 'superuser%'
2. If the password is field is blank, login with a different user and configure the superuser account with a password
Click on Manage -> select superuser -> Click on Edit and enter a password