Examples of BackingStoreException


Examples of com.sun.appserv.ha.spi.BackingStoreException

                    replicationState.getLastAccess(), replicationState.getMaxInactiveInterval(),
                    replicationState.getState(),
                    containerExtraParams);
            return result;
        } catch (Exception ex) {
            throw new BackingStoreException("error during deserialization of extra parameters", ex);
        }
    }
View Full Code Here

Examples of com.sun.appserv.ha.spi.BackingStoreException

        if(containerExtraParamState != null) {
            try {
                containerExtraParams = getObjectValue(containerExtraParamState,
                        compressionEnabled);
            } catch (Exception ex) {
                throw new BackingStoreException("error during deserialization of extra parameters", ex);
            }
        }
        return containerExtraParams;
    }
View Full Code Here

Examples of com.sun.appserv.ha.spi.BackingStoreException

        }
        byte[] containerExtraParamState = null;
        try {
            containerExtraParamState = this.getByteArray(e, isReplicationCompressionEnabled());
        } catch (IOException ex) {
            throw new BackingStoreException("error during serialization of extra parameters", ex);
        }
        ReplicationState transmitState =
            new ReplicationState(_mode,  //mode
                id, //id
                getApplicationId(), //appid
View Full Code Here

Examples of com.sun.appserv.ha.spi.BackingStoreException

          if(containerExtraParamState != null) {
              try {
                  containerExtraParams
                      = ReplicationState.getObjectValue(containerExtraParamState, isReplicationCompressionEnabled());
              } catch (Exception ex) {
                  throw new BackingStoreException("error during deserialization of extra parameters", ex);
              }
          }
          return containerExtraParams;
      }
View Full Code Here

Examples of com.sun.appserv.ha.spi.BackingStoreException

        byte[] containerExtraParamState = null;
        if(containerExtraParam != null) {
            try {
                containerExtraParamState = getByteArray(containerExtraParam, isReplicationCompressionEnabled());
            } catch (IOException ex) {
                throw new BackingStoreException("error during serialization of extra parameters", ex);
            }
        }
        ReplicationState transmitState =
            new ReplicationState(_mode, //web mode in this case
                id,                 //id
View Full Code Here

Examples of java.util.prefs.BackingStoreException

        }
        if(prefFile == null) {
            prefFile = new File(dir, "prefs.properties");
        }
        if(!dir.exists() && !dir.mkdirs()) {
            throw new BackingStoreException("Failed to create node directory " + dir.getPath() + ".");
        }
        FileOutputStream fos = null;
        try {
            fos = new FileOutputStream(prefFile);
            prefs.store(fos, name());
        }
        catch(IOException ioe) {
            throw new BackingStoreException(ioe);
        }
        finally {
            Util.closeStream(fos);
        }
    }
View Full Code Here

Examples of java.util.prefs.BackingStoreException

    /* (non-Javadoc)
     * @see java.util.prefs.AbstractPreferences#removeNodeSpi()
     */
    protected void removeNodeSpi() throws BackingStoreException {
        if(!Util.delTree(dir)) {
            throw new BackingStoreException("Failed to remove preferencese node " + dir.getPath() + ".");
        }
    }
View Full Code Here

Examples of java.util.prefs.BackingStoreException

    @Override
    protected void flushSpi() throws BackingStoreException {
      try {
        writePreferences();
      } catch (IOException ex) {
        throw new BackingStoreException(ex);
      }
    }
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

Examples of java.util.prefs.BackingStoreException

        {
            directoryService.getAdminSession().delete( dn );
        }
        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.