IDEMPIERE-564 Exception from the instantiation of extension process is swallow by the system.

This commit is contained in:
Heng Sin Low 2013-01-18 23:03:44 +08:00
parent 78d846ccad
commit d7a09de753
2 changed files with 20 additions and 2 deletions

View File

@ -221,7 +221,6 @@ public class ProcessDialog extends Window implements EventListener<Event>, IProc
private boolean isParameterPage = true;
private String initialMessage;
private BusyDialog progressWindow;
@SuppressWarnings("unused")
private Future<?> future;
private ProcessDialogRunnable processDialogRunnable;
@ -356,6 +355,16 @@ public class ProcessDialog extends Window implements EventListener<Event>, IProc
}
private void onComplete() {
if (future != null) {
try {
future.get();
} catch (Exception e) {
log.log(Level.SEVERE, e.getLocalizedMessage(), e);
if (!m_pi.isError()) {
m_pi.setSummary(e.getLocalizedMessage(), true);
}
}
}
future = null;
processDialogRunnable = null;
unlockUI(m_pi);

View File

@ -215,7 +215,6 @@ public class ProcessModalDialog extends Window implements EventListener<Event>,
private BusyDialog progressWindow;
private boolean isLocked = false;
private org.adempiere.webui.apps.ProcessModalDialog.ProcessDialogRunnable processDialogRunnable;
@SuppressWarnings("unused")
private Future<?> future;
/**
@ -427,6 +426,16 @@ public class ProcessModalDialog extends Window implements EventListener<Event>,
}
private void onComplete() {
if (future != null) {
try {
future.get();
} catch (Exception e) {
log.log(Level.SEVERE, e.getLocalizedMessage(), e);
if (!m_pi.isError()) {
m_pi.setSummary(e.getLocalizedMessage(), true);
}
}
}
future = null;
processDialogRunnable = null;
unlockUI(m_pi);