2017-02-06 2 views
2

私は、lucee 5.1.0.34でfusebox 5アプリケーションを設定しました。 com/reports /フォルダにはcfcがあります。私はcfcからリモートメソッドを実行します。それは私に次のエラーを与えている。Luceeドキュメントが空ですエラー

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

私は、ログをチェックし、たくさん検索しています。私はこの問題について助けを見つけることができませんでした。任意のボディでこれを解決できますか?

答えて

1

メソッド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> 
関連する問題