What you should do
When writing sling servelets, all @Reference variables should be set to nullWhy
We experienced an issue where when changing pom, reference was still being kept between updates. It seems that if your running servelets have injected an @Reference variable, if a change causes the @Reference variable to not successfully be able to be injected, it will only happen when the instance has been destroyed.This is confusing as it makes it hard to narrow down which change has caused an @Reference variable to no longer be injected.
No comments:
Post a Comment