Direct links to fixes
APAR status
Closed as program error.
Error description
When a query string is malformed containing invalid parameters and parameter values, the NoSuchElement exception may be thrown from UserTrafficData as exhibited below: [11/14/11 11:43:16:451 UTC] 000000b6 CommerceSrvr E com.ibm.commerce.event.usertraffic.Traffic getUserTrafficData(HttpServletRequest httpRequest, ActivityToken activityToken, boolean isStoreCommand) CMN0409E: The following error occurred during processing: "{0}".java.util.NoSuchElementException at java.util.StringTokenizer.nextToken(StringTokenizer.java:183) at com.ibm.commerce.event.usertraffic.UserTrafficData.protectQueryS tring(UserTrafficData.java:561) at com.ibm.commerce.event.usertraffic.UserTrafficData.prepareQueryS tring(UserTrafficData.java:537) at com.ibm.commerce.event.usertraffic.UserTrafficData.parseEventDat a(UserTrafficData.java:439) at com.ibm.commerce.event.usertraffic.UserTrafficData.<init>(UserTr afficData.java:114) at com.ibm.commerce.event.usertraffic.Traffic.getUserTrafficData(Tr affic.java:123)
Local fix
Disabling the UserTrafficEventListener within the WebSphere Commerce configuration file (<instance>.xml/wc-server.xml) will help prevent this issue from occurring. <component compClassName="com.ibm.commerce.event.usertraffic.UserTrafficEve ntListener" enable="false" name="UserTrafficEventListener"> <property display="false"> <start enabled="false" /> </property> </component>
Problem summary
USERS AFFECTED: All WebSphere Commerce v7.0 users. PROBLEM ABSTRACT: A malformed query string causes a NoSuchElement exception to be thrown from UserTrafficData. BUSINESS IMPACT: Correct functionality to allow program to log user traffic data. RECOMMENDATION:
Problem conclusion
Parameter and parameter values will be confirmed to exist after tokenizing to make sure that tokens are valid prior to using tokens. ------------------------------------------------------------- The latest available maintenance information can be obtained from the Recommended Fixes for WebSphere Commerce technote: http://www.ibm.com/support/docview.wss?rs=3046&uid=swg21261296
Temporary fix
Comments
APAR Information
APAR number
JR41256
Reported component name
WC BUS EDITION
Reported component ID
5724I3800
Reported release
700
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2011-11-18
Closed date
2012-01-11
Last modified date
2012-01-11
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 EDITION
Fixed component ID
5724I3800
Applicable component levels
R700 PSY
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYSYL","label":"WebSphere Commerce Enterprise"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
11 January 2012