2

I could run my project up to a few days ago with , but since yesterday, when I press run / debug I get:

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)

The project workspace is stored onto an external encrypted drive.


What I have tried so far:

  • Start IntelliJ as Administrator
  • Unchecked the Read-Only property under Properties but it seems to check back when I reopen the Properties tab (both for the drive root and the folder marked in the stacktrace)
  • Give all permissions for the entire drive to all users / groups under Properties > Security
  • Try the replace child object permissions with entries from D:\ (under Properties > Security > Advanced but I get the error:

Error applying security info


A few threads from SO about this topic, but the solutions don't work for me:


Tools used are:

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

Has anyone had this problem and found a solution?

Joakim Erdfelt
  • 46,896
  • 7
  • 86
  • 136
payloc91
  • 3,724
  • 1
  • 17
  • 45

1 Answers1

1

Never mind, this has nothing to do with permissions whatsoever...

When git-pulling, a property was overridden to be empty ("") instead of an actual path ("/bla.file"), thus the launcher could not correctly open a file and triggered a

AccessDeniedException: D:\workspace_professional\01_clients\my_client\workspace\branch_develop

With the property set, it would have read:

D:\workspace_professional\01_clients\my_client\workspace\branch_develop\bla.file

Basically, the solutions is the same as this one linked in the question.

payloc91
  • 3,724
  • 1
  • 17
  • 45