diff --git a/org.adempiere.base/src/org/compiere/model/MPInstance.java b/org.adempiere.base/src/org/compiere/model/MPInstance.java index 39ffbcba9e..1c215ce208 100644 --- a/org.adempiere.base/src/org/compiere/model/MPInstance.java +++ b/org.adempiere.base/src/org/compiere/model/MPInstance.java @@ -220,7 +220,7 @@ public class MPInstance extends X_AD_PInstance MRole role = MRole.get(getCtx(), AD_Role_ID); Boolean access = role.getProcessAccess(AD_Process_ID); if (access == null || !access.booleanValue()) - throw new IllegalAccessError(Msg.getMsg(getCtx(), "CannotAccessProcess", new Object[] {AD_Process_ID, role.getName()})); + throw new IllegalStateException(Msg.getMsg(getCtx(), "CannotAccessProcess", new Object[] {AD_Process_ID, role.getName()})); } super.setAD_Process_ID (AD_Process_ID); } // setAD_Process_ID diff --git a/org.adempiere.server/src/main/server/org/compiere/server/Scheduler.java b/org.adempiere.server/src/main/server/org/compiere/server/Scheduler.java index 465dc44fca..1e275ff246 100644 --- a/org.adempiere.server/src/main/server/org/compiere/server/Scheduler.java +++ b/org.adempiere.server/src/main/server/org/compiere/server/Scheduler.java @@ -118,7 +118,7 @@ public class Scheduler extends AdempiereServer m_summary.append(runProcess(process)); m_trx.commit(true); } - catch (Exception e) + catch (Throwable e) { if (m_trx != null) m_trx.rollback();