Fixes are available
8.0.0.4: WebSphere Application Server V8.0 Fix Pack 4
8.5.0.1: WebSphere Application Server V8.5 Fix Pack 1
8.0.0.5: WebSphere Application Server V8.0 Fix Pack 5
8.5.0.2: WebSphere Application Server V8.5 Fix Pack 2
8.0.0.6: WebSphere Application Server V8.0 Fix Pack 6
8.0.0.7: WebSphere Application Server V8.0 Fix Pack 7
8.0.0.8: WebSphere Application Server V8.0 Fix Pack 8
8.0.0.9: WebSphere Application Server V8.0 Fix Pack 9
8.0.0.10: WebSphere Application Server V8.0 Fix Pack 10
8.0.0.11: WebSphere Application Server V8.0 Fix Pack 11
8.0.0.12: WebSphere Application Server V8.0 Fix Pack 12
8.0.0.13: WebSphere Application Server V8.0 Fix Pack 13
8.0.0.14: WebSphere Application Server V8.0 Fix Pack 14
8.0.0.15: WebSphere Application Server V8.0 Fix Pack 15
APAR status
Closed as program error.
Error description
When using the MyFaces Tomahawk Component Library, the JSCookMenu Component does not render due to a StringIndexOutOfBoundsException.
Local fix
configure the affected application to use the Apache MyFaces 2.0 implementation
Problem summary
**************************************************************** * USERS AFFECTED: IBM WebSphere Application Server Version * * 8.0 users of the MyFaces Tomahawk * * JSCookMenu Component. * **************************************************************** * PROBLEM DESCRIPTION: A StringIndexOutOfBoundsException * * occurs when using the MyFaces * * Tomahawk JSCookMenu Component. * **************************************************************** * RECOMMENDATION: * **************************************************************** The JSCookMenu Component can cause the following exception: java.lang.StringIndexOutOfBoundsException: String index out of range: 1 at java.lang.String.substring(String.java:1110) at com.ibm.ws.webcontainer.webapp.WebApp.getMimeType(WebApp.java:25 24) at com.ibm.wsspi.webcontainer.facade.ServletContextFacade.getMimeTy pe(ServletContextFacade.java:135) at org.apache.myfaces.context.servlet.ServletExternalContextImplBas e.getMimeType(ServletExternalContextImplBase.java:80) at org.apache.myfaces.tomahawk.resource.UncompressedResourceHandler Wrapper.createResource(UncompressedResourceHandlerWrapper.java:7 5) at org.apache.myfaces.tomahawk.resource.UncompressedResourceHandler Wrapper.createResource(UncompressedResourceHandlerWrapper.java:6 1) at org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRende rer.addThemeSpecificResourcesWithJSF2ResourceAPI(HtmlJSCookMenuR enderer.java:552) This exception occurs because the "file" parameter of the WebContainer ServletContext.getMimeType(String file) does not contain a dot (".") which means there is no file extension.
Problem conclusion
The WebContainer ServletContext.getMimeType(String file) was updated to return a "null" value when the parameter does not contain a dot ("."). The fix for this APAR is currently targeted for inclusion in fix pack 8.0.0.4. Please refer to the Recommended Updates page for delivery information: http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
Temporary fix
Comments
APAR Information
APAR number
PM58908
Reported component name
WEBS APP SERV N
Reported component ID
5724H8800
Reported release
800
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2012-02-23
Closed date
2012-04-13
Last modified date
2012-04-13
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
WEBS APP SERV N
Fixed component ID
5724H8800
Applicable component levels
R800 PSY
UP
Document Information
Modified date:
28 October 2021