我正在使用antiSami
我的 ColdFusion 项目。我正在通过 onApplicationStart() 加载 antiSami,如下所示:
local.jarsArray =
[
expandPath("lib/antisami/antisamy-1.4.4.jar")
];
application.antiSamiPolicyPath = expandPath("lib/antisami/antisamy-slashdot-1.4.4.xml");
application.javaLoader = createObject("lib.javaloader.JavaLoader").init(local.jarsArray);
application.antiSami = application.javaLoader.create("org.owasp.validator.html.AntiSamy").init();
如果我转储,我可以看到 antiSami 对象application.antiSami
。但是,一旦我添加以下行:
local.result = application.antiSami.scan("some text", application.antiSamiPolicyPath);
我收到这条通用浏览器 500 消息:
Server Error, HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.
在幕后,我通过 CFBuilder 发现了这个错误:
"Error","web-4","06/14/11","15:27:04","80BBF6B60584F6D148A7DC2A12007C03","org/apache/batik/css/parser/ParseException The specific sequence of files included or processed is: C:\ColdFusion9\wwwroot\gamers\index.cfm, line: 25 "
任何想法这个错误是关于什么的?