Examples of NotBoundException


Examples of java.rmi.NotBoundException

    /**
     * {@link java.rmi.NotBoundException#NotBoundException(java.lang.String)}.
     */
    public void testNotBoundExceptionString() {
        NotBoundException e = new NotBoundException("fixture");
        assertEquals("fixture", e.getMessage());
        assertNull(e.getCause());
    }
View Full Code Here

Examples of java.rmi.NotBoundException

    /**
     * {@link java.rmi.NotBoundException#NotBoundException()}.
     */
    public void testNotBoundException() {
        NotBoundException e = new NotBoundException();
        assertNull(e.getCause());
        assertNull(e.getMessage());
    }
View Full Code Here

Examples of java.rmi.NotBoundException

                        if(elem.forkService()) {
                            int registryPort = ((CybernodeAdmin)c.getAdmin()).getRegistryPort();
                            String address = c.getInetAddress().getHostAddress();
                            Registry registry = LocateRegistry.getRegistry(address, registryPort);
                            Remote r = null;
                            NotBoundException notBound = null;
                            //for(int i=0; i<3; i++) {
                                try {
                                    r = registry.lookup(RMIServiceNameHelper.createBindName(elem));
                                } catch (NotBoundException e) {
                                    notBound = e;
View Full Code Here

Examples of lupos.engine.operators.singleinput.NotBoundException

        this.checkFilterConstraint(n.jjtGetChild(1), variables);
      } catch (final NotBoundException nbe) {
        deleteRightOperand = true;
      }
      if (deleteLeftOperand && deleteRightOperand) {
        throw new NotBoundException(
            "Both operands of an Or-Operator in a filter throw NotBoundException!");
      }
      if (deleteLeftOperand) {
        n.jjtGetParent().replaceChild2(n, n.jjtGetChild(1));
        n.jjtGetChild(1).jjtSetParent(n.jjtGetParent());
      }
      if (deleteRightOperand) {
        n.jjtGetParent().replaceChild2(n, n.jjtGetChild(0));
        n.jjtGetChild(0).jjtSetParent(n.jjtGetParent());
      }
    } else if (n instanceof lupos.sparql1_1.ASTVar) {
      if (!variables.contains(((lupos.sparql1_1.ASTVar) n).getName())) {
        throw new NotBoundException("Variable "
            + ((lupos.sparql1_1.ASTVar) n).getName() + " not bound");
      }
    } else {
      if(!(n instanceof ASTExists || n instanceof ASTNotExists || n instanceof ASTBoundFuncNode)){
        for(int i=0; i<n.jjtGetNumChildren(); i++){
View Full Code Here

Examples of lupos.engine.operators.singleinput.NotBoundException

    // nothing to release...
  }

  @Override
  public Object evaluate(final ASTOrNode node, final Bindings b, final Map<Node, Object> d) throws NotBoundException, TypeErrorException {
    NotBoundException _exceptionNB = null;
    TypeErrorException _exceptionTE = null;
    try {
      if (Helper.booleanEffectiveValue(node.jjtGetChild(0).accept(this, b, d))) {
        return true;
      }
View Full Code Here

Examples of lupos.engine.operators.singleinput.NotBoundException

    Literal l = b.get(new Variable(node.getName()));
    if (l == null) {
      l = b.get(new VariableInInferenceRule(node.getName()));
    }
    if (l == null) {
      throw new NotBoundException("Variable "
          + node.getName()
          + " is not bound!");
    } else {
      return l;
    }
View Full Code Here

Examples of org.jboss.ejb3.common.registrar.spi.NotBoundException

      ControllerContext context = this.getKernel().getController().getContext(name, null);

      // Ensure Bound
      if (context == null || context.getTarget() == null)
      {
         throw new NotBoundException("Requested value bound at name \"" + name + "\" is not bound.");
      }

      // If we're checking for installed
      if (checkInstalled)
      {
         // Get State
         ControllerState state = context.getState();

         // If State is other than INSTALLED
         if (!state.equals(ControllerState.INSTALLED))
         {
            throw new NotBoundException("Object is bound at key " + name
                  + ", but is not fully installed, instead of state: " + state);
         }

      }
View Full Code Here

Examples of org.jboss.ejb3.common.registrar.spi.NotBoundException

      {
         this.lookup(name, false);
      }
      catch (NotBoundException nbe)
      {
         throw new NotBoundException("Could not unbind object at name \"" + name + "\" as none is currently bound");
      }

      // Uninstall
      log.debug("Uninstalling bean with name \"" + name + "\"...");
      this.getKernel().getController().uninstall(name);
View Full Code Here

Examples of org.jboss.ejb3.common.registrar.spi.NotBoundException

      {
         this.lookup(name);
      }
      catch (NotBoundException nbe)
      {
         throw new NotBoundException("Could not invoke upon object at name \"" + name + "\" as none is currently bound");
      }

      // Invoke
      try
      {
View Full Code Here

Examples of org.jboss.ejb3.common.registrar.spi.NotBoundException

      ControllerContext context = this.getKernel().getController().getContext(name, null);

      // Ensure Bound
      if (context == null || context.getTarget() == null)
      {
         throw new NotBoundException("Requested value bound at name \"" + name + "\" is not bound.");
      }

      // If we're checking for installed
      if (checkInstalled)
      {
         // Get State
         ControllerState state = context.getState();

         // If State is other than INSTALLED
         if (!state.equals(ControllerState.INSTALLED))
         {
            throw new NotBoundException("Object is bound at key " + name
                  + ", but is not fully installed, instead of state: " + state);
         }

      }
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.