Hi Andy,

I have added
'cas.spring.cloud.dynamoDb.preventTableCreationOnStartup=false' to my
cas.properties but still getting error

2019-11-18 06:26:51,472 INFO
[org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator]
- <Configuration files found at [/etc/cas/config] are
[[/etc/cas/config/cas.properties]] under profile(s) [[standalone]]>
2019-11-18 06:26:51,534 INFO
[org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration]
- <Located property source: CompositePropertySource
[name='casCompositePropertySource',
propertySources=[PropertiesPropertySource
{name='applicationProfilesProperties'}, PropertiesPropertySource
{name='embeddedYamlOverriddenProperties'}]]>
2019-11-18 06:26:52,964 ERROR
[org.apereo.cas.config.DynamoDbCloudConfigBootstrapConfiguration] - <null>
java.lang.NullPointerException: null
        at
org.apereo.cas.config.DynamoDbCloudConfigBootstrapConfiguration.locate(DynamoDbCloudConfigBootstrapConfiguration.java:68)
~[cas-server-support-configuration-cloud-dynamodb-5.3.10.jar!/:5.3.10]
        at
org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:93)
~[spring-cloud-context-1.3.0.RELEASE.jar!/:1.3.0.RELEASE]
        at
org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:567)
~[spring-boot-1.5.18.RELEASE.jar!/:1.5.18.RELEASE]
        at
org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:338)
~[spring-boot-1.5.18.RELEASE.jar!/:1.5.18.RELEASE]
        at
org.springframework.boot.SpringApplication.run(SpringApplication.java:301)
~[spring-boot-1.5.18.RELEASE.jar!/:1.5.18.RELEASE]
        at
org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:134)
~[spring-boot-1.5.18.RELEASE.jar!/:1.5.18.RELEASE]
        at
org.apereo.cas.web.CasWebApplication.main(CasWebApplication.java:71)
~[cas-server-webapp-init-5.3.10.jar!/:5.3.10]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:1.8.0_131]
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:1.8.0_131]
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.8.0_131]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
        at
org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
~[cas.war:5.3.10]
        at
org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
~[cas.war:5.3.10]
        at
org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
~[cas.war:5.3.10]
        at
org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59)
~[cas.war:5.3.10]
2019-11-18 06:26:52,971 INFO
[org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration]
- <Located property source: PropertiesPropertySource
{name='DynamoDbCloudConfigBootstrapConfiguration$$EnhancerBySpringCGLIB$$d6f1e7c3'}>
2019-11-18 06:26:53,137 INFO [org.apereo.cas.web.CasWebApplication] - <The
following profiles are active: standalone>
2019-11-18 06:26:53,237 INFO [org.apereo.cas.web.CasWebApplicationContext]
- <Refreshing CasWebApplicationContext()>
2019-11-18 06:26:53,248 DEBUG [org.apereo.cas.web.CasWebApplicationContext]
- <Bean factory for org.apereo.cas.web.CasWebApplicationContext@f5958c9:
org.springframework.beans.factory.support.DefaultListableBeanFactory@55b53d44:
defining beans
[org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.event.internalEventListenerProcessor,org.springframework.context.event.internalEventListenerFactory,casWebApplication];
parent:
org.springframework.beans.factory.support.DefaultListableBeanFactory@78ac1102
>



*2019-11-18 06:26:54,764 DEBUG [com.amazonaws.http.IdleConnectionReaper] -
<Reaper thread: >java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method) [?:1.8.0_131]        at
com.amazonaws.http.IdleConnectionReaper.run(IdleConnectionReaper.java:181)
~[aws-java-sdk-core-1.11.332.jar!/:?]*
2019-11-18 06:26:54,764 DEBUG [com.amazonaws.http.IdleConnectionReaper] -
<Shutting down reaper thread.>
*2019-11-18 06:27:01,203 WARN [org.apereo.cas.web.CasWebApplicationContext]
- <Exception encountered during context initialization - cancelling refresh
attempt: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'casBeanValidationPostProcessor' defined in class
path resource [org/apereo/cas/config/CasCoreUtilConfiguration.class]:
BeanPostProcessor before instantiation of bean failed; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name
'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration':
Unsatisfied dependency expressed through method 'setConfigurers' parameter
0; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'casCoreTicketsConfiguration': Unsatisfied
dependency expressed through field 'casProperties'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name
'cas-org.apereo.cas.configuration.CasConfigurationProperties': Could not
bind properties to CasConfigurationProperties (prefix=cas,
ignoreInvalidFields=false, ignoreUnknownFields=false,
ignoreNestedProperties=false); nested exception is
org.springframework.beans.NotWritablePropertyException: Invalid property
'spring[cloud][dynamoDb][dynamoDb][preventTableCreationOnStartup]' of bean
class [org.apereo.cas.configuration.CasConfigurationProperties]: Cannot
access indexed value in property referenced in indexed property path
'spring[cloud][dynamoDb][dynamoDb][preventTableCreationOnStartup]'; nested
exception is org.springframework.beans.NotReadablePropertyException:
Invalid property
'spring[cloud][dynamoDb][dynamoDb][preventTableCreationOnStartup]' of bean
class [org.apereo.cas.configuration.CasConfigurationProperties]: Bean
property 'spring[cloud][dynamoDb][dynamoDb][preventTableCreationOnStartup]'
is not readable or has an invalid getter method: Does the return type of
the getter match the parameter type of the setter?>*


Regards,
Raheem Shaik

On Mon, Nov 18, 2019 at 9:49 AM Andy Ng <[email protected]> wrote:

> Hi Raheem,
>
> Looking thought the source code, it seems that the there are a 
> *NullPointerException
> *happen
> https://github.com/apereo/cas/blob/v5.3.10/support/cas-server-support-configuration-cloud-dynamodb/src/main/java/org/apereo/cas/config/DynamoDbCloudConfigBootstrapConfiguration.java#L68
>
> Which seems to be *preventTableCreationOnStartup* property not being
> initialzied by default
>
> After Looking at the config:
> https://apereo.github.io/cas/5.3.x/installation/Configuration-Properties-Common.html#dynamodb-configuration
>
> Try adding (from this doc:
> https://apereo.github.io/cas/5.3.x/installation/Configuration-Properties-Common.html#dynamodb-configuration
> ):
> cas.spring.cloud.dynamoDb.preventTableCreationOnStartup=false
>
> See if this will fix the problem... If it does fix it, then maybe a fix
> should be made to address this issue.
>
> Cheers!
> - Andy
>
>
> --
> - 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/0d924eb9-5f62-4e2b-ab85-9cc5c2300e9c%40apereo.org
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/0d924eb9-5f62-4e2b-ab85-9cc5c2300e9c%40apereo.org?utm_medium=email&utm_source=footer>
> .
>

-- 


********************************************



 

*Inmar Confidentiality 
Note*:  This e-mail and any attachments are confidential and intended to be 
viewed and used solely by the intended recipient.  If you are not the 
intended recipient, be aware that any disclosure, dissemination, 
distribution, copying or use of this e-mail or any attachment is 
prohibited.  If you received this e-mail in error, please notify us 
immediately by returning it to the sender and delete this copy and all 
attachments from your system and destroy any printed copies.  Thank you for 
your cooperation.



 

*Notice of Protected Rights*:  The removal of any 
copyright, trademark, or proprietary legend contained in this e-mail or any 
attachment is prohibited without the express, written permission of Inmar, 
Inc.  Furthermore, the intended recipient must maintain all copyright 
notices, trademarks, and proprietary legends within this e-mail and any 
attachments in their original form and location if the e-mail or any 
attachments are reproduced, printed or distributed.

 


********************************************

-- 
- 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAD_gEK4J7JNQkzir-s_jhpQNb5c1B%3Dhjzy7La6d-Y-bOYpJZAg%40mail.gmail.com.

Reply via email to