Examples of ObjectIOException


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

    final char value = toWrite.getCharValue();
    try {
      helperBinaryConversion.characterConverter.toBinary(serializedForm,
          0, true, value);
    } catch (BinaryConverterException exception) {
      throw new ObjectIOException(exception);
    }
    return serializedForm;
  }
View Full Code Here

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

    final ObjectAndPersistInfo objectAndPersistInfo;
    try {
      objectAndPersistInfo = new ObjectAndPersistInfo(object,
          proxyInstance, objectClassInfo);
    } catch (ClassInfoException exception) {
      throw new ObjectIOException(exception);
    }
    if (persisted) {
      objectAndPersistInfoMap.put(objectAndPersistInfo,
          objectAndPersistInfo);
      ProxyCallBack proxyCallBack;
      try {
        proxyCallBack = new ProxyCallBack(this);
        ProxyManager2.setProxyCallBack(objectAndPersistInfo,
            proxyCallBack, isExclusiveAccessSession());
      } catch (ProxyException exception) {
        throw new ObjectIOException(exception);
      }
    }
    return objectAndPersistInfo;
  }
View Full Code Here

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

    final ObjectAndPersistInfo objectAndPersistInfo;
    try {
      objectAndPersistInfo = new ObjectAndPersistInfo(object,
          proxyInstance, objectClassInfo);
    } catch (ClassInfoException exception) {
      throw new ObjectIOException(exception);
    }
    objectAndPersistInfo.setDataRecordIdentifier(dataRecordIdentifier);
    objectAndPersistInfoMap.put(objectAndPersistInfo, objectAndPersistInfo);
    return objectAndPersistInfo;
  }
View Full Code Here

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

    final ClassInfo objectClassInfo;
    try {
      objectClassInfo = classInfoFactory.getNoProxyClassInfo(object
          .getClass());
    } catch (ClassInfoException exception) {
      throw new ObjectIOException(exception);
    }
    return getOrCreateObjectPersistInfoOfObject(object, proxyInstance,
        objectClassInfo, persisted);
  }
View Full Code Here

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

      objectAndItsClassInfo = objectIOManager
          .getOrCreateObjectPersistInfoOfObject(object, false,
              classInfoFactory.getNoProxyClassInfo(object
                  .getClass()), dataRecordIdentifier);
    } catch (IOException exception) {
      throw new ObjectIOException(exception);
    } catch (ClassNotFoundException exception) {
      throw new ObjectIOException(exception);
    } catch (ClassInfoException exception) {
      throw new ObjectIOException(exception);
    } finally {
      try {
        if (ois != null) {
          ois.close();
        }
View Full Code Here

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

    ObjectOutputStream stream = null;
    try {
      stream = new ObjectOutputStream(new BufferedOutputStream(output));
      stream.writeObject(objectAndItsClassInfo.getObject());
    } catch (IOException exception) {
      throw new ObjectIOException(exception);
    } finally {
      try {
        if (stream != null) {
          stream.close();
        }
View Full Code Here

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

      ObjectAndPersistInfo objectAndPersistInfo;
      try {
        objectAndPersistInfo = new ObjectAndPersistInfo(object,
            proxyInstance, objectClassInfo);
      } catch (ClassInfoException exception) {
        throw new ObjectIOException(exception);
      }
      objectAndPersistInfo.setObjectStateMap(this);
      // ASSERTX
      assert objectAndPersistInfo.getObject() != null : "null object";
      // ASSERTX
      assert !objectAndPersistInfo.isSubsitute();
      if (stateMap.put(objectAndPersistInfo, objectAndPersistInfo) != null) {
        throw new ObjectIOException(
            "persistence state already exists for "
                + objectClassInfo);
      }

      addToReferencedQueue(objectAndPersistInfo);
View Full Code Here

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

    return className.clone();
  }

  public void setClassName(final byte[] className) throws ObjectIOException {
    if (className.length > CLASS_NAME_LENGTH) {
      throw new ObjectIOException("class name can exceed "
          + CLASS_NAME_LENGTH + " characters");
    }
    this.className = className.clone();
    try {
      setStateHaveChanged();
    } catch (HeapRecordableException exception) {
      throw new ObjectIOException(exception);
    }
  }
View Full Code Here

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

      throws ObjectIOException {
    this.classNameIdentifier = classNameIdentifier;
    try {
      setStateHaveChanged();
    } catch (HeapRecordableException exception) {
      throw new ObjectIOException(exception);
    }
  }
View Full Code Here

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

    this.nextClassNameRecordDataRecordIdentifier =
    /**/nextClassNameRecordDataRecordIdentifier;
    try {
      setStateHaveChanged();
    } catch (HeapRecordableException exception) {
      throw new ObjectIOException(exception);
    }
  }
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.