IDEMPIERE-564 Exception from the instantiation of extension process is swallow by the system.
This commit is contained in:
parent
78d846ccad
commit
d7a09de753
|
|
@ -221,7 +221,6 @@ public class ProcessDialog extends Window implements EventListener<Event>, IProc
|
||||||
private boolean isParameterPage = true;
|
private boolean isParameterPage = true;
|
||||||
private String initialMessage;
|
private String initialMessage;
|
||||||
private BusyDialog progressWindow;
|
private BusyDialog progressWindow;
|
||||||
@SuppressWarnings("unused")
|
|
||||||
private Future<?> future;
|
private Future<?> future;
|
||||||
private ProcessDialogRunnable processDialogRunnable;
|
private ProcessDialogRunnable processDialogRunnable;
|
||||||
|
|
||||||
|
|
@ -356,6 +355,16 @@ public class ProcessDialog extends Window implements EventListener<Event>, IProc
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onComplete() {
|
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;
|
future = null;
|
||||||
processDialogRunnable = null;
|
processDialogRunnable = null;
|
||||||
unlockUI(m_pi);
|
unlockUI(m_pi);
|
||||||
|
|
|
||||||
|
|
@ -215,7 +215,6 @@ public class ProcessModalDialog extends Window implements EventListener<Event>,
|
||||||
private BusyDialog progressWindow;
|
private BusyDialog progressWindow;
|
||||||
private boolean isLocked = false;
|
private boolean isLocked = false;
|
||||||
private org.adempiere.webui.apps.ProcessModalDialog.ProcessDialogRunnable processDialogRunnable;
|
private org.adempiere.webui.apps.ProcessModalDialog.ProcessDialogRunnable processDialogRunnable;
|
||||||
@SuppressWarnings("unused")
|
|
||||||
private Future<?> future;
|
private Future<?> future;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -427,6 +426,16 @@ public class ProcessModalDialog extends Window implements EventListener<Event>,
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onComplete() {
|
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;
|
future = null;
|
||||||
processDialogRunnable = null;
|
processDialogRunnable = null;
|
||||||
unlockUI(m_pi);
|
unlockUI(m_pi);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue