[cas-user] Re: The CAS management webapp is unavailable. NPE ERROR [org.apereo.cas.mgmt.services.web.AbstractManagementController] - java.lang.NullPointerException
Hello, Were you able to solve your issue? I am having the same problem. Thank you and happy holidays. On Tuesday, October 31, 2017 at 6:18:12 AM UTC-4, Krzysztof Kluczynski wrote: > > Hi, > > I am getting an NPE > [org.apereo.cas.mgmt.services.web.AbstractManagementController] - > java.lang.NullPointerException after a successful login to the CAS > management webapp. > > Both CAS and the CAS management webapp are configured to use LDAP. > > I am using the following versions : > > cas-services-management-overlay 5.2.0-SNAPSHOT > cas-server 5.2.0-RC4 > > *Configuration files* > > *management.properties* > > > #cas.server.prefix: https://jasigcas.herokuapp.com/cas > cas.server.name:https://xxx.xxx.org > cas.server.prefix:https://xxx.xxx.org/sso > > cas.mgmt.adminRoles=ROLE_ADMIN > cas.mgmt.userPropertiesFile=file:/etc/cas/config/users.properties > > # Update this URL to point at server running this management app > cas.mgmt.serverName:https://xxx.xxx.org > > server.context-path=/cas-management > server.port=8443 > > spring.thymeleaf.mode=HTML > logging.config=file:/etc/cas/config/log4j2-management.xml > > > cas.authn.attributeRepository.defaultAttributesToRelease=sn,cn,givenName,mail,memberOf,xxxUID > cas.personDirectory.principalAttribute=mail > cas.personDirectory.returnNull=false > cas.personDirectory.principalResolutionFailureFatal=false > > > cas.mgmt.ldap.baseDn=ou=cas,ou=system,dc=xxx,dc=net > cas.mgmt.ldap.ldapUrl=ldaps://xxx.xxx.org/ > cas.mgmt.ldap.connectionStrategy=ACTIVE_PASSIVE > cas.mgmt.ldap.userFilter=mail={user} > cas.mgmt.ldap.bindDn=cn=admin,dc=xxx,dc=net > cas.mgmt.ldap.bindCredential=password > > cas.serviceRegistry.ldap.serviceDefinitionAttribute=casServiceDescription > cas.serviceRegistry.ldap.idAttribute=cn > cas.serviceRegistry.ldap.objectClass=casRegisteredService > cas.serviceRegistry.ldap.ldapUrl=ldaps://xxx.xxx.org/ > cas.serviceRegistry.ldap.connectionStrategy=ACTIVE_PASSIVE > cas.serviceRegistry.ldap.baseDn=ou=cas,ou=system,dc=xxx,dc=net > cas.serviceRegistry.ldap.bindDn=cn=admin,dc=xxx,dc=net > cas.serviceRegistry.ldap.bindCredential=password > > cas.properties > > #cas.server.name: https://cas.example.org:8443 > #cas.server.prefix: https://cas.example.org:8443/cas > > cas.server.name:https://xxx.xxx.org > cas.server.prefix:https://xxx.xxx.org/sso > > cas.tgc.crypto.encryption.key=key > cas.tgc.crypto.signing.key=signingkey > > cas.webflow.crypto.encryption.key=encrkey > cas.webflow.crypto.signing.key=signingkey > > cas.logout.followServiceRedirects=true > cas.logout.redirectParameter=service > > cas.adminPagesSecurity.ip=127\.0\.0\.1 > cas.monitor.endpoints.enabled=true > cas.monitor.endpoints.sensitive=false > cas.adminPagesSecurity.loginUrl=https://xxx.xxx.org/sso/login > cas.adminPagesSecurity.service=https://xxx.xxx.org/sso/status/dashboard > cas.adminPagesSecurity.users=file:/etc/cas/config/adminusers.properties > cas.adminPagesSecurity.adminRoles[0]=ROLE_ADMIN > cas.adminPagesSecurity.actuatorEndpointsEnabled=true > > logging.config: file:/etc/cas/config/log4j2.xml > > cas.authn.accept.users= > cas.authn.ldap[0].type=AUTHENTICATED > > cas.authn.ldap[0].ldapUrl=ldaps://xxx.xxx.org/ > cas.authn.ldap[0].connectionStrategy=ACTIVE_PASSIVE > cas.authn.ldap[0].baseDn=dc=xxx,dc=net > cas.authn.ldap[0].userFilter=mail={user} > cas.authn.ldap[0].bindDn=cn=admin,dc=xxx,dc=net > cas.authn.ldap[0].bindCredential=credential > > cas.authn.ldap[0].dnFormat=cn=%s,ou=users,ou=people,dc=xxx,dc=net > cas.authn.ldap[0].principalAttributeId=xxxUID > cas.authn.attributeRepository.ldap[0].attributes.sn=sn > cas.authn.attributeRepository.ldap[0].attributes.cn=cn > cas.authn.attributeRepository.ldap[0].attributes.givenName=givenName > cas.authn.attributeRepository.ldap[0].attributes.mail=mail > cas.authn.attributeRepository.ldap[0].attributes.memberOf=memberOf > cas.authn.attributeRepository.ldap[0].attributes.xxxUID=xxxUID > > > cas.authn.ldap[0].principalAttributeList=sn:familyName,cn:casId,givenName,mail,memberOf,xxxUID > > > cas.authn.attributeRepository.attributes.sn=sn > cas.authn.attributeRepository.attributes.cn=cn > cas.authn.attributeRepository.attributes.givenName=givenName > cas.authn.attributeRepository.attributes.mail=mail > cas.authn.attributeRepository.attributes.memberOf=memberOf > cas.authn.attributeRepository.attributes.xxxUID=xxxUID > > cas.authn.releaseProtocolAttributes=true > > > cas.authn.attributeRepository.defaultAttributesToRelease=sn:familyName,cn:casId,givenName,mail,memberOf,xxxUID > > cas.personDirectory.principalAttribute=xxxUID > cas.personDirectory.returnNull=false > cas.personDirectory.principalResolutionFailureFatal=false > > cas.clearpass.cacheCredential=true > cas.clearpass.crypto.encryption.key=key > cas.clearpass.crypto.signing.key=encrkey > cas.clearpass.crypto.enabled=true > cas.clearpass.cipherEnabled=true > > cas.serviceRegistry.initFromJson=false > > cas.serviceRegistry.ldap.serviceDefinitionAttribute=casServiceDescription >
[cas-user] Re: The CAS management webapp is unavailable. NPE ERROR [org.apereo.cas.mgmt.services.web.AbstractManagementController] - java.lang.NullPointerException
Just guessing here, but I think I would first try trimming down the principal list values from: cas.authn.ldap[0].principalAttributeList=sn:familyName,cn:casId,givenName,mail,memberOf,xxxUID To maybe: cas.authn.ldap[0].principalAttributeList=cn,xxxUID Things that always exist in every ldap record. My theory is one or more is null and throwing the NPE. If that's not it, I would simplify my properties line by line restarting cas-management app each time until the NPE goes away. Painful, I know, but other than reading the source code or paying a vendor like Unicon for support, not sure what else to try. Good luck. -William On Tuesday, October 31, 2017 at 5:18:12 AM UTC-5, Krzysztof Kluczynski wrote: > > Hi, > > I am getting an NPE > [org.apereo.cas.mgmt.services.web.AbstractManagementController] - > java.lang.NullPointerException after a successful login to the CAS > management webapp. > > Both CAS and the CAS management webapp are configured to use LDAP. > > I am using the following versions : > > cas-services-management-overlay 5.2.0-SNAPSHOT > cas-server 5.2.0-RC4 > > *Configuration files* > > *management.properties* > > > #cas.server.prefix: https://jasigcas.herokuapp.com/cas > cas.server.name:https://xxx.xxx.org > cas.server.prefix:https://xxx.xxx.org/sso > > cas.mgmt.adminRoles=ROLE_ADMIN > cas.mgmt.userPropertiesFile=file:/etc/cas/config/users.properties > > # Update this URL to point at server running this management app > cas.mgmt.serverName:https://xxx.xxx.org > > server.context-path=/cas-management > server.port=8443 > > spring.thymeleaf.mode=HTML > logging.config=file:/etc/cas/config/log4j2-management.xml > > > cas.authn.attributeRepository.defaultAttributesToRelease=sn,cn,givenName,mail,memberOf,xxxUID > cas.personDirectory.principalAttribute=mail > cas.personDirectory.returnNull=false > cas.personDirectory.principalResolutionFailureFatal=false > > > cas.mgmt.ldap.baseDn=ou=cas,ou=system,dc=xxx,dc=net > cas.mgmt.ldap.ldapUrl=ldaps://xxx.xxx.org/ > cas.mgmt.ldap.connectionStrategy=ACTIVE_PASSIVE > cas.mgmt.ldap.userFilter=mail={user} > cas.mgmt.ldap.bindDn=cn=admin,dc=xxx,dc=net > cas.mgmt.ldap.bindCredential=password > > cas.serviceRegistry.ldap.serviceDefinitionAttribute=casServiceDescription > cas.serviceRegistry.ldap.idAttribute=cn > cas.serviceRegistry.ldap.objectClass=casRegisteredService > cas.serviceRegistry.ldap.ldapUrl=ldaps://xxx.xxx.org/ > cas.serviceRegistry.ldap.connectionStrategy=ACTIVE_PASSIVE > cas.serviceRegistry.ldap.baseDn=ou=cas,ou=system,dc=xxx,dc=net > cas.serviceRegistry.ldap.bindDn=cn=admin,dc=xxx,dc=net > cas.serviceRegistry.ldap.bindCredential=password > > cas.properties > > #cas.server.name: https://cas.example.org:8443 > #cas.server.prefix: https://cas.example.org:8443/cas > > cas.server.name:https://xxx.xxx.org > cas.server.prefix:https://xxx.xxx.org/sso > > cas.tgc.crypto.encryption.key=key > cas.tgc.crypto.signing.key=signingkey > > cas.webflow.crypto.encryption.key=encrkey > cas.webflow.crypto.signing.key=signingkey > > cas.logout.followServiceRedirects=true > cas.logout.redirectParameter=service > > cas.adminPagesSecurity.ip=127\.0\.0\.1 > cas.monitor.endpoints.enabled=true > cas.monitor.endpoints.sensitive=false > cas.adminPagesSecurity.loginUrl=https://xxx.xxx.org/sso/login > cas.adminPagesSecurity.service=https://xxx.xxx.org/sso/status/dashboard > cas.adminPagesSecurity.users=file:/etc/cas/config/adminusers.properties > cas.adminPagesSecurity.adminRoles[0]=ROLE_ADMIN > cas.adminPagesSecurity.actuatorEndpointsEnabled=true > > logging.config: file:/etc/cas/config/log4j2.xml > > cas.authn.accept.users= > cas.authn.ldap[0].type=AUTHENTICATED > > cas.authn.ldap[0].ldapUrl=ldaps://xxx.xxx.org/ > cas.authn.ldap[0].connectionStrategy=ACTIVE_PASSIVE > cas.authn.ldap[0].baseDn=dc=xxx,dc=net > cas.authn.ldap[0].userFilter=mail={user} > cas.authn.ldap[0].bindDn=cn=admin,dc=xxx,dc=net > cas.authn.ldap[0].bindCredential=credential > > cas.authn.ldap[0].dnFormat=cn=%s,ou=users,ou=people,dc=xxx,dc=net > cas.authn.ldap[0].principalAttributeId=xxxUID > cas.authn.attributeRepository.ldap[0].attributes.sn=sn > cas.authn.attributeRepository.ldap[0].attributes.cn=cn > cas.authn.attributeRepository.ldap[0].attributes.givenName=givenName > cas.authn.attributeRepository.ldap[0].attributes.mail=mail > cas.authn.attributeRepository.ldap[0].attributes.memberOf=memberOf > cas.authn.attributeRepository.ldap[0].attributes.xxxUID=xxxUID > > > cas.authn.ldap[0].principalAttributeList=sn:familyName,cn:casId,givenName,mail,memberOf,xxxUID > > > cas.authn.attributeRepository.attributes.sn=sn > cas.authn.attributeRepository.attributes.cn=cn > cas.authn.attributeRepository.attributes.givenName=givenName > cas.authn.attributeRepository.attributes.mail=mail > cas.authn.attributeRepository.attributes.memberOf=memberOf > cas.authn.attributeRepository.attributes.xxxUID=xxxUID > > cas.authn.releaseProtocolAttributes=true > > >
[cas-user] Re: The CAS management webapp is unavailable. NPE ERROR [org.apereo.cas.mgmt.services.web.AbstractManagementController] - java.lang.NullPointerException
Hello, Can you tell me how did you make it work out. I have the same problem. Thank you, Cristina On Tuesday, October 31, 2017 at 12:18:12 PM UTC+2, Krzysztof Kluczynski wrote: > > Hi, > > I am getting an NPE > [org.apereo.cas.mgmt.services.web.AbstractManagementController] - > java.lang.NullPointerException after a successful login to the CAS > management webapp. > > Both CAS and the CAS management webapp are configured to use LDAP. > > I am using the following versions : > > cas-services-management-overlay 5.2.0-SNAPSHOT > cas-server 5.2.0-RC4 > > *Configuration files* > > *management.properties* > > > #cas.server.prefix: https://jasigcas.herokuapp.com/cas > cas.server.name:https://xxx.xxx.org > cas.server.prefix:https://xxx.xxx.org/sso > > cas.mgmt.adminRoles=ROLE_ADMIN > cas.mgmt.userPropertiesFile=file:/etc/cas/config/users.properties > > # Update this URL to point at server running this management app > cas.mgmt.serverName:https://xxx.xxx.org > > server.context-path=/cas-management > server.port=8443 > > spring.thymeleaf.mode=HTML > logging.config=file:/etc/cas/config/log4j2-management.xml > > > cas.authn.attributeRepository.defaultAttributesToRelease=sn,cn,givenName,mail,memberOf,xxxUID > cas.personDirectory.principalAttribute=mail > cas.personDirectory.returnNull=false > cas.personDirectory.principalResolutionFailureFatal=false > > > cas.mgmt.ldap.baseDn=ou=cas,ou=system,dc=xxx,dc=net > cas.mgmt.ldap.ldapUrl=ldaps://xxx.xxx.org/ > cas.mgmt.ldap.connectionStrategy=ACTIVE_PASSIVE > cas.mgmt.ldap.userFilter=mail={user} > cas.mgmt.ldap.bindDn=cn=admin,dc=xxx,dc=net > cas.mgmt.ldap.bindCredential=password > > cas.serviceRegistry.ldap.serviceDefinitionAttribute=casServiceDescription > cas.serviceRegistry.ldap.idAttribute=cn > cas.serviceRegistry.ldap.objectClass=casRegisteredService > cas.serviceRegistry.ldap.ldapUrl=ldaps://xxx.xxx.org/ > cas.serviceRegistry.ldap.connectionStrategy=ACTIVE_PASSIVE > cas.serviceRegistry.ldap.baseDn=ou=cas,ou=system,dc=xxx,dc=net > cas.serviceRegistry.ldap.bindDn=cn=admin,dc=xxx,dc=net > cas.serviceRegistry.ldap.bindCredential=password > > cas.properties > > #cas.server.name: https://cas.example.org:8443 > #cas.server.prefix: https://cas.example.org:8443/cas > > cas.server.name:https://xxx.xxx.org > cas.server.prefix:https://xxx.xxx.org/sso > > cas.tgc.crypto.encryption.key=key > cas.tgc.crypto.signing.key=signingkey > > cas.webflow.crypto.encryption.key=encrkey > cas.webflow.crypto.signing.key=signingkey > > cas.logout.followServiceRedirects=true > cas.logout.redirectParameter=service > > cas.adminPagesSecurity.ip=127\.0\.0\.1 > cas.monitor.endpoints.enabled=true > cas.monitor.endpoints.sensitive=false > cas.adminPagesSecurity.loginUrl=https://xxx.xxx.org/sso/login > cas.adminPagesSecurity.service=https://xxx.xxx.org/sso/status/dashboard > cas.adminPagesSecurity.users=file:/etc/cas/config/adminusers.properties > cas.adminPagesSecurity.adminRoles[0]=ROLE_ADMIN > cas.adminPagesSecurity.actuatorEndpointsEnabled=true > > logging.config: file:/etc/cas/config/log4j2.xml > > cas.authn.accept.users= > cas.authn.ldap[0].type=AUTHENTICATED > > cas.authn.ldap[0].ldapUrl=ldaps://xxx.xxx.org/ > cas.authn.ldap[0].connectionStrategy=ACTIVE_PASSIVE > cas.authn.ldap[0].baseDn=dc=xxx,dc=net > cas.authn.ldap[0].userFilter=mail={user} > cas.authn.ldap[0].bindDn=cn=admin,dc=xxx,dc=net > cas.authn.ldap[0].bindCredential=credential > > cas.authn.ldap[0].dnFormat=cn=%s,ou=users,ou=people,dc=xxx,dc=net > cas.authn.ldap[0].principalAttributeId=xxxUID > cas.authn.attributeRepository.ldap[0].attributes.sn=sn > cas.authn.attributeRepository.ldap[0].attributes.cn=cn > cas.authn.attributeRepository.ldap[0].attributes.givenName=givenName > cas.authn.attributeRepository.ldap[0].attributes.mail=mail > cas.authn.attributeRepository.ldap[0].attributes.memberOf=memberOf > cas.authn.attributeRepository.ldap[0].attributes.xxxUID=xxxUID > > > cas.authn.ldap[0].principalAttributeList=sn:familyName,cn:casId,givenName,mail,memberOf,xxxUID > > > cas.authn.attributeRepository.attributes.sn=sn > cas.authn.attributeRepository.attributes.cn=cn > cas.authn.attributeRepository.attributes.givenName=givenName > cas.authn.attributeRepository.attributes.mail=mail > cas.authn.attributeRepository.attributes.memberOf=memberOf > cas.authn.attributeRepository.attributes.xxxUID=xxxUID > > cas.authn.releaseProtocolAttributes=true > > > cas.authn.attributeRepository.defaultAttributesToRelease=sn:familyName,cn:casId,givenName,mail,memberOf,xxxUID > > cas.personDirectory.principalAttribute=xxxUID > cas.personDirectory.returnNull=false > cas.personDirectory.principalResolutionFailureFatal=false > > cas.clearpass.cacheCredential=true > cas.clearpass.crypto.encryption.key=key > cas.clearpass.crypto.signing.key=encrkey > cas.clearpass.crypto.enabled=true > cas.clearpass.cipherEnabled=true > > cas.serviceRegistry.initFromJson=false > > cas.serviceRegistry.ldap.serviceDefinitionAttribute=casServiceDescription >