目前,我们有两个服务器运行着ColdFusion 8的相同配置(据我所知):
我们使用Flash来使用一个组件的数据自定义闪存资产。
在一台服务器上,调用工作正常:
HTTP/1.1 200 OK
Content-Length: 298
Content-Type: application/x-amf
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: X-Requested-With
Date: Thu, 10 Jan 2013 13:12:11 GMT
������
/1/onResult�null���������COPYTEXT�JIf ...对另一方的相同调用失败了:
<head><title>JRun Servlet Error</title></head><h1>500 </h1><body>
<br><pre>
java.lang.NullPointerException
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:285)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
</pre></body>如前所述,我比较了这两个框的配置,两者似乎都很好。
我还将日志代码添加到被调用的组件中。在工作机器上,伐木就完成了。在故障机器上,不生成日志。因此,我怀疑代码根本没有得到评估。
任何线索都将不胜感激。
发布于 2013-01-10 14:04:59
在深入检查ColdFusion日志时,似乎JRUN日志中充满了以下错误:
01/10 14:01:25 user FlashGateway: init
01/10 14:01:25 user failed to load: flashgateway.controller.GatewayServlet
01/10 14:01:25 error [Flash Remoting MX]-> Unable to load configuration. Reason: The string "--" is not permitted within comments.
[1]flashgateway.GatewayException: [Flash Remoting MX]-> Unable to load configuration. Reason: The string "--" is not permitted within comments.然后,通过比较这两个配置文件,这两个配置文件之间有一个字符差异:\wwwroot\WEB\gateway-config.xml失败机器:
<!---<adapter>coldfusion.flash.adapter.CFWSAdapter</adapter>--->工作机器:
<!---<adapter>coldfusion.flash.adapter.CFWSAdapter</adapter>-->删除额外的破折号(ColdFusion结束注释到HTML结算注释)修复了这个问题。
https://stackoverflow.com/questions/14259055
复制相似问题