Examples of InternalSpaceException


Examples of net.jini.space.InternalSpaceException

    throw (RuntimeException)t;

      if (t instanceof Error)
    throw (Error)t;

      throw new InternalSpaceException(
          "Query threw unexpected exception", t);     
  }

  // Before returning nothing, make sure all pending removal
  // have been logged.
View Full Code Here

Examples of net.jini.space.InternalSpaceException

      return null;

  Txn txn;
  if((recoveredTxns == null) ||
     ((txn = (Txn)recoveredTxns.get(txnId)) == null))
      throw new InternalSpaceException("recover of write/take with " +
               "unknown txnId" );
  return txn;
    }
View Full Code Here

Examples of net.jini.space.InternalSpaceException

  Iterator it;
  try {
      it = LogInputFile.logs(logFileBase, all);
  } catch (IOException e) {
      final String msg = "couldn't open logs";
      final InternalSpaceException ise =
    new InternalSpaceException(msg, e);
      logger.log(Level.SEVERE, msg , ise);
      throw ise;
  }

  while (it.hasNext()) {
      LogInputFile log = (LogInputFile)it.next();
      logger.log(Level.FINE, "processing {0})", log);

      if (log == null)    // file already consumed
    continue;
 
      try {
    String logFile = log.toString();
    if (lastLog == null || !lastLog.sameAs(logFile))
        log.consume(this);
    lastLog = new LastLog(logFile);

    ObjectOutputStream out = snapshotFile.next();

    out.writeInt(SNAPSHOT_VERSION);
    out.writeObject(sessionId);
    out.writeObject(joinState);
    out.writeObject(entries);
    out.writeObject(registrations);
    out.writeObject(pendingTxns);
    out.writeObject(topUuid);
    out.writeObject(lastLog);
    snapshotFile.commit();
      } catch (IOException e) {
    final String msg = "error writing snapshot";
    final InternalSpaceException ise =
    new InternalSpaceException(msg, e);
      logger.log(Level.SEVERE, msg , ise);
    throw ise;
      }
      log.finished();
  }
View Full Code Here

Examples of net.jini.space.InternalSpaceException

     * recovery problem.
     */
    private InternalSpaceException logAndThrowRecoveryException(
      String msg, Throwable nested)
    {
  final InternalSpaceException e =
      new InternalSpaceException(msg, nested);
  logger.log(Level.SEVERE, msg, e);
  throw e;
    }
View Full Code Here

Examples of net.jini.space.InternalSpaceException

  suffix = existingLogs(snapshots);

  // Make sure there are at most two snapshots
  //
  if (snapshots.size() > 2)
      throw new InternalSpaceException("More than two snapshot files "+
          "are present");

  // If there are two snapshots, delete the second (newest) one
  //
  if (snapshots.size() == 2) {
View Full Code Here

Examples of net.jini.space.InternalSpaceException

      object.store(oos);
      oos.flush();
      blob = baos.toByteArray();
      oos.close();
  } catch (IOException e) {
      throw new InternalSpaceException("Exception serializing resource", e);
  }
    }
View Full Code Here

Examples of net.jini.space.InternalSpaceException

    maxOps);

      log.observable().addObserver(be);
  } catch (IOException e) {
      final String msg = "LogStore: log creation failed";
      final InternalSpaceException ise =
    new InternalSpaceException(msg, e);
      logger.log(Level.SEVERE, msg, ise);
      throw ise;
  }
  return log;
    }
View Full Code Here

Examples of net.jini.space.InternalSpaceException

    // They never got the null
    return null;

      assertOpen();
      if (id != null && lastId == null) {
    throw logAndThrow(new InternalSpaceException("First call to " +
            "RemoteIter.next() should have id == null"),
         iteratorLogger);
      }

      // Did the client get the result of the last call?
View Full Code Here

Examples of net.jini.space.InternalSpaceException

        }
    }

    if (!found) {
        throw logAndThrow(
       new InternalSpaceException("Asked to delete entry " +
           "not returned by last nextReps() call"),
       iteratorLogger);
    }

    cancel(id);
View Full Code Here

Examples of net.jini.space.InternalSpaceException

    /**
     * This should never happen since we always return
     * <code>NOTCHANGED</code> from <code>prepare</code>.  */
    public void commit(TransactableMgr mgr, OutriggerServerImpl space) {
  throw new InternalSpaceException("committing a blocking query");
    }
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.