WELD-001303 when using @SessionScoped bean from EJB timer method

Solution Verified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content