Examples of NoSuchContainerException


Examples of org.apache.tiles.impl.NoSuchContainerException

        TilesContainer container = getContainer(context, key);
        if (container != null) {
            context.setAttribute(ServletUtil.CURRENT_CONTAINER_ATTRIBUTE_NAME,
                    container, PageContext.REQUEST_SCOPE);
        } else {
            throw new NoSuchContainerException("The container with the key '"
                    + key + "' cannot be found");
        }
    }
View Full Code Here

Examples of org.apache.tiles.impl.NoSuchContainerException

            TilesContainer container) {
        if (container != null) {
            context.setAttribute(ServletUtil.CURRENT_CONTAINER_ATTRIBUTE_NAME,
                    container, PageContext.REQUEST_SCOPE);
        } else {
            throw new NoSuchContainerException("The container cannot be null");
        }
    }
View Full Code Here

Examples of org.apache.tiles.impl.NoSuchContainerException

            ServletContext context, String key) {
        TilesContainer container = getContainer(context, key);
        if (container != null) {
            request.setAttribute(CURRENT_CONTAINER_ATTRIBUTE_NAME, container);
        } else {
            throw new NoSuchContainerException("The container with the key '"
                    + key + "' cannot be found");
        }
    }
View Full Code Here

Examples of org.apache.tiles.impl.NoSuchContainerException

    public static void setCurrentContainer(ServletRequest request,
            ServletContext context, TilesContainer container) {
        if (container != null) {
            request.setAttribute(CURRENT_CONTAINER_ATTRIBUTE_NAME, container);
        } else {
            throw new NoSuchContainerException("The container cannot be null");
        }
    }
View Full Code Here

Examples of org.apache.tiles.impl.NoSuchContainerException

        TilesContainer container = getContainer(env, key);
        if (container != null) {
            getRequestHashModel(env).getRequest().setAttribute(
                    ServletUtil.CURRENT_CONTAINER_ATTRIBUTE_NAME, container);
        } else {
            throw new NoSuchContainerException("The container with the key '"
                    + key + "' cannot be found");
        }
    }
View Full Code Here

Examples of org.springframework.xd.dirt.cluster.NoSuchContainerException

    String path = Paths.build(Paths.CONTAINERS, entity.getName());

    try {
      Stat stat = client.checkExists().forPath(path);
      if (stat == null) {
        throw new NoSuchContainerException("Could not find container with id " + entity.getName());
      }
      client.setData().forPath(path, ZooKeeperUtils.mapToBytes(entity.getAttributes()));
    }
    catch (Exception e) {
      throw ZooKeeperUtils.wrapThrowable(e, e.getMessage());
View Full Code Here

Examples of org.springframework.xd.dirt.cluster.NoSuchContainerException

    String path = Paths.build(Paths.ADMINS, entity.getName());

    try {
      Stat stat = client.checkExists().forPath(path);
      if (stat == null) {
        throw new NoSuchContainerException("Could not find admin with id " + entity.getName());
      }
      client.setData().forPath(path, ZooKeeperUtils.mapToBytes(entity.getAttributes()));
    }
    catch (Exception e) {
      throw ZooKeeperUtils.wrapThrowable(e, e.getMessage());
View Full Code Here

Examples of org.springframework.xd.dirt.cluster.NoSuchContainerException

      catch (RestClientException e) {
        throw new ContainerShutdownException(e.getMessage());
      }
    }
    else {
      throw new NoSuchContainerException("Container could not be found with id " + containerId);
    }
  }
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.