<div dir="ltr">Hello Everybody,<div><br></div><div>currently my biggest issue is that google API sometimes returns 503 service unavailable. This result in fatal error in recompute task.</div><div><br></div><div>I need this to result only in partial error for recompute task to continue. Which exception should I throw from connector? I know that it can be solved easily in midpoint 3.5 but AFAIK it is not ready yet and when it becomes ready I have a lot to fix because of prism changes.</div><div><br></div><div>I also tried writing script execution task but exception somehow makes it through try catch in groovy and stops task execution. Code below:</div><div><br></div><div><div><s:action></div><div>                  <s:type>execute-script</s:type></div><div>                  <s:parameter></div><div>                      <s:name>script</s:name></div><div>                      <c:value xsi:type="c:ScriptExpressionEvaluatorType"></div><div>                      <span class="gmail-Apple-tab-span" style="white-space:pre">      </span><c:code></div><div>                      <span class="gmail-Apple-tab-span" style="white-space:pre">                </span>import com.evolveum.midpoint.util.exception.ExpressionEvaluationException;</div><div>                      <span class="gmail-Apple-tab-span" style="white-space:pre">            </span>import java.io.StringWriter;</div><div>                      <span class="gmail-Apple-tab-span" style="white-space:pre">          </span>import java.io.PrintWriter;</div><div>                      <span class="gmail-Apple-tab-span" style="white-space:pre">           </span>import com.evolveum.midpoint.xml.ns._public.common.common_3.UserType;</div><div>                      <span class="gmail-Apple-tab-span" style="white-space:pre">         </span></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                                       </span>try{</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                                           </span>midpoint.recompute(UserType.class, input.oid);</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                                         </span>log.error("recomputing user " + input.getName() + " finished OK");</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                                 </span>}catch(Exception exception){</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                                           </span>StringWriter errors = new StringWriter();</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                                              </span>exception.printStackTrace(new PrintWriter(errors));</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                                            </span>stackTrace = errors.toString();</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                                                </span>//log.error("recomputing user " + input.getName() + " threw exception " + stackTrace);</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                                     </span>}</div><div>                        </c:code></div><div>                      </c:value></div><div>                  </s:parameter></div><div>               </s:action></div><div><br></div><div>Best Regards</div><div><br></div><div>Oskar Butovič</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><table style="font-family:verdana,arial,helvetica,sans-serif;border-collapse:collapse;padding:0px;margin:0px;border-width:0px;border-style:solid;width:482px"><tbody><tr style="padding:0px;margin:0px;border:0px solid gray"><td style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:11px;width:160px;vertical-align:bottom;padding:0px;border:0px solid gray"><p><span style="font-size:14px;font-weight:bold">Oskar Butovič</span><br>solution architect<br><br>gsm: [+420] 774 480 101<br>e-mail: <a href="mailto:oskar.butovic@ami.cz" target="_blank">oskar.butovic@ami.cz</a></p></td><td style="color:rgb(0,0,0);font-family:verdana,arial,helvetica,sans-serif;font-size:10px;border-width:0px 1px 0px 0px;border-style:solid;border-color:gray rgb(204,204,204) gray gray;padding:0px">   </td><td style="color:rgb(0,0,0);font-family:verdana,arial,helvetica,sans-serif;font-size:10px;padding:0px;border:0px solid gray">   </td><td style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:11px;vertical-align:bottom;padding:0px;width:123px;border:0px solid gray"><p>AMI Praha a.s.<br>Pláničkova 11<br>162 00 Praha 6<br>tel.: [+420] 274 783 239<br>web: <a href="http://www.ami.cz/" target="_blank">www.ami.cz</a></p></td><td style="color:rgb(0,0,0);font-family:verdana,arial,helvetica,sans-serif;font-size:10px;border-width:0px 1px 0px 0px;border-style:solid;border-color:gray rgb(204,204,204) gray gray;padding:0px">   </td><td style="color:rgb(0,0,0);font-family:verdana,arial,helvetica,sans-serif;font-size:10px;padding:0px;border:0px solid gray">   </td><td style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:11px;margin:8px;width:116px;border:0px solid gray"><p><img src="http://www.ami.cz/images/podpis/ami_logo.gif" alt="AMI Praha a.s." style="border: 0px;"></p></td></tr><tr style="padding:0px;margin:0px;border:0px solid gray"><td colspan="7" style="color:rgb(0,0,0);font-family:verdana,arial,helvetica,sans-serif;font-size:10px;padding:0px;width:480px;border:0px solid gray"><br><a href="http://www.ami.cz/reseni-a-sluzby/bezpecnost-dat/identity-management" target="_blank"><img src="http://www.ami.cz/images/podpis/AMI-podpis-IdM_1.png" alt="AMI Praha a.s." style="border: 0px; width: 480px; height: 82px;"></a></td></tr><tr style="padding:0px;margin:0px;border:0px solid gray"><td colspan="7" style="color:rgb(128,128,128);font-family:arial,sans-serif;font-size:11px;padding:0px;border:0px solid gray"><br>Textem tohoto e-mailu podepisující neslibuje uzavřít ani neuzavírá za společnost AMI Praha a.s.<br>jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít výhradně písemnou formu.<br><br></td></tr></tbody></table></div></div></div></div></div></div></div>
</div></div>