java.util.prefs.BackingStoreException: flush() function: backup store is not available

-JDK 7 (build 1.7.0 - ea-b114)
-Windows 7 Professional 64 bit

Hello, everyone!

I get this error when you call the method of the class java.util.prefs.Preferences flush() :
06/11/2010 10:51:45 java.util.prefs.WindowsPreferences <init>
WARNING: Could not create windows registry node Software\JavaSoft\Prefs\br at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
06/11/2010 10:51:45 java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs\br at root 0x80000002.
06/11/2010 10:51:45 java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs\br at root 0x80000002. Windows RegOpenKey(...) returned error code 2.
06/11/2010 10:51:45 java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs\br\desenvolvimento at root 0x80000002.
06/11/2010 10:51:45 java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs\br\desenvolvimento at root 0x80000002. Windows RegOpenKey(...) returned error code 2.
06/11/2010 10:51:45 java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs\br\desenvolvimento\iu at root 0x80000002.
06/11/2010 10:51:45 java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs\br\desenvolvimento\iu at root 0x80000002. Windows RegOpenKey(...) returned error code 2.
06/11/2010 10:51:45 java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs\br\desenvolvimento\iu at root 0x80000002.
06/11/2010 10:51:45 java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs\br\desenvolvimento\iu at root 0x80000002. Windows RegOpenKey(...) returned error code 2.
Exception in thread "main" br.desenvolvimento.iu.Sistema$GerenciadorAutorizacao$ErroGravacaoInformacoesAutorizacaoException: java.util.prefs.BackingStoreException: flush(): Backing store not available.
        at br.desenvolvimento.iu.Sistema$GerenciadorAutorizacao$InformacoesAutorizacaoPreferencias.salvar(Sistema.java:877)
        at br.desenvolvimento.iu.Sistema$GerenciadorAutorizacao$InformacoesAutorizacao.salvar(Sistema.java:380)
        at br.desenvolvimento.iu.Sistema.main(Sistema.java:912)
Caused by: java.util.prefs.BackingStoreException: flush(): Backing store not available.
        at java.util.prefs.WindowsPreferences.flush(WindowsPreferences.java:791)
        at br.desenvolvimento.iu.Sistema$GerenciadorAutorizacao$InformacoesAutorizacaoPreferencias.salvar(Sistema.java:873)
        ... 2 more
My code:
private final Preferences _preferencias = Preferences.systemNodeForPackage(getClass());
private static final String CHAVE = "abc";

@Override
void salvar(String informacoesAutorizacao) throws ErroGravacaoInformacoesAutorizacaoException
{
    _preferencias.put(CHAVE, informacoesAutorizacao);
    try
    {
        _preferencias.flush();
    }
    catch (BackingStoreException ex)
    {
        throw new ErroGravacaoInformacoesAutorizacaoException(ex);
    }
}
Any ideas how to solve this problem?

Thank you.

Marcos

There is no option in the context menu of your pot.
But if you create a shortcut pointing to java.exe or javaw.exe and have "-jar PathToMyJar.jar" as parameters.
you will get the option "Run as Administrator" from the context menu. Also in the properties-> shortcut-> advanced, you can configure it to always ask for elevation.

Now, this may seem messy for a user, but an installer can do all this for you.

Tags: Java

Similar Questions

  • Try to restore the files after replaced HD, 'backup location is not available' despite having backup full

    New HD installed and have all my backup files. When I use files restore - advanced restore - they are on an external hard drive, it is said first that the backup file is not available, although I can see all the files on the hard drive. Then asks me to create an account with the same name that my old account, she wants one with a / symbol in there, but said then I can't use symbols. The only way I can get the files to cross is to choose a different location to save in but then of course they are not anyone is easy to use... I would like that all of the images in the photo file, all the music in the music file, etc..  Also as I have many back ups I don't know which of the back ups to install - latest seems to have only the files that have changed since the last backup... what I need to install the oldest and the newest? or all of them? and I'm supposed to now spend hours finding all files and moving them to the right places? Guess that's what an automatic backup system was supposed to avoid...

    You use the option "files from a backup made on a different computer? Although it is the same computer, the fact that Vista has been reinstalled means that it may seem as if it isn't.

    The DELL PC anne/anne account that is specified is actually the name of the computer before the slash, is anne DELL PC and the user name after, Anne. The computer name was changed when has been reinstalled Vista?

  • When I try to open windows store addresses; Windows store is not available on windows to make the workspace

    whenever I try to use the store windows (open) I get this message: "windows store is not available on windows to make working space.

    what I have to do to get it working as I want to be able to download applications

    I have exactly the same problem. The store was working but now I get the message "Windows store is not available on windows to workspace" even if it is installed on a laptop. I checked the system information and everything seems fine (windows 8 pro active) but I have recently changed my HDD and I wonder if this has something to do with it. I cloned the old drive to a new one and I continued from there - do not know how this would happen as I thought it's only the Enterprise version that is able to create windows to readers.

    Tried the method in the post above and resets some security settings, it has not cured the problem. I think that the resolution of the screen is a bit a red herring, as I have already used the store on this machine.
  • Windows store is not available in your area

    Hello
    I live in Iran and when I opened the store windows this massage will display:
    Sorry, windows store is not available in your area.
    How can I use the windows store? Please help me.

    The Windows store is not available in all countries. Here is the list of supported countries and the Iran is not listed as one of them:

    http://msdn.microsoft.com/en-gb/library/windows/apps/hh694064.aspx .

    I'm not a lawyer or an expert on international issues, but this peut be relevant too:

    http://www.microsoft.com/en-us/exporting/faq.aspx .

  • Sorry windows store is not available in your region, Myanmar

    Hello
    I am sorry to show store myanmar as this "windows store is not available in your area.
    all the other app works and internet connection
    I want to know why
    Please
    4 I'm sorry my bad eng

    CAN U SEND TO MY MAIL ON THE WAY. MY MAIL IS * address email is removed from the privacy *.
    MY COMPUTER IS NOT SURFACE LAP
    Thank you

    Ahh... you see, I do not see your email address because it has been deleted automatically. OK... in any case, here are a few questions.

    1. do you have YourFreedom?
    2. If so, do you have OpenVPN installed on your system?
    3. If Yes, do you know how to use VPN via YF and relay the VPN?
    If you don't know how to question No. 3, I suggest you to meet me in person.
    Please send your e-mail as follows.
    1. your e-mail without a domain (IE, your log in name).
    2. your domain name (eg. gmail.com or hotmail.com)
  • Unable to connect to Windows error Windows store is not available on the workspace Windows To Go

    Original title: problem opening Windows Store

    When I click on Windows Store I get the error message "Windows Store is not available on Windows to GB workspace.

    How can I fix it, I use a desktop computer not a laptop

    Thank you

    exactly the same problem but I don't have windows 8 pro edition so I can't use gpedit.msc any idea to solve this? I tried all five options and none worked.

    BTW, I think it's STUPID friggin of microsoft to have as much of the element related to group policy, but not GPedit.msc on windows 8 regular edition!... friggin delayed.
  • Get the error that store is not available now, please try again after some time in Windows 8 Enterprise.

    IM using windows 8 Enterprise.

    When im opening the windows store im getting the error that store is not available now, please try again after some time
     
    Original title: store does not connect

    Hello

    Please, try the Troubleshooting Windows App tool mentioned in the following article and see if that helps:
    Hope this helps, good luck :)
  • App Store is not available in the Mexico?

    I'm trying to access the App Store on my Apple TV, but the icon does not appear. I'm located in the Mexico and I was wondering if it is not available here for some reason any.

    What version of Apple TV do you have? The app store requires 4 ATV.

    TT2

  • Backup drive is not available

    Time capsule was working a few days ago, but says the disk backup not available.

    What troubleshooting steps have you performed?

    If you do not power cycle your entire network, would be a good time to do so.  Instructions for a network power Cycle are just below.

    Powering all... accessories of computers, Time Capsule, peripheral mobile devices in any order you want.

    Wait a minute

    Turn on the only modem and let it run for 2-3 minutes

    Switch on the device connected to a modem and leaves turn a good minute

    Keep powering the devices one at a time, one minute out until the entire network is back

    Check the network

  • Uninstalling Java problem: "the installation source for this product is not available. Make sure the source exsists and that you can access. »

    Hi, I'm having a little trouble trying to uninstall Java, so I can reinstall it. I get this error message:

    "The installation source for this product is not available. Make sure the source exsists and that you can access. "When I try to find the installation package to uninstall. I'm the only person on my laptop Windows Vista Ultimate, and I am the administrator on the computer. I can't find something when I search for it during the uninstallation. When I go on ' computer > disc Local (c) > Progam Files > Java' I see a whole bunch of files, but I can't find the installation package with the 'Installation .msi package' at the end. I find 'install.rdf '.

    I was wondering if anyone can help find me the source for Java, so I can uninstall and reinstall so my Java work properly.

    Java has been uninstalled before when Elluminate program my brother (online meetings of his school) and I guess when he was relocated something went wrong, but I have 2 Java programs. One by one by Sun Microsystems Inc. and Oracle and I am trying to install are Sun Microsystems Inc..

    Help, please!

    Corky (Corkster)

    Java issues are best handled by people in the Java forum:

    http://Java.com/en/download/help/index_installing.XML?user_os=Vista

    http://Java.com/en/download/help/index.XML For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • App store is not available, no matter what I do.

    I tried all the things suggested here in the post, but the store is still not available for me. What can I do else?  The last thing I tried was refreshing windows 8.

    Ellison

    I am also having the same problem and have tried every step you have listed above without success. I'm just a little short of restarting my computer at the store. I just bought the 28. This thing of windows 8 is not worth. Microsoft needs to do better.

  • function "clear recent history" - not available in the Tools tab is not clcikable - winXP?

    WinXP - when I click on the menu Tools to clear recent history of the feature isn't available, I can see the name, but it is grayed out and is not clickable - the same for ctrl + shift del ... How can I solve this problem?

    How can I clear the cache?

    I tried the tricks but not good...

    Make sure that you are not Firefox running in permanent private browsing mode.

    To view the history settings and cookies, choose:

    • Tools > Options > privacy, choose the setting Firefox will: use the custom settings for the story of
    • Uncheck the box: [] "always use the navigation mode private.
  • Apple Watch series 2 is not available in stores?

    So I've pre-ordered the Apple Watch series 2 and received a notification of shipment for delivery on Sept. 21. However, I just stumbled on the Apple Store to pick up my iPhone 7, and they had ZERO Apple watches for sale... Looks like these are available in VERY limited quantities at the Apple Store. Someone at - he hopefully pick up?

    Not me. I stopped at my local store too and spoke with an employee that said they were full, but I could check the website store at 8:00 tomorrow to see if they have received a whole night. I didn't ask details so I will try to know where to look. The Apple Online Store shows not available for pickup. I hope that this will change tomorrow. As shown in the model I want 3-5 weeks for delivery.

  • Windows store does not work

    I recently bought a new laptop with windows 8 and initially the store was working but now it isn't. Most of the time, I get a message saying "Windows Store is not available right now. Please try again later. "Sometimes, I get another message saying that I need to connect to the internet to use the store but I am connected. I can get the games, but I can't connect directly to the store.  I tried everything I see online but nothing works and I want to install applications.

    I tried:
    http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-windows_store/Windows-store-is-not-working/5b473e2e-7a1d-4125-a7a0-08380359a855
    http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-windows_store/Windows-8-apps-store-not-working/858e8d23-B63E-4CB6-B6A0-1198bb41849f
    http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-windows_store/Windows-store-not-working/709fea74-B09C-456b-A2EA-beb8a385e8d0
    http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-windows_store/Windows-8-store-wont-open/5b7d5c6f-1d09-4963-8AE0-b6c51e835920
    Please, I hope you can help. Thank you

    Hi SaigeStephenson,

    Thank you for choosing Windows 8 and we are happy to help you.

    After the description of the question, I understand that you cannot connect to the store.

    We appreciate that you tried to fix the problem yourself by trying the many troubleshooting steps.

    As you've already tried all possible steps, I suggest you to create a new user account and check. Go through the link to create a new user account.

    Create a user account

    http://Windows.Microsoft.com/en-us/Windows-8/create-user-account

    Reference:

    User accounts: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-8/user-accounts-frequently-asked-questions

     

    Let us know the results.

    For other issues related to the question, feel free to get back to us. We will be happy to help you.

  • Not available in CS6 batch function

    Hello!

    I have a problem. The function of batch job in my CS6 suddenly stopped working. I used it several times without problems before. I get a message "function of batch temporarily not available.

    Restart Photoshop and the computer does not help. Photoshop is updated.

    How do I get it working again? Help, please!

    Check your control panel actions in photoshop cs6 to ensure that actions loaded into the Panel.

Maybe you are looking for

  • Wallpaper disappears

    I turned on my computer several times in the last week, and my experience has been replaced by a programmed meadow that came with my Mac. Also, all of my photos folders seem to have disappeared folders I can select. What should I do? Thank you!

  • Presario CQ57: Driver for pci

    Hello!I need the driver for the card reader PCIE Tealtek.PCI\VEN_10EC & DEV_5209 & SUBSYS_3577103C_REV_01

  • Hard disk is no help please

    Hi, don't know if this should be in the hardware or operating system recovery because it involves all three! I have a HP G61-110SA running Win 7 64 bit. product no. VR523EA.  Also have the serial number if necessary.  A problem is, as the laptop is 6

  • THEN ANALYZE THEM

    HOW DO I SCAN AND DISCOVERED AND THEN EMAIL

  • module windows\system32\wlan... WiFi stopped

    I can't connect to the internet, when I log on error messages keep popping up saying module not found apple, wifi module stopped, and the different system errors reappear. I caanot update my system because I can not connect to internet. any suggestio