Technote

(troubleshooting)
Intermittent exceptions are encountered from BusinessContext during the shopping flow
Problem(Abstract)
Shoppers will encounter intermittent generic error pages. The logs might indicate that you have BusinessContextServiceExceptions for one or both of the following reasons:

1) DuplicateKeyExceptions

CMN0409E: The following error has occurred during processing: com.ibm.commerce.context.exception.BusinessContextServiceException: The following create operation exception has occurred during processing: "javax.ejb.DuplicateKeyException"

2) BusinessContextNotFoundException

CMN3101E The system is unavailable due to "CMN0409E". System The following error has occurred during processing: com.ibm.commerce.context.exception.BusinessContextNotFoundException:
Business context " com.ibm.commerce.context.base.BaseContext" not found for activity "137351"

3) Foreign Key exceptions on tools logon

java.sql.SQLException: [IBM][CLI Driver][DB2/NT] SQL0530N
The insert or update value of the FOREIGN KEY "WASADMIN.CTXDATA.F_1085"
is not equal to any value of the parent key of the parent table.
SQLSTATE=23503 DSRA0010E: SQL State = 23503, Error Code = -530
Cause In most cases, this can occur due to a program error. An APAR fix is currently available.

However, there are also certain scenarios where these errors are valid. For example:

  1. Submitting two identical requests concurrently

  2. Accidentally deleting business context data that belong to open sessions

If you are still running into this error after applying the APAR fix, please confirm if any of these scenarios are occurring on your shopping flow. Resolving the problem Contact IBM WebSphere Commerce support for APAR fix JR27317.
Cross Reference information
Segment Product Component Platform Version Edition
Commerce WebSphere Commerce Professional Edition Runtime AIX, i5/OS, Linux, Solaris, Windows 6.0, 6.0.0.1, 6.0.0.2 Professional Edition
   

Document Information

Current web document: http://www.ibm.com/support/docview.wss?uid=swg21263614