Technote (troubleshooting)
Problem
The end user will see a blank page and the following exception will be in the logs:
DispatcherSer E com.ibm.wps.services.dispatcher.DispatcherServiceImpl handleRequest EJPFD0004E: The dispatcher call resulted in an error.
-
java.lang.StringIndexOutOfBoundsException
at java.lang.String.substring(String.java:1088)
at com.ibm._jsp._Default._jspService(_Default.java:1229)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
Cause
There were some changes made to the IBM-provided Dojo directory. If the custom theme is still using the IBM-provided Dojo instead of including its own version, this problem may occur.
Resolving the problem
In the head_extras.jspf file for the failing theme, do the following:
Change
-
contentHandlerRoot = pocUrl.substring(0, endIndex);
-
contentHandlerRoot = pocUrl.substring(0, endIndex > 0 ? endIndex :
pocUrl.length());
Save head_extras.jspf
Touch and then save head.jspf
Touch and then save Default.jsp
If reloading a .jsp is not enabled on the server, a restart may be needed.
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.