我可以在几天前使用jetty运行intellij-idea项目,但是从昨天开始,当我按run
/debug
时,我得到:
java.nio.file.AccessDeniedException: D:\workspace_professional\01_clients\my_client\workspace\branch_develop
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:230)
at java.nio.file.Files.newByteChannel(Files.java:361)
at java.nio.file.Files.newByteChannel(Files.java:407)
at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
at java.nio.file.Files.newInputStream(Files.java:152)
at org.eclipse.jetty.util.resource.PathResource.getInputStream(PathResource.java:380)
at org.eclipse.jetty.security.SpnegoLoginService.doStart(SpnegoLoginService.java:103)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.security.SecurityHandler.doStart(SecurityHandler.java:361)
at org.eclipse.jetty.security.ConstraintSecurityHandler.doStart(ConstraintSecurityHandler.java:448)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:411)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:378)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at com.container.JettyApplicationContainer.startServer(JettyApplicationContainer.java:339)
at com.container.JettyApplicationContainer.launch(JettyApplicationContainer.java:57)
at com.bootstrap.Bootstrap.startApplication(Bootstrap.java:201)
at com.bootstrap.Bootstrap.start(Bootstrap.java:77)
at org.tanukisoftware.wrapper.WrapperManager$11.run(WrapperManager.java:4241)
项目工作区存储在外部加密驱动器上。
到目前为止我尝试过的是:
IntelliJ
Read-Only
下的Properties
属性,但是当我重新打开Properties
选项卡(同时包含驱动器根目录和stacktrace中标记的文件夹)时,似乎会再次检查Properties > Security
之下的所有用户/组D:\
中的条目替换子对象权限(在Properties > Security > Advanced
下,但出现错误:SO有关此主题的一些话题,但是解决方案对我不起作用:
使用的工具有:
IntelliJ IDEA 2018.1.4 (Community Edition)
Build #IC-181.5087.20, built on May 17, 2018
JRE: 1.8.0_152-release-1136-b39 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
有没有人遇到这个问题并找到了解决方案?
最佳答案
没关系,这与权限无关...
当git-pulling
时,属性被覆盖为空(""
)而不是实际路径("/bla.file"
),因此jetty启动器无法正确打开文件并触发了
AccessDeniedException: D:\workspace_professional\01_clients\my_client\workspace\branch_develop
设置该属性后,它应显示为:
D:\workspace_professional\01_clients\my_client\workspace\branch_develop\bla.file
基本上,解决方案与this one linked in the question相同。