Technote

(FAQ)
When dynamic kits are added to the shopping cart, no data is sent to Coremetrics
Problem
When dynamic kits are added to the shopping cart, no data is sent to Coremetrics. However, if the object given isn't a package, bundle, or item, it is considered product by default and the commerce server tries to instantiate a ProductDataBean.

In this case the tag and object used is:

<!-- Coremetrics Tags -->
<c:if test="${!empty WCParam.orderId}">
<cm:cart databean="${orderItemDataBean}"/>
</c:if>
<cm:pageview />

This results in the following exception:

[5/9/07 13:26:37:461 CEST] 0000002d ServletWrappe E SRVE0068E: Could
not invoke the service() method on servlet
/ConsumerDirect/ShoppingArea/ShopcartSection/OrderItemDisplay.jsp. Exception
thrown : javax.servlet.ServletException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
tImpl.java:650)
at
com.ibm._jsp._OrderItemDisplay._jspService(_OrderItemDisplay.java:4228)
...
Cause
The ProductDataBean should not be used in this scenario and causes the exception above.
Solution
An APAR has been created to allow the Cart and Order tags to get the relevant order item data using the OrderItemDataBean.

Contact WebSphere Commerce Support to obtain APAR LI72415.

 

Document Information

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