IDEMPIERE-3534 Webservice error - Cannot Access

This commit is contained in:
Carlos Ruiz 2017-10-31 17:30:55 +01:00
parent f5b85983cd
commit 5dbdbc93aa
2 changed files with 9 additions and 7 deletions

View File

@ -61,7 +61,7 @@ public final class MRole extends X_AD_Role
/**
*
*/
private static final long serialVersionUID = 3608297024439006903L;
private static final long serialVersionUID = 8952907008982481439L;
/**
* Get Default (Client) Role
@ -1488,7 +1488,7 @@ public final class MRole extends X_AD_Role
* @param AD_Window_ID window
* @return null in no access, TRUE if r/w and FALSE if r/o
*/
public Boolean getWindowAccess (int AD_Window_ID)
public synchronized Boolean getWindowAccess (int AD_Window_ID)
{
if (m_windowAccess == null)
{
@ -1575,7 +1575,7 @@ public final class MRole extends X_AD_Role
* @param AD_Process_ID process
* @return null in no access, TRUE if r/w and FALSE if r/o
*/
public Boolean getProcessAccess (int AD_Process_ID)
public synchronized Boolean getProcessAccess (int AD_Process_ID)
{
if (m_processAccess == null)
{
@ -1657,7 +1657,7 @@ public final class MRole extends X_AD_Role
* @param AD_Task_ID task
* @return null in no access, TRUE if r/w and FALSE if r/o
*/
public Boolean getTaskAccess (int AD_Task_ID)
public synchronized Boolean getTaskAccess (int AD_Task_ID)
{
if (m_taskAccess == null)
{
@ -1737,7 +1737,7 @@ public final class MRole extends X_AD_Role
* @param AD_Form_ID form
* @return null in no access, TRUE if r/w and FALSE if r/o
*/
public Boolean getFormAccess (int AD_Form_ID)
public synchronized Boolean getFormAccess (int AD_Form_ID)
{
if (m_formAccess == null)
{
@ -1817,7 +1817,7 @@ public final class MRole extends X_AD_Role
* @param AD_Workflow_ID workflow
* @return null in no access, TRUE if r/w and FALSE if r/o
*/
public Boolean getWorkflowAccess (int AD_Workflow_ID)
public synchronized Boolean getWorkflowAccess (int AD_Workflow_ID)
{
if (m_workflowAccess == null)
{
@ -3086,7 +3086,7 @@ public final class MRole extends X_AD_Role
return whereClause.toString();
}
public Boolean getInfoAccess(int AD_InfoWindow_ID) {
public synchronized Boolean getInfoAccess(int AD_InfoWindow_ID) {
if (m_infoAccess == null)
{
m_infoAccess = new HashMap<Integer,Boolean>(20);

View File

@ -424,6 +424,8 @@ public class ModelADServiceImpl extends AbstractService implements ModelADServic
reqprocess.setADRecordID(modelRunProcess.getADRecordID());
reqprocess.setDocAction(modelRunProcess.getDocAction());
RunProcessResponseDocument response = Process.runProcess(getCompiereService(), docprocess, getRequestCtx(), localTrxName);
if (response != null && response.getRunProcessResponse() != null && response.getRunProcessResponse().getIsError())
log.warning("Error running webservice " + serviceType + " -> " + response.getRunProcessResponse().getError());
Map<String, Object> requestCtx = getRequestCtx();
requestCtx.put(serviceType+"_Summary", response.getRunProcessResponse().getSummary());
return response;