Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 20, 2014 at 10:48 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2016 at 09:37 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 14, 2016 at 05:09 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 14, 2016 at 08:01 PM

    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?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.