-
Notifications
You must be signed in to change notification settings - Fork 38.5k
NullPointerException in InjectionMetadata [SPR-7686] #12342
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
Comments
Christophe Roudet commented I think it is related to the fix for #12298. |
Henrik Heimbuerger commented First of all, this not only affects processInjectionBasedOnServletContext(), but also processInjectionBasedOnCurrentContext(). Why is this prioritized as minor? It completely breaks the subclassing of SpringBeanAutowiringSupport, because its constructor always calls processInjectionBasedOnCurrentContext(). I don't see how I could upgrade to 3.0.5 as long as this bug is in place. Is there an easy workaround that I'm missing, except for not using SpringBeanAutowiring at all? |
Christophe Roudet commented If you can put the annotations on the fields rather than on the methods, it will work.
--->
|
Henrik Heimbuerger commented As I said, the problem is not |
Florian Feigenbutz commented Henrik, as Christophe said you can bypass this bug in 3.0.5 by placing the This causes Spring to use the inject() method of As the bug only affects the latter one no NPEs should be caused even if you're subclassing SpringBeanAutowiringSupport. |
Paul Benedict commented Anymore 3.0 maintenance releases coming out? Can this be backported? -- Nevermind, I see it's fixed in 3.0.6. |
Christophe Roudet opened SPR-7686 and commented
When using SpringBeanAutowiringSupport.processInjectionBasedOnServletContext()
a NullPointerException is raised in
InjectionMetadata.checkPropertySkipping(PropertyValues pvs)
in AutowiredAnnotationBeanPostProcessor.processInjection(Object bean)
metadata inject is called with null for PropertyValues
Here is the stack trace:
Affects: 3.0.5
Issue Links:
Referenced from: commits 9c64ac7
1 votes, 4 watchers
The text was updated successfully, but these errors were encountered: