cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

0 Kudos

Hey guys, it seems that the reason is because of there are 2 stackable promotions applied to the same entry. The first entry quantity is consumed perfectly after analizying the first promotion but when trying to consume the second one there is not more quantity left to consume because it was already consumed. Is the run time exception really needed?

0 Kudos

Hey guys, I have the same problem in hybris 6.0.0.0. If a product fixed price and a product percentage promotion are applied at the same time to the cnd then I go to the promotions tab in the hmc or the backoffice I get the same error. Did you find any way to solve that?

Thanks Mauro

Former Member
0 Kudos

Anything new on this topic? Could you solve the problem? I'm facing the same exception when opening the Promotions tab in hMC. Using new rule based promotions engine in hybris 6.0.0.0.

There a no exception or errors on startup.

By the way, the same error / exception occurs when viewing the data in backoffice.

Former Member
0 Kudos

Hi , Dushyant,

The exception seems to incorrect initialization of the Project. Please first run ant clean all than start the server. Also note that is any error coming during server start up ? If coming than resolve the same first.