public void workAccepted(WorkEvent e) { LOG.fine("workAccepted: [" + e.getWork() + "], source is [" + e.getSource() + "]"); }
public void workCompleted(WorkEvent e) { LOG.fine("workCompleted: [" + e.getWork() + "], source is [" + e.getSource() + "]"); }
public void workStarted(WorkEvent e) { LOG.fine("workStarted: [" + e.getWork() + "], source is [" + e.getSource() + "]"); }
public void workCompleted(WorkEvent e) { if( trace ) log.trace("workCompleted, e="+e); MailActivation activation = (MailActivation) e.getWork(); try { watch(activation); } catch(InterruptedException ex) { Thread.currentThread().interrupt(); log.warn("Failed to reschedule new msg check", ex); } } // --- End WorkListener interface methods
public void workCompleted(WorkEvent event) { // Don't log doWork since exception is propagated to caller if (workType == DO) { return; } Throwable cause = event.getException(); if (cause != null && cause.getCause() != null) { cause = cause.getCause(); } if (cause != null) { logger.error(event.getWork().toString(), cause); } } }
public void workCompleted(final WorkEvent event) { // Don't log doWork since exception is propagated to caller if (workType == WorkType.DO) { return; } Throwable cause = event.getException(); if (cause != null && cause.getCause() != null) { cause = cause.getCause(); } if (cause != null) { logger.error(event.getWork().toString(), cause); } } }
public void workCompleted(final WorkEvent event) { // Don't log doWork since exception is propagated to caller if (workType == WorkType.DO) { return; } Throwable cause = event.getException(); if (cause != null && cause.getCause() != null) { cause = cause.getCause(); } if (cause != null) { logger.error(event.getWork().toString(), cause); } } }
@Override public void workRejected(WorkEvent event) { if (event.getException() != null) { logEventException(event.getWork().toString() + " Rejected", event.getException()); } }
protected void handleWorkException(WorkEvent event, String type) { if (event == null) { return; } Throwable e = event.getException(); if (e == null) { return; } if (e.getCause() != null) { e = e.getCause(); } logger.error("Work caused exception on '" + type + "'. Work being executed was: " + event.getWork().toString()); throw new MuleRuntimeException(CoreMessages.errorInvokingMessageProcessorAsynchronously(target), e); }
public void workRejected(WorkEvent event) { if (event.getException() != null) { if (event.getException() instanceof WorkCompletedException && event.getException().getCause() != null) { log.error(event.getWork().toString(), event.getException().getCause()); } else { log.error(event.getWork().toString(), event.getException()); } } } };
@Override public void workCompleted(WorkEvent event) { if (event.getException() != null) { logEventException(event.getWork().toString() + " Completed with exception", event.getException()); } }
public void workRejected(WorkEvent e) { LOG.severe("workRejected: [" + e.getWork() + "], source is [" + e.getSource() + "]"); LOG.severe("root cause is:" + e.getException().getMessage()); e.getException().printStackTrace(); }
protected void handleWorkException(WorkEvent event, String type) { Throwable e; if (event != null && event.getException() != null) { e = event.getException(); } else { return; } if (event.getException().getCause() != null) { e = event.getException().getCause(); } logger.error("Work caused exception on '" + type + "'. Work being executed was: " + event.getWork().toString()); logger.error(e); } }
protected void handleWorkException(WorkEvent event, String type) { if (event == null) { return; } Throwable e = event.getException(); if (e == null) { return; } if (e.getCause() != null) { e = e.getCause(); } logger.error("Work caused exception on '" + type + "'. Work being executed was: " + event.getWork().toString()); if (e instanceof Exception) { muleContext.getExceptionListener().handleException((Exception) e); } else { muleContext.getExceptionListener().handleException(new MuleRuntimeException(connectorCausedError(this.getName()), e)); } }
+ event.getWork().toString());