GWT编译时的异常

时间:2011-05-11 08:57:56

标签: gwt smartgwt

当我使用GWT Compiler构建项目时,我在控制台上发现了异常:

MyConsole:

Compiling module com.ems.EMSWeb
   Compiling 5 permutations
      Compiling permutation 0...
      Compiling permutation 1...
      Compiling permutation 2...
      Compiling permutation 3...
      Compiling permutation 4...
   Compile of permutations succeeded
Linking into D:\Workspace3\EMSWeb\war\emsweb
   Linking public artifacts into D:\Workspace3\EMSWeb\war
      Emitting resource 0A9476898799A150D840F0B1C3672921.cache.png
         [ERROR] Fatal error emitting this artifact
java.io.FileNotFoundException: D:\Workspace3\EMSWeb\war\emsweb\0A9476898799A150D840F0B1C3672921.cache.png (Access is denied)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
    at com.google.gwt.dev.util.OutputFileSetOnDirectory$1.<init>(OutputFileSetOnDirectory.java:54)
    at com.google.gwt.dev.util.OutputFileSetOnDirectory.createNewOutputStream(OutputFileSetOnDirectory.java:54)
    at com.google.gwt.dev.util.OutputFileSet.openForWrite(OutputFileSet.java:57)
    at com.google.gwt.core.ext.linker.impl.StandardLinkerContext.produceOutput(StandardLinkerContext.java:496)
    at com.google.gwt.dev.Link.doProduceOutput(Link.java:393)
    at com.google.gwt.dev.Link.link(Link.java:177)
    at com.google.gwt.dev.Compiler.run(Compiler.java:235)
    at com.google.gwt.dev.Compiler.run(Compiler.java:177)
    at com.google.gwt.dev.Compiler$1.run(Compiler.java:149)
    at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
    at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
    at com.google.gwt.dev.Compiler.main(Compiler.java:156)
   Link succeeded
   Compilation succeeded -- 96.563s

请给我一些建议,为什么我面临这个例外。 任何解决方案?

1 个答案:

答案 0 :(得分:0)

可能是某些应用程序在您尝试写入时使用此文件。 检查是否有任何应用程序读取此文件,或者您是否没有管理权限?

如果没有任何帮助,请尝试删除这些缓存文件。

相关问题