SRVE0026E and java.lang.NullPointerException occurs when WebSphere Application Server is started with security enabled
 Technote (troubleshooting)
 
Problem(Abstract)
The following exception occurs in the SystemOut.log when IBM WebSphere Application Server V5.0 (any modificaiton) is started with security enabled:

[7/7/03 16:10:18:875 CDT] 25ebdf61 WsServer A WSVR0001I: Server server1 open for e-business
[7/7/03 16:13:01:399 CDT] 6b7c5f74 WebGroup E SRVE0026E: [Servlet Error]-[]: java.lang.NullPointerException
at com.ibm.ejs.models.base.bindings.applicationbnd.impl.SubjectImpl.hashCode
(SubjectImpl.java:83)
at java.util.HashMap.get(HashMap.java(Compiled Code))
at com.ibm.ejs.models.base.bindings.applicationbnd.impl.AuthorizationTableImpl.
initializeTheTables
(AuthorizationTableImpl.java:119)
at com.ibm.ejs.models.base.bindings.applicationbnd.impl.AuthorizationTableImpl.
getRolesForSubject
(AuthorizationTableImpl.java:51)
at com.ibm.ws.security.core.WSAccessManager.isEveryoneGranted(WSAccessManager.java:635)
at com.ibm.ws.security.web.WebCollaborator.authorize(WebCollaborator.java:441)
at com.ibm.ws.security.web.EJSWebCollaborator.preInvoke(EJSWebCollaborator.java:217)
at com.ibm.ws.webcontainer.webapp.WebAppSecurityCollaborator.preInvoke
(WebAppSecurityCollaborator.java:132)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch
(WebAppRequestDispatcher.java:508)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward
(WebAppRequestDispatcher.java:176)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation
(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI
(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:516)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:362)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
 
Resolving the problem
The main reason this exception appears is because the Console Users and/or Console Groups contain invalid entries that no longer apply to the current user registry.


To resolve this:

  1. Disable WebSphere Application Server security by stopping WebSphere Application Server
  2. Edit the <WSAS root>/config/cells/<node name>/security.xml
    • Edit the line starting with "<security:Security" so that its enabled parameter is set to "false" and enforceJava2Security is also set to "false"
  3. Start WebSphere Application Server
  4. Run the administrative console
    1. Expand System Administration
    2. Delete all invalid Console Users and Console Groups
  5. After that, save the configuration
  6. Enable security again
 
 
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 > Security
Operating system(s): Windows
Software version: 7.0
Software edition:
Reference #: 1115853
IBM Group: Software Group
Modified date: Dec 4, 2008