NullPointerException SRVE0026E error on JasperLoader.loadClass
 Technote (troubleshooting)
 
Problem(Abstract)
Applications running in WebSphere® Application Server v5 releases produce this error message:

NullPointerExceptions:[11/19/04 15:07:06:149 CET] b34b7 WebGroup E SRVE0026E: [Servlet Error]-[]: java.lang.
NullPointerException
at com.ibm.ws.webcontainer.jsp.servlet. JasperLoader.loadClass(JasperLoader.java:132)
at com.ibm.ws. webcontainer.jsp.servlet.JasperLoader.loadClass(JasperLoader.java:80)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: 310)
at org.apache.jsp._enhanced_5F_order_5F_tracker_5F_search. _jspService(_enhanced_5F_order_5F_tracker_5F_search.java:1948)
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.
 
Cause
The application code sets the security manager, and it conflicts with the WebSphere Application Server internal security manager.

The error is thrown from JasperLoader.java (WebSphere code) line 132. The only variable on that line to cause a NullPointerException is securityManager.

WebSphere Application Server does not support setting the security manager in customer application code.

The following information can be found by following the links from the Information Center under Related Information:

The following two permissions are enforced by the WebSphere Java 2 security manager (hard coded):
java.lang.RuntimePermission(exitVM)
java.lang.RuntimePermission(setSecurityManager)

Application code is denied access to these permissions regardless of what is in the Java 2 security policy. However, the server run time is granted these permissions. All the other permission checks are not enforced.

 
Resolving the problem
Check the application code for setSecurityManager() and eliminate these calls from the code.

If a security manager is required for RMI purposes, the only supported way of setting a security manager in an application is if Java 2 security is also enabled in the WebSphere Global Security Settings page. WebSphere will then register a security manager. This can be verified from the application by using System.getSecurityManager().

The online WebSphere Information Center is in the process of being updated with this information (PQ98908).
 
Related information
Migrating Java 2 Security Policy
Configuring filter.policy files
Configuring Java 2 security
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server
Operating system(s): Windows
Software version: 5.1.1.2
Software edition:
Reference #: 1191169
IBM Group: Software Group
Modified date: Jan 5, 2005