-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RedisService withConnection broken due to unwired grailsApplication #72
Comments
What version of grails/plugin? |
This happens on Grails 3.1.12, using what I believe the only version of Redis plugin (v2.0.4) available for Grails 3.x.x. |
I also see this using Redis-Plugin 2.0.4, Grails 3.2.11, Groovy 2.4.11 and JVM 1.8.0_31 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, calling
redisService.withConnection
throws aNullPointerException
.Referencing
grailsApplication.mainContext
causes the exception, with the message beingCannot get property 'mainContext' on null object
. I believe autowiringGrailsApplication
is not done properly, seeing that this is the only method that makes use of this bean. I look a look at the tests, and it seems like even though retrieving theGrailsApplication
bean is tested in a vacuum, thewithConnection
method itself is not touched.Currently a workaround for this issue is adding the following to BootStrap.groovy.
The text was updated successfully, but these errors were encountered: