APAR status
Closed as program error.
Error description
When running the SitemapGenerate job, you might encounter an error similar to the following message: [21/08/17 10:19:02:921 EDT] 00000163 ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: An exception was thrown by one of the service methods of the servlet [/AuroraV2StorefrontAssetStore/SEOSitemap.jsp] in application [WC]. Exception created : [org.apache.jasper.el.JspELException: /AuroraV2StorefrontAssetStore/SEOSitemap.jsp(410,13) '${map.get('urls').get(status.index)}' java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpress ion.java:112) at com.ibm._jsp._SEOSitemap._jspx_meth_c_set_77(_SEOSitemap.java:50 96) at com.ibm._jsp._SEOSitemap._jspx_meth_c_forEach_13(_SEOSitemap.jav a:5153) at com.ibm._jsp._SEOSitemap._jspx_meth_c_forEach_11(_SEOSitemap.jav a:5229) at com.ibm._jsp._SEOSitemap._jspx_meth_c_if_17(_SEOSitemap.java:527 1) at com.ibm._jsp._SEOSitemap._jspService(_SEOSitemap.java:379) ... Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:647) at java.util.ArrayList.get(ArrayList.java:423) This is only seen for a store that has no landing pages.
Local fix
Update SEOSitemap.jsp: On Line 363: <c:if test="${!allURLs.isEmpty()}"> Change the line to: <c:if test="${!allURLs.isEmpty() && !allURLs.get(0).get('urls').isEmpty() }">
Problem summary
USERS AFFECTED: WebSphere Commerce Version 8. PROBLEM ABSTRACT: IndexOutOfBoundsException while running SitemapGenerate job BUSINESS IMPACT: Cannot generate sitemap when the landing page is null. RECOMMENDATION:
Problem conclusion
Updated logic to check the landing page number. Do nothing when the number is zero.
Temporary fix
Comments
APAR Information
APAR number
JR58324
Reported component name
WC BUS DEV ED W
Reported component ID
5724I3900
Reported release
800
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2017-08-21
Closed date
2018-11-14
Last modified date
2018-11-14
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
WC BUS DEV ED W
Fixed component ID
5724I3900
Applicable component levels
R800 PSY
UP
[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SSYT2H","label":"WebSphere Commerce Developer Enterprise"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB31","label":"WCE Watson Marketing and Commerce"}}]
Document Information
Modified date:
11 December 2021