IBM Support

PM12828; 7.0.0.9: nullpointerexception when compiling jsp

Download


Abstract

A NullPointerException occurs during translation of a JSP file which contains a custom tag.

Download Description

PM12828 resolves the following problem:

ERROR DESCRIPTION:
A NullPointerException occurs when compiling the following line in a JavaServer Page (JSP) which contains a custom tag.

The JSP file compiles successfully on WebSphere Application Server version 6.1, however it fails on version 7.0 The exception thrown is:

java.lang.NullPointerException
at
com.ibm.ws.jsp.translator.visitor.generator. GeneratorUtils.getTargetType(GeneratorUtils.java:144)
at
com.ibm.ws.jsp.translator.visitor.generator. GeneratorUtils.interpreterCall(GeneratorUtils.java:239)
at
com.ibm.ws.jsp.translator.visitor.generator. BaseTagGenerator.evaluateAttribute(BaseTagGenerator.java:532)
at
com.ibm.ws.jsp.translator.visitor.generator. BaseTagGenerator.generateSetters(BaseTagGenerator.java:289)
at
com.ibm.ws.jsp.translator.visitor.generator. CustomTagGenerator.startGeneration(CustomTagGenerator.java:368)
at
com.ibm.ws.jsp.translator.visitor.generator. GenerateVisitor.startGeneration(GenerateVisitor.java:709)
...

LOCAL FIX:
None

PROBLEM SUMMARY:

USERS AFFECTED:
All IBM WebSphere Application Server Version 7.0 users of JavaServer Pages (JSP).

PROBLEM DESCRIPTION:
A NullPointerException occurs during translation of a JSP file which contains a custom tag.

RECOMMENDATION:
None

During the translation phase of a JSP file a NullPointerException can occur. The exception is caused if a custom tag has an attribute where the expected return type is an array.

PROBLEM CONCLUSION:?
The JSP Container was modified to properly handle the array type for a custom tag attribute and prevent the NullPointerException from occurring.

The fix for this APAR is currently targeted for inclusion in fix pack 7.0.0.13. Please refer to the Recommended Updates page for delivery information:
http://www.ibm.com/support/docview.wss?uid=swg27004980

Prerequisites

Download the UpdateInstaller below to install this fix.

[{"PRLabel":"UpdateInstaller","PRLang":"US English","PRSize":"7250000","PRPlat":{"label":"AIX","code":"PF002"},"PRURL":"http://www.ibm.com/support/docview.wss?uid=swg21205991"}]

Installation Instructions

Review the readme.txt for detailed installation instructions.

[{"INLabel":"Readme","INLang":"US English","INSize":"7662","INURL":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PM12828/readme.txt"}]
On
[{"DNLabel":"7.0.0.5-WS-WAS-IFPM12828","DNDate":"6/1/2010","DNLang":"US English","DNSize":"16607","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"http://www.ibm.com/support/fixcentral/quickorder?fixids=7.0.0.5-WS-WAS-IFPM12828&product=ibm%2FWebSphere%2FWebSphere+Application+Server&source=dbluesearch","DNURL_FTP":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PM12828/7.0.0.5-WS-WAS-IFPM12828.pak","DDURL":"http://public.dhe.ibm.com:7618;sw_websphere;appserv/support/fixes/PM12828/7.0.0.5-WS-WAS-IFPM12828.pak"},{"DNLabel":"7.0.0.11-WS-WAS-IFPM12828","DNDate":"8/16/2010","DNLang":"US English","DNSize":"16728","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"http://www.ibm.com/support/fixcentral/quickorder?fixids=7.0.0.11-WS-WAS-IFPM12828&product=ibm%2FWebSphere%2FWebSphere+Application+Server&source=dbluesearch","DNURL_FTP":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PM12828/7.0.0.11-WS-WAS-IFPM12828.pak","DDURL":"http://public.dhe.ibm.com:7618;sw_websphere;appserv/support/fixes/PM12828/7.0.0.11-WS-WAS-IFPM12828.pak"}]

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/support/entry/portal/Overview/Software/WebSphere/WebSphere_Application_Server), 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":"JSP","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0.0.9;7.0.0.7;7.0.0.5;7.0.0.11","Edition":"Base;Express;Network Deployment","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg24027590