Package com.sun.sgs.app

Examples of com.sun.sgs.app.ObjectIOException


  try {
      in = new CustomClassDescriptorObjectInputStream(
    new CompressByteArrayInputStream(data), classSerial);
      return in.readObject();
  } catch (ClassNotFoundException e) {
      throw new ObjectIOException(
    "Class not found while deserializing object: " +
    e.getMessage(),
    e, false);
  } catch (IOException e) {
      throw new ObjectIOException(
    "Problem deserializing object: " + e.getMessage(), e, false);
  } finally {
      if (in != null) {
    try {
        in.close();
View Full Code Here


      throw new TransactionNotActiveException(
    "Attempt to perform an operation during serialization that " +
    "requires a active transaction: " + e.getMessage(),
    e);
  } catch (IOException e) {
      throw new ObjectIOException(
    "Problem serializing object: " + e.getMessage(), e, false);
  } finally {
      if (out != null) {
    try {
        out.close();
View Full Code Here

      if (object == null) {
    return null;
      }
      Class<?> cl = object.getClass();
      if (object != topLevelObject && object instanceof ManagedObject) {
    throw new ObjectIOException(
        "ManagedObject was not referenced through a " +
        "ManagedReference: " + Objects.safeToString(object),
        false);
      } else if (object instanceof Serializable) {
    classSerial.checkInstantiable(ObjectStreamClass.lookup(cl));
View Full Code Here

      {
    Class<?> cl = object.getClass();
    if (object != topObject && object instanceof ManagedObject) {
        stack.push("object (class \"" + cl.getName() + "\", " +
             Objects.safeToString(object) + ")");
        throw new ObjectIOException(
      "ManagedObject was not referenced through a " +
      "ManagedReference:\n" + stack,
      cause, false);
    }
    seen.put(object, Boolean.TRUE);
View Full Code Here

      if (!cl.isLocalClass() && !Modifier.isStatic(cl.getModifiers())) {
    Class<?> enclosingClass = cl.getEnclosingClass();
    if (enclosingClass != null &&
        ManagedObject.class.isAssignableFrom(enclosingClass))
    {
        throw new ObjectIOException(
      "ManagedObject of type " + enclosingClass.getName() +
      " was not referenced through a ManagedReference" +
      " because of a reference from an inner class:\n" +
      stack,
      cause, false);
View Full Code Here

  try {
      UpdateMapsResult result = updateMaps(
    classId, getClassDesc(store.getClassInfo(txn, classId)));
      return result.classDesc;
  } catch (ClassInfoNotFoundException e) {
      throw new ObjectIOException(
    "Problem deserializing class descriptor: " + e.getMessage(),
    e, false);
  }
    }
View Full Code Here

      objectOut = new ObjectOutputStream(byteOut);
      objectOut.writeObject(classDesc);
      objectOut.flush();
      return byteOut.toByteArray();
  } catch (IOException e) {
      throw new ObjectIOException(
    "Problem serializing class descriptor: " + e.getMessage(),
    e, false);
  } finally {
      if (objectOut != null) {
    try {
View Full Code Here

        in.close();
    } catch (IOException e) {
    }
      }
  }
  throw new ObjectIOException(
      "Problem obtaining class descriptor: " + exception.getMessage(),
      exception, false);
    }
View Full Code Here

TOP

Related Classes of com.sun.sgs.app.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.