eclipse (oxygen version) sonarlint 3.3.0 unable to update project bindings

1,656 views
Skip to first unread message

glopp...@gmail.com

unread,
Dec 6, 2017, 2:24:23 PM12/6/17
to SonarLint
I am trying to bind my eclipse java project to a sonarqube (6.7 LTS) project using latest version on sonarlint 3.3.0.   I am getting a "Unable to move" error message (see below) which is Caused by: java.nio.file.AccessDeniedException   Any idea of what might be causing this?  I am using java 1.8.0.92 for eclipse.

java.lang.IllegalStateException: Unable to move C:\workspace\.sonarlint\work\sonarqube\.sonartmp_1588841111355844384\6204606138623419086 to C:\workspace\.sonarlint\storage\sonarqube\global
at org.sonarsource.sonarlint.core.client.api.util.FileUtils.moveDir(FileUtils.java:47)
at org.sonarsource.sonarlint.core.container.connected.update.perform.GlobalStorageUpdateExecutor.update(GlobalStorageUpdateExecutor.java:111)
at org.sonarsource.sonarlint.core.container.connected.ConnectedContainer.update(ConnectedContainer.java:109)
at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.lambda$null$1(ConnectedSonarLintEngineImpl.java:178)
at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.runInConnectedContainer(ConnectedSonarLintEngineImpl.java:305)
at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.lambda$update$2(ConnectedSonarLintEngineImpl.java:178)
at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.withRwLock(ConnectedSonarLintEngineImpl.java:319)
at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.update(ConnectedSonarLintEngineImpl.java:173)
at org.sonarlint.eclipse.core.internal.server.Server.updateStorage(Server.java:289)
at org.sonarlint.eclipse.core.internal.jobs.ServerUpdateJob.run(ServerUpdateJob.java:47)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
Caused by: java.nio.file.AccessDeniedException: C:\workspace\.sonarlint\work\sonarqube\.sonartmp_1588841111355844384\6204606138623419086 -> C:\workspace\.sonarlint\storage\sonarqube\global
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:301)
at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287)
at java.nio.file.Files.move(Files.java:1395)
at org.sonarsource.sonarlint.core.client.api.util.FileUtils.moveDirPreferAtomic(FileUtils.java:53)
at org.sonarsource.sonarlint.core.client.api.util.FileUtils.moveDir(FileUtils.java:45)
... 10 more


eclipse.buildId=4.7.1.M20171009-0410
java.version=1.8.0_92
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product -data file:/C:/workspace/ -product org.eclipse.epp.package.java.product

Julien HENRY

unread,
Dec 7, 2017, 3:09:40 AM12/7/17
to glopp...@gmail.com, SonarLint
Hi,

Could it be caused by a third party software (like anti-virus)?

++

Julien Henry | SonarSource

Developer

https://sonarsource.com


--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/f8b9b421-2e54-431e-b701-0d48ac7904c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

glopp...@gmail.com

unread,
Dec 7, 2017, 11:18:35 AM12/7/17
to SonarLint
Let me work with my company's IT support to see if I can configure McAfee to exclude my workspace to see if this fixes the issue.   Unfortunately, I can't configure it per IT global windows settings. 
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+...@googlegroups.com.

glopp...@gmail.com

unread,
Dec 11, 2017, 10:29:08 AM12/11/17
to SonarLint
I worked with my company's IT support and they temporarily disabled McAfee software on my laptop.  I am still seeing the same error so it doesn't appear to be anti-virus related.   Any ideas on what is causing this?

java.lang.IllegalStateException: Unable to move C:\jworkspace\.sonarlint\work\rmteam\.sonartmp_805971291494001829\8237356225238438397 to C:\jworkspace\.sonarlint\storage\rmteam\modules\com.hp.cleansheet%3Acleansheet_app%3Atrunk
 at org.sonarsource.sonarlint.core.client.api.util.FileUtils.moveDir(FileUtils.java:47)
 at org.sonarsource.sonarlint.core.client.api.util.FileUtils.replaceDir(FileUtils.java:153)
 at org.sonarsource.sonarlint.core.container.connected.update.perform.ModuleStorageUpdateExecutor.update(ModuleStorageUpdateExecutor.java:63)
 at org.sonarsource.sonarlint.core.container.connected.ConnectedContainer.updateModule(ConnectedContainer.java:118)
 at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.updateModule(ConnectedSonarLintEngineImpl.java:260)
 at org.sonarlint.eclipse.core.internal.server.Server.updateProjectStorage(Server.java:338)
 at org.sonarlint.eclipse.core.internal.jobs.ServerUpdateJob.run(ServerUpdateJob.java:66)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
Caused by: java.nio.file.AccessDeniedException: C:\jworkspace\.sonarlint\work\rmteam\.sonartmp_805971291494001829\8237356225238438397 -> C:\jworkspace\.sonarlint\storage\rmteam\modules\com.hp.cleansheet%3Acleansheet_app%3Atrunk

 at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
 at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
 at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:301)
 at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287)
 at java.nio.file.Files.move(Files.java:1395)
 at org.sonarsource.sonarlint.core.client.api.util.FileUtils.moveDirPreferAtomic(FileUtils.java:53)
 at org.sonarsource.sonarlint.core.client.api.util.FileUtils.moveDir(FileUtils.java:45)
 ... 7 more

eclipse.buildId=4.7.1.M20171009-0410
java.version=1.8.0_92
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product


glopp...@gmail.com

unread,
Dec 11, 2017, 11:19:58 AM12/11/17
to SonarLint
RESOLVED:  So I got my IT support team to exclude McAfee scanning of ECLIPSE.EXE and now the error has gone away.   It required a reboot of my laptop to get it to work so that is why it didn't work in my earlier post.

Julien HENRY

unread,
Dec 11, 2017, 11:24:20 AM12/11/17
to David Barber, SonarLint
Thanks for letting us know!

Julien Henry | SonarSource

Developer

https://sonarsource.com


To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/8a1b1076-a090-47e0-9357-d861e14ef064%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages