gpt4 book ai didi

coldfusion - Lucee Document is empty 错误

转载 作者:行者123 更新时间:2023-12-04 00:03:41 24 4
gpt4 key购买 nike

我在 lucee 5.1.0.34 上配置了 fusebox 5 应用程序。 com/reports/文件夹中有一个 cfc。当我从 cfc 运行远程方法时。它给我以下错误。

enter image description here

这是我的cfc代码。

<cfcomponent displayname="Reports" output="yes">
<cffunction name="test" access="remote" output="yes">
<cfoutput>testing</cfoutput>
</cffunction>
</cfcomponent>

我正在这样的浏览器中运行该方法。

http://example.com/com/reports/abc.cfc?method=test

我检查了日志并进行了大量搜索。我没有找到关于这个问题的任何帮助。任何人都可以帮我解决这个问题

最佳答案

默认情况下,运行方法 remote 会返回内容类型为 text/xml 的页面。您的浏览器将其解释为损坏的 xml。试试这个。

<cfcomponent displayname="Reports" output="yes">
<cffunction name="test" access="remote" output="yes">
<cfcontent type="text/html">
<cfoutput>testing</cfoutput>
</cffunction>
</cfcomponent>

关于coldfusion - Lucee Document is empty 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42073273/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com