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

Start taskengine runtime

When I try to start the TaskEngine via DefaultTaskService I get the following exception in Hybris 6.7:

 Exception in thread "Task-master-poll" de.hybris.platform.servicelayer.exceptions.SystemException: Cannot execute Task Polling Thread with HybrisWebClassLoader in class loader hierarchy. Current context classloader is: de.hybris.tomcat.HybrisWebappLoader$HybrisWebappClassLoader
         at de.hybris.platform.task.impl.DefaultTaskService$Poll.assertNoHybrisWebAppClassLoader(
         at de.hybris.platform.task.impl.DefaultTaskService$
         at de.hybris.platform.core.AbstractTenant$
         at de.hybris.platform.core.threadregistry.RegistrableThread.internalRun(

With this jsp script:

     final TaskService taskService = Registry.getApplicationContext().getBean("taskService", TaskService.class);
     TaskEngine engine = taskService.getEngine();
     boolean running = engine.isRunning();

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Sep 27, 2018 at 02:35 PM

    Hi Hidde,

    You could try to execute it from a beanshell script:



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 27, 2018 at 11:30 AM


    Hybris tries to drop a hint to you that you'd better not doing such a thing from a jsp page :-) I'd propose to move this logic to some custom service method to avoid its usage in the web part.

    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.