APAR status
Closed as program error.
Error description
If you use a custom view to form the email body for shopper email notifications, REST calls inside JSP pages (which forms the mail content) are failing. For example, when the store invokes PurchaseOrderEmailNotificationView REST request, you might encounter an error similar to the following message: [2/3/16 12:32:09:284 IST] 0000019a ExceptionEnti > com.ibm.commerce.foundation.rest.providers.ExceptionEntityProvid er toResponse ENTRY java.lang.ClassCastException: com.ibm.commerce.messaging.programadapter.security.CredentialsSp ecifiedProgramAdapterSessionContextImpl incompatible with com.ibm.commerce.browseradapter.HttpSessionContext [2/3/16 12:32:09:287 IST] 0000019a ExceptionEnti 1 com.ibm.commerce.foundation.rest.providers.ExceptionEntityProvid er toResponse java.lang.ClassCastException: com.ibm.commerce.messaging.programadapter.security.CredentialsSp ecifiedProgramAdapterSessionContextImpl incompatible with com.ibm.commerce.browseradapter.HttpSessionContext at com.ibm.commerce.foundation.rest.handlers.CommerceTokenRequestHa ndler.handleRequest(CommerceTokenRequestHandler.java:340) The issue occurs because WebSphere Commerce assumes that the session context is an HttpSessionContext in local binding, but that might not be the case every time.
Local fix
Problem summary
USERS AFFECTED: WebSphere Commerce Version 7 Feature Pack 8 environments that use REST tags in the context of an email template or page container, running through local binding PROBLEM ABSTRACT: Cannot use a custom view to form the email body for email notifications BUSINESS IMPACT: Cannot use a custom view to form the email body. RECOMMENDATION:
Problem conclusion
Wrapped retrieval of session context in local binding with a check to ensure that session context is an instance of HttpSessionContext before using session context. If it is not, the prefetched activity token will be used for the request.
Temporary fix
Comments
APAR Information
APAR number
JR55466
Reported component name
WC BUS DEV ED W
Reported component ID
5724I3900
Reported release
700
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2016-03-04
Closed date
2016-03-16
Last modified date
2016-03-16
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
R700 PSY
UP
[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SSYT2H","label":"WebSphere Commerce Developer Enterprise"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB31","label":"WCE Watson Marketing and Commerce"}}]
Document Information
Modified date:
11 December 2021