Yes, change to 5.0.3-SNAPSHOT version
On Tue, Feb 14, 2017 at 2:03 PM, Udo <[email protected]> wrote:
> Hi Alvaro,
>
> were you able to resolve this issue? I have the same problem and can't
> find anything about this in the docs.
>
> Best regards,
> Udo
>
>
> Am Mittwoch, 8. Februar 2017 11:58:19 UTC+1 schrieb Alvaro S.:
>>
>> Hi, I have a working cas server but I want to add OAuth support, so I
>> just added the dependencies as the manual states, but I'm getting the
>> following error:
>>
>> <dependency>
>> <groupId>org.apereo.cas</groupId>
>> <artifactId>cas-server-support-oauth-webflow</artifactId>
>> <version>${cas.version}</version></dependency>
>>
>>
>>
>>
>>
>> Exception in thread "main" java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>> ssorImpl.java:62)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:497)
>> at org.springframework.boot.loader.MainMethodRunner.run(MainMet
>> hodRunner.java:48)
>> at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
>> at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
>> at org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59)
>> Caused by: org.springframework.beans.factory.BeanCreationException: *Error
>> creating bean with name 'oauthConfiguration': Invocation of init method
>> failed; nested exception is java.lang.IllegalArgumentException:
>> 'clientIpAddress' cannot be null.*
>> Check the correctness of @Audit annotation at the following audit point:
>> execution(public synchronized org.apereo.cas.services.RegisteredService
>> org.apereo.cas.services.DefaultServicesManagerImpl.save(org.
>> apereo.cas.services.RegisteredService))
>> at org.springframework.beans.factory.annotation.InitDestroyAnno
>> tationBeanPostProcessor.postProcessBeforeInitialization(Init
>> DestroyAnnotationBeanPostProcessor.java:137)
>> at org.springframework.beans.factory.support.AbstractAutowireCa
>> pableBeanFactory.applyBeanPostProcessorsBeforeInitialization
>> (AbstractAutowireCapableBeanFactory.java:408)
>> at org.springframework.beans.factory.support.AbstractAutowireCa
>> pableBeanFactory.initializeBean(AbstractAutowir
>> eCapableBeanFactory.java:1575)
>> at org.springframework.beans.factory.support.AbstractAutowireCa
>> pableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFac
>> tory.java:553)
>> at org.springframework.beans.factory.support.AbstractAutowireCa
>> pableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
>> at org.springframework.beans.factory.support.AbstractBeanFactor
>> y$1.getObject(AbstractBeanFactory.java:306)
>> at org.springframework.beans.factory.support.DefaultSingletonBe
>> anRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
>> at org.springframework.beans.factory.support.AbstractBeanFactor
>> y.doGetBean(AbstractBeanFactory.java:302)
>> at org.springframework.beans.factory.support.AbstractBeanFactor
>> y.getBean(AbstractBeanFactory.java:197)
>> at org.springframework.beans.factory.support.DefaultListableBea
>> nFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:754)
>> at org.springframework.context.support.AbstractApplicationConte
>> xt.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)
>> at org.springframework.context.support.AbstractApplicationConte
>> xt.refresh(AbstractApplicationContext.java:542)
>> at org.springframework.boot.context.embedded.EmbeddedWebApplica
>> tionContext.refresh(EmbeddedWebApplicationContext.java:122)
>> at org.springframework.boot.SpringApplication.refresh(SpringApp
>> lication.java:761)
>> at org.springframework.boot.SpringApplication.refreshContext(Sp
>> ringApplication.java:371)
>> at org.springframework.boot.SpringApplication.run(SpringApplica
>> tion.java:315)
>> at org.springframework.boot.builder.SpringApplicationBuilder.
>> run(SpringApplicationBuilder.java:134)
>> at org.apereo.cas.web.CasWebApplication.main(CasWebApplication.java:61)
>> ... 8 more
>> Caused by: java.lang.IllegalArgumentException: 'clientIpAddress' cannot
>> be null.
>> Check the correctness of @Audit annotation at the following audit point:
>> execution(public synchronized org.apereo.cas.services.RegisteredService
>> org.apereo.cas.services.DefaultServicesManagerImpl.save(org.
>> apereo.cas.services.RegisteredService))
>> at org.apereo.inspektr.audit.AuditActionContext.assertNotNull(A
>> uditActionContext.java:80)
>> at org.apereo.inspektr.audit.AuditActionContext.<init>(AuditAct
>> ionContext.java:67)
>> at org.apereo.inspektr.audit.AuditTrailManagementAspect.execute
>> AuditCode(AuditTrailManagementAspect.java:159)
>> at org.apereo.inspektr.audit.AuditTrailManagementAspect.handleA
>> uditTrail(AuditTrailManagementAspect.java:147)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>> ssorImpl.java:62)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:497)
>> at org.springframework.aop.aspectj.AbstractAspectJAdvice.invoke
>> AdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:629)
>> at org.springframework.aop.aspectj.AbstractAspectJAdvice.invoke
>> AdviceMethod(AbstractAspectJAdvice.java:618)
>> at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(
>> AspectJAroundAdvice.java:70)
>> at org.springframework.aop.framework.ReflectiveMethodInvocation
>> .proceed(ReflectiveMethodInvocation.java:168)
>> at org.springframework.aop.interceptor.ExposeInvocationIntercep
>> tor.invoke(ExposeInvocationInterceptor.java:92)
>> at org.springframework.aop.framework.ReflectiveMethodInvocation
>> .proceed(ReflectiveMethodInvocation.java:179)
>> at org.springframework.aop.framework.CglibAopProxy$DynamicAdvis
>> edInterceptor.intercept(CglibAopProxy.java:655)
>> at org.apereo.cas.services.DefaultServicesManagerImpl$$Enhancer
>> BySpringCGLIB$$bf0ad819.save(<generated>)
>> at org.apereo.cas.config.CasOAuthConfiguration.initializeServle
>> tApplicationContext(CasOAuthConfiguration.java:419)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>> ssorImpl.java:62)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:497)
>> at org.springframework.beans.factory.annotation.InitDestroyAnno
>> tationBeanPostProcessor$LifecycleElement.invoke(InitDe
>> stroyAnnotationBeanPostProcessor.java:366)
>> at org.springframework.beans.factory.annotation.InitDestroyAnno
>> tationBeanPostProcessor$LifecycleMetadata.invokeInitMe
>> thods(InitDestroyAnnotationBeanPostProcessor.java:311)
>> at org.springframework.beans.factory.annotation.InitDestroyAnno
>> tationBeanPostProcessor.postProcessBeforeInitialization(Init
>> DestroyAnnotationBeanPostProcessor.java:134)
>> ... 25 more
>>
>>
>>
>> I followed this tutorial
>>
>> https://apereo.github.io/cas/5.0.x/installation/OAuth-OpenId
>> -Authentication.html
>>
>> But the documentation doesn't states any more configuration.
>>
>> What should I do?
>>
>> Thanks
>>
> --
> - CAS gitter chatroom: https://gitter.im/apereo/cas
> - CAS mailing list guidelines: https://apereo.github.io/cas/
> Mailing-Lists.html
> - CAS documentation website: https://apereo.github.io/cas
> - CAS project website: https://github.com/apereo/cas
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "CAS Community" group.
> To unsubscribe from this topic, visit https://groups.google.com/a/
> apereo.org/d/topic/cas-user/e_q8l9NzY1s/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit https://groups.google.com/a/
> apereo.org/d/msgid/cas-user/8f6f709e-3df6-4c20-b6a9-
> 4e2f94538f61%40apereo.org
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/8f6f709e-3df6-4c20-b6a9-4e2f94538f61%40apereo.org?utm_medium=email&utm_source=footer>
> .
>
--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAA%2Bkr1bGk53j0P3%2BuaoU6NbudevqrdVFw5o5Vy%2BU3nNN5VJz4Q%40mail.gmail.com.