java.util.Prefs throwing BackingStoreException - Why?

后端 未结 3 2058
抹茶落季
抹茶落季 2021-02-04 02:36

I have a system that caches the tiny/simple results of an on-startup SOAP call

I need instances to be able to reload their cache on startup (in case the SOAP service is

3条回答
  •  不知归路
    2021-02-04 03:11

    I ran into the same issue with jetty. I found the following fixed the issue.

    Add a .systemPrefs to your JRE directory and provide access to the user who is running the process which is complaining.

    Once that is done, go to the Jetty directory and open the start.ini file

    -Djava.util.prefs.userRoot={user's home directory}

    -Djava.util.prefs.systemRoot={user's home directory}

    Once finished adding those lines I restarted jetty and found that the errors were gone.

提交回复
热议问题