IBM Support

PI51134: NPE if all interceptors are on methods that are overriden, defined at class level or in a different method

Download


Abstract

NullPointerException when processing CDI interceptors on methods.

Download Description

PI51134 resolves the following problem:

ERROR DESCRIPTION:
NullPointerException if all interceptors are on methods that are defined at the class level or defined in a different method
.
Exception stack:
.
Caused by: java.lang.NullPointerException: null
at java.util.ArrayList.<init>(ArrayList.java:176) ~[na:1.7.0]
at org.apache.webbeans.intercept.InterceptorHandler.invoke(InterceptorHandler.java:266) [org.apache.webbeans.jar:na]
at org.apache.webbeans.intercept.DependentScopedBeanInterceptorHandler.invoke (DependentScopedBeanInterceptorHandler.java:75)

LOCAL FIX:
N/A

PROBLEM SUMMARY

USERS AFFECTED:
All users of IBM WebSphere Application Server making use of Contexts and Dependency Injection (CDI).

PROBLEM DESCRIPTION:
NullPointerException when processing CDI interceptors on methods.

RECOMMENDATION:
None

NullPointerException when processing CDI interceptors on methods.
Characteristic top of exception stack:
Caused by: java.lang.NullPointerException: null
at java.util.ArrayList.<init>(ArrayList.java:176) ~[na:1.7.0]
at org.apache.webbeans.intercept.InterceptorHandler.invoke(InterceptorHandler.java:266) [org.apache.webbeans.jar:na]
at org.apache.webbeans.intercept.DependentScopedBeanInterceptorHandler.invoke (DependentScopedBeanInterceptorHandler.java:75)

PROBLEM CONCLUSION:
Removed duplicate get() calls to interceptor data cache, eliminating a timing window between the two calls. Reimplemented interceptor data cache so that its entries are held for the lifetime of a method's class (instead of just for the lifetime of the Method object itself).

The fix for this APAR is currently targeted for inclusion in fix packs 8.5.5.9 and 8.0.0.13. Please refer to the
Recommended Updates page for delivery information:
http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980

Prerequisites

None

Installation Instructions

Please review the readme.txt for detailed installation instructions.

[{"INLabel":"V85 Readme","INLang":"US English","INSize":"4709","INURL":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PI51134/8.5.5.2/readme.txt"}]
On
[{"DNLabel":"8.5.5.2-WS-WAS-IFPI51134","DNDate":"03-01-2016","DNLang":"US English","DNSize":"261122","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"http://www-933.ibm.com/eserver/support/fixes/fixcentral/swgquickorder?fixes=8.5.5.2-WS-WAS-IFPI51134&productid=WebSphere%20Application%20Server&brandid=5","DNURL_FTP":null,"DDURL":null}]

Technical Support

Contact IBM Support using SR (http://www.ibm.com/software/support/probsub.html), visit the WebSphere Application Server support web site (http://www.ibm.com/software/webservers/appserv/was/support/), or contact 1-800-IBM-SERV (U.S. only).

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"8.5.5.2","Edition":"Advanced","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg24042029