[cas-user] Re: Cookie NPE in logs

2018-12-08 Thread Teddy Francois
A year later and I'm seeing these NPEs on CAS 5.3.6 as well.  If anyone has 
done anything elegant to make these go away please share. ;)

On Thursday, December 21, 2017 at 3:34:13 PM UTC-5, William E. wrote:
>
> It seems in cas 5.2, and 5.1.6, I'm seeing several instances of Cookie 
> related NPE's in the logs.  Presumably from tomcat/cas restarts and browser 
> refreshes where users were logged in before the cas/tomcat restart.  Not 
> sure where to report issues like this so the CAS developers become aware so 
> they can potentially do something more elegant with the scenario.
>
> 2017-12-21 14:28:57,494 DEBUG 
> [org.apereo.cas.web.support.CookieRetrievingCookieGenerator] - 
> java.lang.NullPointerException: null
> at 
> org.apereo.cas.web.support.DefaultCasCookieValueManager.obtainCookieValue(DefaultCasCookieValueManager.java:62)
>  
> ~[cas-server-support-cookie-5.2.0.jar:5.2.0]
> at 
> org.apereo.cas.web.support.CookieRetrievingCookieGenerator.retrieveCookieValue(CookieRetrievingCookieGenerator.java:126)
>  
> ~[cas-server-support-cookie-5.2.0.jar:5.2.0]
> at 
> org.apereo.cas.web.support.CookieRetrievingCookieGenerator$$FastClassBySpringCGLIB$$25dba342.invoke()
>  
> ~[cas-server-support-cookie-5.2.0.jar:5.2.0]
> at 
> org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) 
> ~[spring-core-4.3.12.RELEASE.jar:4.3.12.RELEASE]
> at 
> org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738)
>  
> ~[spring-aop-4.3.12.RELEASE.jar:4.3.12.RELEASE]
> at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
>  
> ~[spring-aop-4.3.12.RELEASE.jar:4.3.12.RELEASE]
> at 
> org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
>  
> ~[spring-aop-4.3.12.RELEASE.jar:4.3.12.RELEASE]
> at 
> org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
>  
> ~[spring-aop-4.3.12.RELEASE.jar:4.3.12.RELEASE]
> at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
>  
> ~[spring-aop-4.3.12.RELEASE.jar:4.3.12.RELEASE]
> at 
> org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:673)
>  
> ~[spring-aop-4.3.12.RELEASE.jar:4.3.12.RELEASE]
> at 
> org.apereo.cas.web.support.CookieRetrievingCookieGenerator$$EnhancerBySpringCGLIB$$8187cb8.retrieveCookieValue()
>  
> ~[cas-server-support-cookie-5.2.0.jar:5.2.0]
> at 
> org.apereo.cas.logging.web.ThreadContextMDCServletFilter.doFilter(ThreadContextMDCServletFilter.java:86)
>  
> ~[cas-server-core-logging-5.2.0.jar:5.2.0]
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>  
> ~[catalina.jar:8.5.24]
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>  
> ~[catalina.jar:8.5.24]
> at 
> org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:106)
>  
> ~[spring-boot-actuator-1.5.8.RELEASE.jar:1.5.8.RELEASE]
> at 
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
>  
> ~[spring-web-4.3.12.RELEASE.jar:4.3.12.RELEASE]
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>  
> ~[catalina.jar:8.5.24]
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>  
> ~[catalina.jar:8.5.24]
> at 
> org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
>  
> ~[spring-web-4.3.12.RELEASE.jar:4.3.12.RELEASE]
> at 
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
>  
> ~[spring-web-4.3.12.RELEASE.jar:4.3.12.RELEASE]
> .
>
>
> Thanks,
> William
>
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/cea55199-44b6-4863-8b35-d54b9985e049%40apereo.org.


[cas-user] Re: cas 5.3.3 management webapp overlay issue

2018-12-05 Thread Teddy Francois
Has anyone had any success deploying the latest build 5.3.6 using Maven 
(rather than Gradle).  I've tried running it on the same server alongside 
CAS server and it refuses to start up and forces Tomcat to hang.  I've even 
trying deploying it on Tomcat on its own and removing CAS server and same 
issue.  Not sure what's going on.  Another thing I tried is starting it 
with no default services configured and having the initFromJson=true, still 
nothing just hangs.  Anyone out there can help please?

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/3543b0c1-0320-439b-b8cc-9cc1b0054a7f%40apereo.org.


[cas-user] Re: The CAS management webapp is unavailable. NPE ERROR [org.apereo.cas.mgmt.services.web.AbstractManagementController] - java.lang.NullPointerException

2018-12-03 Thread Teddy Francois
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: CAS startup fails

2018-12-01 Thread Teddy Francois
I am getting the same error.  Has anyone figured out what the issue is 
please?  Thanks and happy holidays!

On Thursday, August 3, 2017 at 4:44:39 AM UTC-4, Udo Einspanier wrote:
>
> Hi,
>
> we have a CAS deployment based in the maven war overlay (tested with 5.0.3 
> + 5.0.7) in external Tomcat 8.5 /w Java 8. This works on three test 
> machines, but on a new one with CentOS 7 gives the below error and the 
> webapp is not started. I have already tried to remove all additional 
> dependencies like cas-server-support-rest, but with no effect. Has anyone 
> also experienced this as well, or can someone say what could be the cause 
> of the error? any suggestions appreciated.
>
> CAS Version: 5.0.3
> Apache Tomcat Version: Apache Tomcat/8.5.16
> Build Date/Time: 2017-02-18T04:13:16Z
> System Temp Directory: /opt/tomcat85/temp
> Java Home: /opt/jdk1.8.0_144/jre
> Java Vendor: Oracle Corporation
> Java Version: 1.8.0_144
> JCE Installed: no
> OS Architecture: amd64
> OS Name: Linux
> OS Version: 3.10.0-514.26.2.el7.x86_64
>
> ^[[0m
> 03-Aug-2017 10:20:34.214 SEVERE [localhost-startStop-1] 
> org.apache.catalina.core.ContainerBase.addChildInternal 
> ContainerBase.addChild: start:
>  org.apache.catalina.LifecycleException: Failed to start component 
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cas]]
> at 
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
> at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
> at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
> at 
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
> at 
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
> at 
> org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1842)
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: java.lang.IllegalStateException: Unable to load configuration 
> files
> at 
> org.springframework.boot.context.config.ConfigFileApplicationListener.addPropertySources(ConfigFileApplicationListener.java:215)
> at 
> org.springframework.boot.context.config.ConfigFileApplicationListener.postProcessEnvironment(ConfigFileApplicationListener.java:181)
> at 
> org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEnvironmentPreparedEvent(ConfigFileApplicationListener.java:168)
> at 
> org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEvent(ConfigFileApplicationListener.java:154)
> at 
> org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166)
> at 
> org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)
> at 
> org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:121)
> at 
> org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:68)
> at 
> org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)
> at 
> org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:337)
> at 
> org.springframework.boot.SpringApplication.run(SpringApplication.java:308)
> at 
> org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:134)
> at 
> org.springframework.cloud.config.server.environment.NativeEnvironmentRepository.findOne(NativeEnvironmentRepository.java:110)
> at 
> org.springframework.cloud.config.server.environment.EnvironmentRepositoryPropertySourceLocator.locate(EnvironmentRepositoryPropertySourceLocator.java:50)
> at 
> org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:89)
> at 
> org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:635)
> at 
> org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:349)
> at 
> org.springframework.boot.SpringApplication.run(SpringApplication.java:313)
> at 
> org.springframework.boot.web.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:151)
> at 
>