一、问题描述
最近发布文章更新在"发布队列"显示模板未找到异常提示(如下图)
系统后台打印java.io.FileNotFoundException: .._root870930931index.html (拒绝访问。)异常,导致网站内容无法推送到cdn发布域,异常如下
java.io.FileNotFoundException: E:..ROOT_root..index.html (拒绝访问。)@b@ at java.io.FileOutputStream.open(Native Method)@b@ at java.io.FileOutputStream.<init>(FileOutputStream.java:179)@b@ at java.io.FileOutputStream.<init>(FileOutputStream.java:70)@b@ at com.xwood.pms.core.freemarker.FmtGenerator.create(FmtGenerator.java:337@b@)@b@ at com.xwood.pms.core.freemarker.FmtGenerator.create(FmtGenerator.java:136@b@)@b@ at com.xwood.pms.service.impl.FilePublisher.createChannle(FilePublisher.ja@b@va:518)@b@ at com.xwood.pms.service.impl.FilePublisher.createPageListChannle(FilePubl@b@isher.java:476)@b@ at com.xwood.pms.service.impl.FilePublisher.createAndPublishWithMultiPorta@b@ls(FilePublisher.java:268)@b@ at com.xwood.pms.util.publisher.PublishRunnable.call(PublishRunnable.java:@b@59)@b@ at com.xwood.pms.util.publisher.PublishRunnable.call(PublishRunnable.java:@b@1)@b@ at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)@b@ at java.util.concurrent.FutureTask.run(FutureTask.java:138)@b@ at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec@b@utor.java:885)@b@ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor@b@.java:907)@b@ at java.lang.Thread.run(Thread.java:619)
二、解决办法
之前都能正常发布,系统最近又没有更新版本,开始还以为是系统目录读写权限的问题(因为FileOutputStream.open(Native Method)读写文件都是失败的),最后是杀毒软件造成的,关闭或设置正确的策略问题解决了.