Skip to content


failing to init some beans #2

sheehan opened this Issue · 2 comments

2 participants


I recently had an issue with the plugin failing to initialize some beans. The problem occurred somewhat randomly in our websphere environment.

The annotated properties of these bean were null. I went in and verified that the bean's hashCode was in GrailsConfigAnnotationInitializer.initialized. When I manually ran GrailsConfigAnnotationHandler.initObject, the properties populated correctly. Not sure how that happens, but my fix was to add another BeanPostProcessor that always inits the object and that seems to be working so far.


This was implemented following way to improve performance. I've benchmarked code and it looks like it pretty fast and we can remove initObjectWhenRequired method. I hope to release new version in 3-4 days


Hi. Updated plugin to version 1.1. Pls check it - it should fix your issue

@fedotxxl fedotxxl closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.