SAP Knowledge Base Article - Preview

2728452 - How to abort a B2BAcceleratorCartToOrderJob

Symptom

B2BAcceleratorCartToOrderJob is the default implementation of a cron job that creates ReplenishmentProcessModel, a business process that knows how to create a replenishment order.

In some cases, one will find that it is not possible to abort this job if it is stuck in status CONTINUED or RUNNING. Despite trying any workaround (e.g. see KBA 2728389), the CronJob will automatically execute again upon the next server restart.

The CronJob can remain in this state for a long time until some manual intervention is made. In the meantime, the thread dumps will show threads sleeping while performing this job:

INFO | jvm 1 | main | 2018/11/21 22:16:26.548 | java.lang.Thread.State: TIMED_WAITING (sleeping)
INFO | jvm 1 | main | 2018/11/21 22:16:26.548 | at java.lang.Thread.sleep(J)V(Native Method)
INFO | jvm 1 | main | 2018/11/21 22:16:26.548 | at de.hybris.platform.b2bacceleratorservices.order.impl.B2BAcceleratorCartToOrderJob.perform(Lde/hybris/platform/orderscheduling/model/CartToOrderCronJobModel;)Lde/hybris/platform/servicelayer/cronjob/PerformResult;(B2BAcceleratorCartToOrderJob.java:54)
INFO | jvm 1 | main | 2018/11/21 22:16:26.548 | at de.hybris.platform.b2bacceleratorservices.order.impl.B2BAcceleratorCartToOrderJob.perform(Lde/hybris/platform/cronjob/model/CronJobModel;)Lde/hybris/platform/servicelayer/cronjob/PerformResult;(B2BAcceleratorCartToOrderJob.java:1)
INFO | jvm 1 | main | 2018/11/21 22:16:26.549 | at de.hybris.platform.servicelayer.internal.jalo.ServicelayerJob.performCronJob(Lde/hybris/platform/cronjob/jalo/CronJob;)Lde/hybris/platform/cronjob/jalo/CronJob$CronJobResult;(ServicelayerJob.java:38)
INFO | jvm 1 | main | 2018/11/21 22:16:26.549 | at de.hybris.platform.cronjob.jalo.Job.execute(Lde/hybris/platform/cronjob/jalo/CronJob;Lde/hybris/platform/servicelayer/event/events/BeforeCronJobStartEvent;Lde/hybris/platform/servicelayer/event/events/AfterCronJobFinishedEvent;)V(Job.java:1390)


Read more...

Environment

Any hybris version which has an implementation of B2BAcceleratorCartToOrderJob.

Product

SAP Hybris Commerce 1808 ; SAP Hybris Commerce 6.0 ; SAP Hybris Commerce 6.1 ; SAP Hybris Commerce 6.2 ; SAP Hybris Commerce 6.3 ; SAP Hybris Commerce 6.4 ; SAP Hybris Commerce 6.5 ; SAP Hybris Commerce 6.6 ; SAP Hybris Commerce 6.7

Keywords

  • hybris
  • commerce
  • cron job
  • abort
  • stop
  • kill
  • replenishment process
  • ReplenishmentProcess
  • repair
, KBA , CEC-COM-CPS , SAP Commerce , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.