Package net.sf.joafip.store.service.objectio

Examples of net.sf.joafip.store.service.objectio.ObjectIOException


    } else if (ObjectIODataCorruptedException.class.equals(cause)) {
      throw (ObjectIODataCorruptedException) cause;
    } else if (ObjectIONotSerializableException.class.equals(cause)) {
      throw (ObjectIONotSerializableException) cause;
    } else {
      throw new ObjectIOException(throwable);
    }
  }
View Full Code Here


          checkAssertNotNull);
    } catch (NullFieldException exception) { // NOPMD
      throw exception;
    } catch (ReflectException exception) {
      logger.fatal("reflect error", exception);
      throw new ObjectIOException(exception);
    }
    return fieldValue;
  }
View Full Code Here

      fieldValueType = ClassInfo.NULL;
    } else {
      try {
        fieldValueType = proxyManager2.classInfoOfObject(fieldValue);
      } catch (ProxyException exception) {
        throw new ObjectIOException(exception);
      }
    }
    return fieldValueType;
  }
View Full Code Here

    } catch (final NotSerializableException exception) {
      throw new ObjectIONotSerializableException(
          objectAndItsClassInfo.toString() + " is not serializable",
          exception);
    } catch (final IOException exception) {
      throw new ObjectIOException(exception);
    } catch (final StackOverflowError stackOverflowError) {
      throw new ObjectIOTooBigForSerializationException(// NOPMD do not
                                // care stack
                                // trace
          objectAndItsClassInfo.getObject());
View Full Code Here

  public void setGarbageManagement(final boolean garbageManagement,
      final IGarbageManagerForLinkUpdate garbageManager)
      throws ObjectIOException {
    this.garbageManagement = garbageManagement;
    if (garbageManagement && garbageManager == null) {
      throw new ObjectIOException("garbage manager must be defined");
    }
    this.garbageManager = garbageManager;
    for (final IObjectOutput objectOutput : objectOutputs) {
      objectOutput.setGarbageManagement(garbageManagement);
    }
View Full Code Here

    if (garbageManagement && objectAndPersistInfo.getObject() != null) {
      try {
        garbageManager
            .removeFromCandidateAndOrFromToGarbage(dataRecordIdentifier);
      } catch (final GarbageException exception) {
        throw new ObjectIOException("for "
            + objectAndPersistInfo.toString() + ", "
            + exception.getMessage(), exception);
      }
    }
  }
View Full Code Here

      final DataRecordIdentifier dataRecordIdentifier, final byte[] data)
      throws ObjectIOException {
    try {
      dataManager.writeDataRecord(dataRecordIdentifier, data);
    } catch (final HeapException exception) {
      throw new ObjectIOException("failed write data record #"
          + dataRecordIdentifier, exception);
    }
  }
View Full Code Here

      if (exception.isDataCorruped()) {
        throw new ObjectIODataCorruptedException(
            "failed read data record #" + dataRecordIdentifier,
            exception);
      } else {
        throw new ObjectIOException("failed read data record #"
            + dataRecordIdentifier, exception);
      }
    }
    return data;
  }
View Full Code Here

      if (exception.isDataCorruped()) {
        throw new ObjectIODataCorruptedException(
            FAILED_CREATE_DATA_RECORD_FOR
                + objectAndPersistInfo.toString(), exception);
      } else {
        throw new ObjectIOException(FAILED_CREATE_DATA_RECORD_FOR
            + objectAndPersistInfo.toString(), exception);
      }
    }
    objectAndPersistInfo.setDataRecordIdentifier(newDataRecordIdentifier);
    dataRecordIdentifierAssociatedToObjectSetted(objectAndPersistInfo);
View Full Code Here

  public void openChangeLog(final String changeFileName)
      throws ObjectIOException {
    try {
      changeFileOutputStream = new FileOutputStream(changeFileName);
    } catch (final FileNotFoundException exception) {
      throw new ObjectIOException(exception);
    }
  }
View Full Code Here

TOP

Related Classes of net.sf.joafip.store.service.objectio.ObjectIOException

Copyright © 2018 www.massapicom. 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.