Examples of ObjectNotFoundException


Examples of com.sun.sgs.app.ObjectNotFoundException

      context.refs.find(object));
  if (ref == null) {
      ref = new ManagedReferenceImpl<T>(context, object);
      context.refs.add(ref);
  } else if (ref.isRemoved()) {
      throw new ObjectNotFoundException("Object has been removed");
  }
  if (logger.isLoggable(Level.FINEST)) {
      logger.log(Level.FINEST,
           "getReference tid:{0,number,#}, type:{1}" +
           " returns oid:{2,number,#}",
View Full Code Here

Examples of com.sun.sgs.app.ObjectNotFoundException

  ManagedReferenceImpl<?> ref = context.refs.find(oid);
  if (ref == null) {
      ref = new ManagedReferenceImpl<ManagedObject>(context, oid);
      context.refs.add(ref);
  } else if (ref.isRemoved()) {
      throw new ObjectNotFoundException("Object has been removed");
  }
  if (logger.isLoggable(Level.FINEST)) {
      logger.log(
    Level.FINEST,
    "getReference tid:{0,number,#}, oid:{1,number,#} returns",
View Full Code Here

Examples of com.sun.sgs.app.ObjectNotFoundException

      throw new TransactionNotActiveException(
    "Attempt to remove a managed object when its transaction is" +
    " not active");
  case REMOVED_EMPTY:
  case REMOVED_FETCHED:
      throw new ObjectNotFoundException("The object is not found");
  default:
      throw new AssertionError();
  }
    }
View Full Code Here

Examples of com.sun.sgs.app.ObjectNotFoundException

      throw new TransactionNotActiveException(
    "Attempt to mark a managed object for update when its" +
    " transaction is not active");
  case REMOVED_EMPTY:
  case REMOVED_FETCHED:
      throw new ObjectNotFoundException("The object is not found");
  default:
      throw new AssertionError();
  }
    }
View Full Code Here

Examples of com.sun.sgs.app.ObjectNotFoundException

        "Attempt to get the object associated with a managed" +
        " reference when its transaction is not active");
    break;
      case REMOVED_EMPTY:
      case REMOVED_FETCHED:
    throw new ObjectNotFoundException("The object is not found");
      default:
    throw new AssertionError();
      }
  } catch (TransactionNotActiveException e) {
      exception = new TransactionNotActiveException(
View Full Code Here

Examples of com.sun.sgs.app.ObjectNotFoundException

      case NEW:
      case MODIFIED:
    break;
      case REMOVED_EMPTY:
      case REMOVED_FETCHED:
    throw new ObjectNotFoundException("The object is not found");
      default:
    throw new AssertionError();
      }
  } catch (TransactionNotActiveException e) {
      exception = new TransactionNotActiveException(
View Full Code Here

Examples of de.mhus.lib.cao.ObjectNotFoundException

    if (name.equals(CaoDriver.TREE_DEFAULT)) {
      return new FsElement(this,path);
    }
    if (name.equals(CaoDriver.LIST_DEFAULT)) {
      if (!attributes[0].startsWith(path))
        throw new ObjectNotFoundException(attributes[0]);
      return new FsElement(this, attributes[0]);
    }
    return null;
  }
View Full Code Here

Examples of de.mhus.lib.cao.ObjectNotFoundException

    this.valid = file.exists();
  }
 
  @Override
  public CaoList getChildren(CaoAccess access) throws ObjectNotFoundException {
    if (!isNode()) throw new ObjectNotFoundException();
    return new FsList(file, this);
  }
View Full Code Here

Examples of de.mhus.lib.cao.ObjectNotFoundException

      return file.getParent();
    else
    if ("modified".equals(name))
      return MCast.toString(getDate(name));
    else
      throw new ObjectNotFoundException(name);
  }
View Full Code Here

Examples of de.willuhn.datasource.rmi.ObjectNotFoundException

      throw new JameicaException("no reminder given");
   
    // Checken, ob wir den schon haben
    DBReminder r = this.getDBReminder(uuid);
    if (r == null)
      throw new ObjectNotFoundException("no reminder found for uuid: " + uuid);
   
    // Daten uebernehmen und speichern
    r.setReminder(reminder);
    r.store();
  }
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.