When accessing TIBCO Active Matrix (AMX) Administrator Graphic User Interface (GUI), it throws "Failed to enforce policies, For input string: RequestURI=/amxadministrator/".

When accessing TIBCO Active Matrix (AMX) Administrator Graphic User Interface (GUI), it throws "Failed to enforce policies, For input string: RequestURI=/amxadministrator/".

book

Article ID: KB0092523

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix Policy Director -
TIBCO ActiveMatrix Service Bus -
TIBCO ActiveMatrix Service Grid -

Description

Description:
(AMX) Administrator can not be accessed with either http://<machine>:8120/amxadministrator/loginForm.jsp  or  http://<machine>:8120/amxadministrator/ . 
Symptoms:

1). From IE it returns the HTTP 500 Error. From Firefox it returns HTTP 500 and “Failed to enforce policies” error.


2). After enabling trace log for com.tibco.amx.governance on System node log, we following trace is seen.


===========
22 Jun 2015 17:29:18,185 [amxAdminDefaultHttpConnector_24 - /amxadministrator/loginForm.jsp] [TRACE] [] com.tibco.amx.governance.pa.amxcomponent.pep.http.HttpPepProcessor - Error processing HTTP request.
com.tibco.governance.agent.action.ActionException: Failed to enforce policies.
at com.tibco.governance.pa.amxcomponent.pep.PepToPdpProxy.enforcePolicy(PepToPdpProxy.java:203)
...
Caused by: java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:470)
at java.lang.Integer.parseInt(Integer.java:499)
at com.tibco.amf.admin.server.TibcoAxisServletListener.sessionCreated(TibcoAxisServletListener.java:46)
at org.mortbay.jetty.servlet.AbstractSessionManager.addSession(AbstractSessionManager.java:577)
at org.mortbay.jetty.servlet.AbstractSessionManager.newHttpSession(AbstractSessionManager.java:415)
at org.mortbay.jetty.Request.getSession(Request.java:1227)
at org.mortbay.jetty.Request.getSession(Request.java:1199)
at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:224)
at com.tibco.governance.pa.amxcomponent.pep.http.HttpActionContext.getSubject(HttpActionContext.java:270)
at com.tibco.governance.pa.amxcomponent.pep.http.HttpActionContext.extractActionProperties(HttpActionContext.java:119)
at com.tibco.governance.pa.amxcomponent.pep.PepToPdpProxy.enforcePolicy(PepToPdpProxy.java:160)
... 26 more
===========

Cause:
The http session timeout in database was not correctly set thus caused the GUI access issue.

Resolution

Verify the value of HTTPSESSIONTIMEOUT in the database table "ADMINCONFIG". Proceed with the steps below if this value is not correct.


1). Backup entire database or table "ADMINCONFIG".
2). Set the value of HTTPSESSIONTIMEOUT to 30.
3). Stop SystemNode.
4). Backup/Clean up those folders which names start with "jetty" under <tibcohost>\<instance name>\data_3.2.x\nodes\SystemNode\work .
5). Restart SystemNode with the -clean option.

Issue/Introduction

When accessing TIBCO Active Matrix (AMX) Administrator Graphic User Interface (GUI), it throws "Failed to enforce policies, For input string: RequestURI=/amxadministrator/".