Resource injection failing in Interceptors (Doc ID 1925278.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle WebLogic Server - Version 12.1.1.0 to 12.1.3.0.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

Facing the following exception while invoking EJB that contains some interceptors.
ExceptionInterceptor: caught Exception during invocation of
com.oracle.pitchfork.intercept.MethodInvocationInvocationContext@d0f7f7org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type javax.enterprise.context.RequestScoped
    at org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:612)
    at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:71)
    at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:79)
    at examples.javaee6.cdi.test.MeinRequestScope$Proxy$_$$_WeldClientProxy.toString(MeinRequestScope$Proxy$_$$_WeldClientProxy.java)
    at java.lang.String.valueOf(String.java:2826)
    at java.lang.StringBuilder.append(StringBuilder.java:115)
    at examples.javaee6.cdi.test.RequestScopeInterceptor.populateRequestScope(RequestScopeInterceptor.java:15)

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms