Skip to Content
0
Former Member
Sep 03, 2014 at 12:02 PM

Runtime exception on opening order's promotions tab in the HMC

139 Views

HI,

As part of a POC we are using the OOB Apparel UK webstore to place orders in which promotions have been placed and then cancelling them. We have seen that consignment gets created as soon as the order is placed, so we use the HMC to delete the consignment and change the order status from "Completed" to "Approved".

After this we use the CS cockpit to perform full order cancellation or partial order cancellation. However after the cancellation, when we try to open the promotions tab in the Order in the HMC then we get the following runtime exception.

 INFO   | jvm 1    | main    | 2014/09/03 15:20:59.813 | SEVERE: Servlet.service() for servlet jsp threw exception
 INFO   | jvm 1    | main    | 2014/09/03 15:20:59.814 | java.lang.RuntimeException: Cannot consume more that quantity
 INFO   | jvm 1    | main    | 2014/09/03 15:20:59.814 |     at de.hybris.platform.promotions.result.WrappedOrderEntry.consume(WrappedOrderEntry.java:170)
 INFO   | jvm 1    | main    | 2014/09/03 15:20:59.815 |     at de.hybris.platform.promotions.result.WrappedOrderEntry.consumePromotionOrderEntryConsumed(WrappedOrderEntry.java:245)
 INFO   | jvm 1    | main    | 2014/09/03 15:20:59.815 |     at de.hybris.platform.promotions.result.PromotionOrderResults.removeConsumedEntries(PromotionOrderResults.java:622)
 INFO   | jvm 1    | main    | 2014/09/03 15:20:59.815 |     at de.hybris.platform.promotions.result.PromotionOrderResults.getEntriesNotInFiredPromotions(PromotionOrderResults.java:505)
 INFO   | jvm 1    | main    | 2014/09/03 15:20:59.816 |     at de.hybris.platform.promotions.result.PromotionOrderResults.getEntriesNotInPromotions(PromotionOrderResults.java:384)
 INFO   | jvm 1    | main    | 2014/09/03 15:20:59.816 |     at org.apache.jsp.ext.promotions.OrderPromotionsTabChip_jsp._jspService(OrderPromotionsTabChip_jsp.java:772)


We need support to understand what is the reason for getting this runtime exception.

Thanks, /Dushyant