Fix warning couldn ' t flush user prefs:java.util.prefs.BackingStoreException:Couldn ' t get file lock.

Source: Internet
Author: User

System: Ubuntu 16.04 LTS

Environment: Vscode+java extension Pack opens a Gradle Java project; In addition, a terminal is used to launch the Groovysh

Error:

Groovysh Error Java.util.prefs.FileSystemPreferences Syncworld
Warning: couldn ' t flush user prefs:java.util.prefs.BackingStoreException:Couldn ' t get file lock.

References [1]:https://stackoverflow.com/questions/2027566/java-util-prefs-throwing-backingstoreexception-why

Solve:

According to [1] in the "If" JVMs attempt to lock the file at the same and then that's what you'll see. "

Open Task Manager and see two Java processes, one is the JVM (JVM1) started by the Eclipse JDT run by vscode Java extension, and the other is the JVM that the Groovysh started (JVM2)

So, because the JVM1 process has acquired lock, causing jvm2 to fail to get lock and error

Groovysh no more error after closing Vscode Java project

Fix warning couldn ' t flush user prefs:java.util.prefs.BackingStoreException:Couldn ' t get file lock.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.