WELD Issue: WELD Does Not Follow The Interceptors Spec (Doc ID 2085017.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle WebLogic Server - Version 12.1.2.0.0 and later
Information in this document applies to any platform.

Symptoms

The issue described in the link below occurs when deploying an application in WebLogic Server (WLS) 12.1.2.:

WELD-1225 - Incorrect handling of overridden callback methods for lifecycle events.



Excerpt from link above:

Weld does not follow the Interceptors spec. See also "Multiple Callback Interceptor Methods for a Life Cycle Callback Event" chapter:

...
If a lifecycle callback interceptor method is overridden by another method (regardless of whether that method is itself a lifecycle callback interceptor method (of the same or different type)), it will not be invoked.
...

Check the following use cases:

 -> Neither one of init() methods should be invoked, but Foo#init() is invoked!

 

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