This held me up forever .. I CC'd the author because I don't think I can post.
fwiw we contract support for cas via Unicon.

File :

cas/support/cas-server-support-sms-twillio/src/main/java/org/apereo/cas/config/TwillioSmsConfiguration.java

Commit :

620dc67c760cb2489adbd9ef6a3170d9d604f354

Lines :

25 Assert.notNull(casProperties.getTwillio().getAccountId(), "Twillio account 
id cannot be blank");
26 Assert.notNull(casProperties.getTwillio().getToken(), "Twillio token cannot 
be blank");

It's --> t w i l i o <-- .. as in one "L".

So when you read in the config .. (and these are right)

cas.Twilio.AccountId=
cas.Twilio.Token=

it throws an exception ...

WARN [org.apereo.cas.web.CasWebApplicationContext] - <Exception encountered 
during context initialization - cancelling refresh attempt: 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'communicationsManager': Unsatisfied dependency 
expressed through field 'smsSender'; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'smsSender' defined in class path resource 
[org/apereo/cas/config/TwillioSmsConfiguration.class]: Bean instantiation via 
factory method failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[org.apereo.cas.util.io.SmsSender]: Factory method 'smsSender' threw exception; 
nested exception is java.lang.IllegalArgumentException: Twillio account id 
cannot be blank>

I suppose the easy fix is to just change the config to use a double "L" .. but 
geez.

Michael Holstein
Cleveland State University

-- 
- 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/DM5PR08MB332343CCA2BB2C3AFC6DC87B835F0%40DM5PR08MB3323.namprd08.prod.outlook.com.

Reply via email to