We use a number of @Startup EJB beans. As far as I can tell, none is on a direct dependency graph with the spot where this NPE happens though.
I'm asking because the index is built before Weld initialization finished. So the only chance to get this NPE is to inject some EE component even earlier, e.g. @Startup singleton.
How would our application still fail if we modified the BeanIdentifierIndex#isBuilt() method? As far as I can tell, the if-check on SerializableContextualHolder#98 would evaluate to false, meaning line 99
You're right, I overlooked the if there
Would storing the beanidentifier instead of the identifierIndex (SerializableContextualHolder#101-106) result in errors further down the road?
No, I think it should work ok. |