Examples of BackingStoreException


Examples of java.util.prefs.BackingStoreException

        {
            directoryService.getAdminSession().modify( dn, changes );
        }
        catch ( Exception e )
        {
            throw new BackingStoreException( e );
        }

        changes.clear();
        keyToChange.clear();
    }
View Full Code Here

Examples of java.util.prefs.BackingStoreException

                children.add( ( String ) entry.getDn().getRdn().getNormValue() );
            }
        }
        catch ( Exception e )
        {
            throw new BackingStoreException( e );
        }

        return children.toArray( EMPTY_STRINGS );
    }
View Full Code Here

Examples of java.util.prefs.BackingStoreException

                keys.add( sa.getUpId() );
            }
        }
        catch ( Exception e )
        {
            throw new BackingStoreException( e );
        }

        return keys.toArray( EMPTY_STRINGS );
    }
View Full Code Here

Examples of java.util.prefs.BackingStoreException

    if (pathForNode.exists() == false)
    {
      if (pathForNode.mkdirs() == false)
      {
        throw new BackingStoreException("Failed to write config " + pathForNode); //$NON-NLS-1$
      }
    }

    final File target = new File(pathForNode, "prefs.properties");//NON-NLS
    if (target.exists() == false || target.lastModified() < lastModificationTime)
    {
      try
      {
        final OutputStream out = new BufferedOutputStream(new FileOutputStream(target));
        try
        {
          properties.store(out, "");
        }
        finally
        {
          out.close();
        }
      }
      catch (final Exception e)
      {
        throw new BackingStoreException("Failed to write config " + target); //$NON-NLS-1$
      }
    }
  }
View Full Code Here

Examples of java.util.prefs.BackingStoreException

            }
          }
          catch (final Exception e)
          {
            UncaughtExceptionsModel.getInstance().addException(e);
            throw new BackingStoreException("Failed to write config " + target); //$NON-NLS-1$
          }
        }
      }
    }
  }
View Full Code Here

Examples of java.util.prefs.BackingStoreException

    if (pathForNode.exists())
    {
      final File target = new File(pathForNode, "prefs.properties");//NON-NLS
      if (target.delete() == false)
      {
        throw new BackingStoreException("Unable to delete node-backend");
      }
      if (pathForNode.delete() == false)
      {
        throw new BackingStoreException("Unable to delete node-backend");
      }
    }
  }
View Full Code Here

Examples of java.util.prefs.BackingStoreException

      return encoded.toString();
    }
    catch (NumberFormatException nfe)
    {
      nfe.printStackTrace();
      throw new BackingStoreException("Failed to decode name: " + path);
    }
  }
View Full Code Here

Examples of java.util.prefs.BackingStoreException

                            root.put(subKey, p.getProperty(propKey));
                        }
                    }
                }
            } catch (IOException e) {
                throw new BackingStoreException(e);
            }
        }
    }
View Full Code Here

Examples of java.util.prefs.BackingStoreException

                        fos.close();
                    }
                }

            } catch (IOException e) {
                throw new BackingStoreException(e);
            }
        }
    }
View Full Code Here

Examples of java.util.prefs.BackingStoreException

        {
            directoryService.getAdminSession().modify( dn, changes );
        }
        catch ( Exception e )
        {
            throw new BackingStoreException( e );
        }

        changes.clear();
        keyToChange.clear();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.