PQ57910: JSP BATCH COMPILER FAILS WITH NULLPOINTER EXCEPTION ON WAS 4.02 | |||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||
APAR status Closed as program error. Error description When the customer tries to batch compile JSPs on a clone using W AS 4.02 they receive the following error: . java.lang.NullPointerException at org.apache.jasper.compiler.ibmtools.AEBatchC. compileEnterpriseApp(AEBatchC.java(Compiled Code)) at org.apache.jasper.compiler.ibmtools.AEBatchC. compile(AEBatchC.java:135) at org.apache.jasper.compiler.ibmtools. JspBatchCompiler.compile(JspBatchCompiler.java:17) at org.apache.jasper.compiler.ibmtools. JspBatchCompiler.main(JspBatchCompiler.java:29) at java.lang.reflect.Method.invoke(Native Method) at com.ibm.ws.bootstrap.WSLauncher.main (WSLauncher.java:158) . I also noticed on 4.01, the JSPs compile but it can not find the correct directory to put the compiled code in the temp director y. The JSP batch compiler can not find the application name and the node name if the application server is part of a server gro up. The name comes back "NULL". I believe this is the "NullPoi nter" the customer is seeing.Local fix Problem summary **************************************************************** * USERS AFFECTED: WebSphere Application Server developers * * with server groups using the batch * * compiler to compile jsps. * **************************************************************** * PROBLEM DESCRIPTION: JSP batch compiler is throwing * * NullPointerExceptions when attempting * * to compile jsps for webmodules that * * are part of a servergroup. * **************************************************************** * RECOMMENDATION: * **************************************************************** When using the batch compiler to compile jsps included in a webmodule that is part of a servergroup, the batch compiler uses the application server name and installed node name that this webmodule belongs to create the temp directory structure. Since a servergroup does not necessarily belong to any one application server or node, a NullPointerException is thrown when attempting to retrieve this information from the repository.Problem conclusion A change was made to query the repository to locate each application server that the webmodule is installed on for the node the compilation is occuring on. This query returned the two fields required to properly build the temp directory structure that a browser compile would build.Temporary fix //wasdoc0/apars/pq57910/4.0.2/testFixComments
APAR is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: Modules/Macros
|
Document Information |
Product categories: Software > Application Servers >
Distributed Application & Web Servers > WebSphere Application
Server > General
Operating system(s):
Software version: 400
Software edition:
Reference #: PQ57910
IBM Group: Software Group
Modified date: Mar 8, 2002
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.