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

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


      final DataRecordIdentifier dataRecordIdentifier)
      throws HeapException, ObjectIODataRecordNotFoundException,
      IOException, ClassNotFoundException {
    final byte[] data = dataManager.readDataRecord(dataRecordIdentifier);
    if (data == null) {
      throw new ObjectIODataRecordNotFoundException();
    }
    final ObjectInputStream inputStream = new ObjectInputStream(
        new ByteArrayInputStream(data));
    final DataRecordIdentifier[] referenceList = (DataRecordIdentifier[]) inputStream
        .readObject();
View Full Code Here


    try {
      data = dataManager.readDataRecord(dataRecordIdentifier);
      if (data == null) {
        final String message = NO_DATA_RECORD_FOR_IDENTIFIER
            + dataRecordIdentifier;
        throw new ObjectIODataRecordNotFoundException(message);
      }
    } catch (final HeapException exception) {
      if (exception.isDataCorruped()) {
        throw new ObjectIODataCorruptedException(
            "failed read data record #" + dataRecordIdentifier,
View Full Code Here

        throw new ObjectIOInvalidClassException(message, exception);
      }
      try {
        setObjectStateImpl(objectAndPersistInfo, binary, localOffset);
      } catch (ObjectIODataRecordNotFoundException exception) {
        throw new ObjectIODataRecordNotFoundException(
            "setting state of " + objectAndPersistInfo.toString()
                + ", data record identifier="
                + objectAndPersistInfo.dataRecordIdentifier,
            exception);
      }
View Full Code Here

          + declaringClassName + "\", object class \""
          + objectAndPersistInfo.objectClassInfo + "\"", exception);
    } catch (ObjectIODataRecordNotFoundException exception) {
      String declaringClassName;
      declaringClassName = fieldInfo.getDeclaringClassName();
      throw new ObjectIODataRecordNotFoundException("for field \""
          + fieldInfo.getFieldName() + "\", field declaring class \""
          + declaringClassName + "\", object class \""
          + objectAndPersistInfo.objectClassInfo + "\"", exception);
    } catch (ClassInfoException exception) {
      throw new ObjectIOException(exception);
View Full Code Here

TOP

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

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.