The attached diff files are supposed to fix the
following kind of exception encountered with Weblogic
8.1(may be other app servers also.)
There are two text files, and they update the two
class files in the org\apache\struts\action package.
ActionServlet-getServletContext.txt -> update
ActionServlet.java
RequestProcessor-getServletContext.txt -> update
RequestProcessor.java
-----------------------
java.lang.NullPointerException
at
org.apache.struts.action.RequestProcessor.getServletContext(RequestProcessor.java:1136)
at
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:180)
at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at
weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at
com.gelco.tmg.planning.web.core.action.URLSecurityFilter.doFilter(URLSecurityFilter.java:69)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6458)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
at
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
_______________________________
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now.
http://messenger.yahoo.com
1164a1164,1168
> else
> {
> // Added by Syed to fix the Nullpointer Exception
> processor.initSafe(this, config);
> }
148a148,158
> //Added by Syed to fix the Null Pointer Exception
> public void initSafe(ActionServlet servlet,
> ModuleConfig moduleConfig)
> throws ServletException {
>
> if (this.servlet==null)
> this.servlet = servlet;
> if(this.moduleConfig==null)
> this.moduleConfig = moduleConfig;
> }
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]