WELD-001303 when using @SessionScoped bean from EJB timer method
Issue
I have a CDI bean with SessionScoped annotation, and when injecting this bean into a Stateless EJB I get a NullPointerException with error code WELD-001303. When I inject it from a @Named bean it works fine. This Stateless EJB is invoked by a timer service.
Environment
JBoss Enterprise Application Platform (EAP) 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
