500 error when configuration parameters are missing #10

iamthechad opened this Issue May 13, 2013 · 2 comments


None yet
2 participants

iamthechad commented May 13, 2013

When any of the boolean configuration parameters are missing, a 500 error is generated with the text No signature of method: groovy.util.ConfigObject.toBoolean() is applicable for argument types: () values: [] Possible solutions: asBoolean(), asBoolean()

Need to handle missing properties in a non-crashy way.

@ghost ghost assigned iamthechad May 13, 2013

I haven't this bug when used 0.6.5 version, but it appeares on 0.6.6 and 0.6.7.
All values are setted in RecaptchaConfig.groovy, no one missed.
Now, I'm using Grails 2.3.8, does that matter anything?
What I must to do to dismiss this bug?

Ok, I found it's my bug. I had run grails in another environment not specified in the RecaptchaConfig.groovy.
But you should rewrite code to use some default values or to display better warning/error messages with detailed instructions what to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment