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

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


      instanceCreated = helperReflect
          .newInstanceNoConstruction(objectClass);
    } catch (ReflectException exception) {
      throw new ObjectIOException(FAILED_CREATE_OBJECT, exception);
    } catch (ReflectInvalidClassException exception) {
      throw new ObjectIOInvalidClassException(FAILED_CREATE_OBJECT,
          exception);
    }
    final ObjectAndPersistInfo objectPersistInfoOfObject = objectIOManager
        .createObjectPersistInfoOfObject(instanceCreated, false,
            classInfo, dataRecordIdentifier);
View Full Code Here


    }
    final int signature = (Integer) binaryConverter.objectFromBinary;
    binaryConverter.objectFromBinary = null;// NOPMD
    try {
      if (signature != classInfo.fieldsSignature()) {
        throw new ObjectIOInvalidClassException(
            "bad class signature for " + classInfo.toString()
                + "\n read " + signature + " for "
                + classInfo.fieldsSignature() + " expected");
      }
    } catch (ClassInfoException exception) {
View Full Code Here

    }
    final int signature = (Integer) binaryConverter.objectFromBinary;
    binaryConverter.objectFromBinary = null;// NOPMD
    try {
      if (signature != classInfo.staticFieldsSignature()) {
        throw new ObjectIOInvalidClassException(
            "bad class signature for " + classInfo.toString());
      }
    } catch (ClassInfoException exception) {
      throw new ObjectIOException(exception);
    }
View Full Code Here

    try {
      final GZIPOutputStream zip = new GZIPOutputStream(output);
      stream = new ObjectOutputStream(zip);
      stream.writeObject(objectAndItsClassInfo.getObject());
    } catch (final InvalidClassException exception) {
      throw new ObjectIOInvalidClassException(exception);
    } catch (final NotSerializableException exception) {
      throw new ObjectIONotSerializableException(
          objectAndItsClassInfo.toString() + " is not serializable",
          exception);
    } catch (final IOException exception) {
View Full Code Here

      final GZIPInputStream zip = new GZIPInputStream(
          new ByteArrayInputStream(serializeForm));
      ois = new ObjectInputStream(zip);
      object = ois.readObject();
    } catch (EOFException exception) {
      throw new ObjectIOInvalidClassException("too less data for class",
          exception);
    } catch (ClassNotFoundException exception) {
      throw new ObjectIOClassNotFoundException(exception);
    } catch (InvalidClassException exception) {
      throw new ObjectIOInvalidClassException(exception);
    } catch (StreamCorruptedException exception) {
      throw new ObjectIODataCorruptedException(exception);
    } catch (OptionalDataException exception) {
      throw new ObjectIODataCorruptedException(exception);
    } catch (IOException exception) {
View Full Code Here

          new ByteArrayInputStream(serializeForm));
      zip.getNextEntry();
      ois = new ObjectInputStream(zip);
      object = ois.readObject();
    } catch (EOFException exception) {
      throw new ObjectIOInvalidClassException("too less data for class",
          exception);
    } catch (ClassNotFoundException exception) {
      throw new ObjectIOClassNotFoundException(exception);
    } catch (InvalidClassException exception) {
      throw new ObjectIOInvalidClassException(exception);
    } catch (StreamCorruptedException exception) {
      throw new ObjectIODataCorruptedException(exception);
    } catch (OptionalDataException exception) {
      throw new ObjectIODataCorruptedException(exception);
    } catch (IOException exception) {
View Full Code Here

      } else {
        offset = readNotPrimitiveElement(binary, offset, arrayLength,
            array, originalValue, arrayComponentType);
      }
      if (offset != binary.length) {
        throw new ObjectIOInvalidClassException(offset
            + " bytes read for " + binary.length);
      }
    } catch (ArrayIndexOutOfBoundsException exception) {
      throw new ObjectIOInvalidClassException("too less bytes in record",
          exception);
    }
    objectAndPersistInfo.originalValue = originalValue;
    return objectAndPersistInfo;
  }
View Full Code Here

      } catch (ReflectException exception) {
        logger.fatal(REFLECT_ERROR, exception);
        throw new ObjectIOException(exception);
      } catch (ReflectFailedSetException exception) {
        logger.fatal(REFLECT_ERROR, exception);
        throw new ObjectIOInvalidClassException(exception);
      }
    }
    return offset;
  }
View Full Code Here

      } catch (ReflectException exception) {
        logger.fatal(REFLECT_ERROR, exception);
        throw new ObjectIOException(exception);
      } catch (ReflectFailedSetException exception) {
        logger.fatal(REFLECT_ERROR, exception);
        throw new ObjectIOInvalidClassException(exception);
      }
      final ObjectAndPersistInfo elementAndPersistInfo = objectIOManager
          .getOrCreateObjectPersistInfoOfObject(elementObject,
              Boolean.FALSE, recordElementType, false);
      originalValue[index] = new ObjectClassInfoAndDeclared(// NOPMD
View Full Code Here

    Enum<?> enumObject;
    try {
      enumObject = helperReflect.newEnumInstance(
          classInfo.getObjectClass(), enumConstantName);
    } catch (ReflectInvalidClassException exception) {
      throw new ObjectIOInvalidClassException(exception);
    }
    final ObjectAndPersistInfo enumPersistInfoOfObject = objectIOManager
        .createObjectPersistInfoOfObject(enumObject, false, classInfo,
            dataRecordIdentifier);
    enumPersistInfoOfObject.setStorageInfo(storageInfo);
View Full Code Here

TOP

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

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.