【问题标题】:'This page cannot be displayed' error on long running ColdFusion 9 page长时间运行的 ColdFusion 9 页面上出现“此页面无法显示”错误
【发布时间】:2014-02-06 15:42:27
【问题描述】:

我们在 ColdFusion 9 上运行了一个长时间运行的 ColdFusion 脚本,该脚本出错并显示以下消息:

This page cannot be displayed 

Internal system error while processing the request for this page (http:///www.example.com).

Please retry this request.

If this condition persists please contact your corporate network administrator and provide the code shown below.

Notification codes

(1, INTERNAL_ERROR, http:///www.example.com)

我无法确定是 ColdFusion 的哪个部分生成了这些错误,也没有任何其他信息,因为我无法重现错误并且只有屏幕截图中的详细信息。

有谁知道可能导致此错误的原因或我如何找到有关它的更多信息?

【问题讨论】:

  • 您检查过 CF 错误日志吗?
  • 它们可能表示 java 堆空间错误。
  • 此消息是通用的,指向网络问题。 ColdFusion 应用程序和异常日志将记录错误。检查它们。

标签: coldfusion coldfusion-9 server-error


【解决方案1】:

使用 try/catch 块来包装您的代码,并让它向您发送一封包含所有错误详细信息的电子邮件(或者您可以将这些记录到您的数据库或将它们写入日志等)。

<cftry>

    <!--- your code goes here --->

    <!--- catch and email any exceptions --->       
    <cfcatch type="any">

        <cfmail to="your-email" from="your-email" subject="something" type="html">

            <h3>An Error Occurred on #cfi.script_name#</h3>

            <h3><strong>DATE:</strong> #dateFormat(now(), "mm/dd/yyyy") & " " & timeFormat(now(), "hh:mm:ss")#</h3>

            <br />
            <br />
            <cfif isDefined("cfcatch")>
                <h5>catch object:</h5>
                <cfdump var="#cfcatch#">
                <br />
                <br />
            </cfif>
            <cfif isDefined("ERROR")>
                <h5>Error object:</h5>
                <cfdump var="#ERROR#">
                <br />
                <br />
            </cfif>
            <cfif isDefined("cgi")>
                <h5>cgi object:</h5>
                <cfdump var="#cgi#">
                <br />
                <br />
            </cfif>
            <cfif isDefined("variables")>
                <h5>variables object:</h5>
                <cfdump var="#variables#">
                <br />
                <br />
            </cfif>
            <cfif isDefined("form")>
                <h5>form object:</h5>
                <cfdump var="#form#">
                <br />
                <br />
            </cfif>
            <cfif getapplicationMetadata().sessionmanagement and isDefined("session")>
                <h5>session object:</h5>
                <cfdump var="#session#">
                <br />
                <br />
            </cfif>
            <cfif isDefined("local")>
                <h5>local object:</h5>
                <cfdump var="#local#">
                <br />
                <br />
            </cfif>

        </cfmail>

    </cfcatch>
</cftry>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-08-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-07-21
    • 1970-01-01
    • 2016-03-31
    相关资源
    最近更新 更多