<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello Petr,</p>
    <p>are you sure this worked before? Looking at the source code I
      think it would result in a search for bean named
      taskManagerQuartzImpl that should not exist (taskManager exists).</p>
    <p>Anyway, changing the parameter to TaskManager.class should
      resolve the issue.</p>
    <p>Best regards,<br>
    </p>
    <pre class="moz-signature" cols="72">Pavol Mederly
Software developer
evolveum.com
</pre>
    <div class="moz-cite-prefix">On 14.01.2019 18:47, Petr Gašparík -
      AMI Praha a.s. wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CABAspd3Gb9SJLZRTs+47AYkqTB1DVNeQxGWBysLp=GWOQcz=mg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">Hi,
          <div>I am looking for any idea why this Groovy script stopped
            "suddenly" work, after months of successfully working in
            servertask:</div>
          <div><br>
          </div>
          <div>
            <div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:Consolas,"Courier New",monospace;font-size:14px;line-height:19px;white-space:pre"><div>                taskManager = SpringApplicationContextHolder.getApplicationContext().getBean(TaskManagerQuartzImpl.class);</div></div>
          </div>
          <div><br>
          </div>
          <div>Error:<br>
          </div>
          <div>
            <div><i>Couldn't execute script: Couldn't execute script:
                com.evolveum.midpoint.model.api.ScriptExecutionException:
                Couldn't execute action 'execute-script' on
                POV:user:cb0807af-83a4-49fd-9b38-0ab5ef11edca(100020):
                org.springframework.beans.factory.NoSuchBeanDefinitionException:
                No qualifying bean of type
                'com.evolveum.midpoint.task.quartzimpl.TaskManagerQuartzImpl'
                available in in 'execute-script' action</i><br>
            </div>
          </div>
          <div><br>
          </div>
          <div>Thank you.</div>
          <div>MidPoint is 3.7.3-SNAPSHOT</div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
  </body>
</html>