IDEMPIERE-3380 Scheduler doesn't log role access error.

This commit is contained in:
Heng Sin Low 2017-05-31 07:33:40 +08:00
parent e466ebd1ae
commit 37bafb5851
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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();