Connection Failed
-----------------
Key: TRINIDAD-2071
URL: https://issues.apache.org/jira/browse/TRINIDAD-2071
Project: MyFaces Trinidad
Issue Type: Bug
Components: Components
Affects Versions: 1.0.5-core
Environment: We are running on a Unix server using Oracle 10g as an
application server in a clustered environment
Reporter: ACTUR
We are experiencing a connection failure issue the message appears to be
coming from trinidad-impl-1.0.5.jar - \META-INF\adf\jsLibs\xhr\RequestQueue.js
stating a connection failure. This usually happens when a user selects a
component that is doing a partial page refresh. The application hangs for about
20 seconds and then returns the connection fail message. We only found one
similar issue out there and with a work around to comment out the message in
the RequestQueue.js however this does not completely fix the problem we still
experience the delay without the message. Is there a fix for this. Below is
the solution we have found on a blog:
TrRequestQueue._alertError = function()
{
var failedConnectionText = TrRequestQueue._getFailedConnectionText();
if (failedConnectionText != null)
alert("Trapped Connection Failed !!! ");
}
TrRequestQueue._getFailedConnectionText() : This method returns 'Connection
Failed' This message is given whenever any issue occures with IFrames that
are used internally in trinidad. But it has no major impact on app, so can
be taken as warning. SO the solution is to just override this method &
comment out the code as below.
TrRequestQueue._alertError = function()
{
// Do nothing. Supressing alert code.
// var failedConnectionText = TrRequestQueue._getFailedConnectionText();
//if (failedConnectionText != null)
// alert("Trapped Connection Failed !!! ");
}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira