Examples of ConfigurationException


Examples of ivory.core.exception.ConfigurationException

    docNode = null;
    termNodes.clear();

    for (GraphNode node : nodes) {
      if (node.getType() == GraphNode.Type.DOCUMENT && docNode != null) {
        throw new ConfigurationException("Only one document node allowed in QueryPotential!");
      } else if (node.getType() == GraphNode.Type.DOCUMENT) {
        docNode = (DocumentNode) node;
      } else if (node.getType() == GraphNode.Type.TERM) {
        termNodes.add((TermNode) node);
      } else {
        throw new ConfigurationException(
            "Unrecognized node type in clique associated with QueryPotential!");
      }
    }

    String[] terms = new String[termNodes.size()];
View Full Code Here

Examples of javax.enterprise.deploy.spi.exceptions.ConfigurationException

                RemoteRefDConfigBean ejbRef = ejbRefs[i];
                if (ejbRef.getRefName().equals(name)) {
                    return ejbRef;
                }
            }
            throw new ConfigurationException("no such ejb-ref-name" + name);
        } else if (xpath.equals(xpaths[1])) {
            String name = ddBean.getText(namePaths[1])[0];
            for (int i = 0; i < ejbLocalRefs.length; i++) {
                LocalRefDConfigBean ejbLocalRef = ejbLocalRefs[i];
                if (ejbLocalRef.getRefName().equals(name)) {
                    return ejbLocalRef;
                }
            }
            throw new ConfigurationException("no such ejb-ref-name" + name);
        } else if (xpath.equals(xpaths[2])) {
            String name = ddBean.getText(namePaths[2])[0];
            for (int i = 0; i < resourceEnvRefs.length; i++) {
                LocalRefDConfigBean resourceEnvRef = resourceEnvRefs[i];
                if (resourceEnvRef.getRefName().equals(name)) {
                    return resourceEnvRef;
                }
            }
            throw new ConfigurationException("no such ejb-ref-name" + name);
        } else if (xpath.equals(xpaths[3])) {
            String name = ddBean.getText(namePaths[3])[0];
            for (int i = 0; i < resourceRefs.length; i++) {
                LocalRefDConfigBean resourceRef = resourceRefs[i];
                if (resourceRef.getRefName().equals(name)) {
                    return resourceRef;
                }
            }
            throw new ConfigurationException("no such res-ref-name" + name);
        } else {
            throw new ConfigurationException("Unrecognized XPath: " + ddBean.getXpath());
        }
    }
View Full Code Here

Examples of javax.naming.ConfigurationException

        }

        private void check(){
            if (child == null){
                if (exception instanceof ConfigurationException) {
                    ConfigurationException e = (ConfigurationException) exception;
                    child = e.getRootCause();
                } else if (exception instanceof SQLException) {
                    SQLException e = (SQLException) exception;
                    child = e.getNextException();
                }
                if (child == null) {
                  child = exception.getCause();
                }
                if (child == exception) {
View Full Code Here

Examples of jfun.yan.xml.ConfigurationException

    if(type!=null){
      try{
        type.getMethod(mname, null);
      }
      catch(NoSuchMethodException e){
        throw new ConfigurationException("lifecycle method "
            + mname + " not defined by "+ Misc.getTypeName(type),
            loc);
      }
    }
  }
View Full Code Here

Examples of jifx.commons.ConfigurationException

          }
          else if(recursiveElement.getNodeName().equals(ici.getTag())){
            ci = ici.newInstance();
            ci.make(recursiveElement);
          } else
            throw new ConfigurationException("La etiqueta "+recursiveElement.getNodeName()+" no es v�lida.");
         
        }
      }
    }   
  }
View Full Code Here

Examples of lt.baltic_amadeus.jqbridge.server.ConfigurationException

    }
   
    public FileQueue getQueue(String queueName) throws ConfigurationException {
        FileQueue queue = (FileQueue) queues.get(queueName);
        if (queue == null)
            throw new ConfigurationException("Queue " + queueName + " not configured for port " + this.name);
        else
            return queue;
    }
View Full Code Here

Examples of mireka.ConfigurationException

            try {
                message.setFrom(new InternetAddress(from));
                message.setRecipient(RecipientType.TO, new InternetAddress(
                        recipient));
            } catch (AddressException e) {
                throw new ConfigurationException(e);
            }
            message.setSubject(subject, "UTF-8");
            message.setText("");
            return message;
        } catch (MessagingException e) {
View Full Code Here

Examples of net.jini.config.ConfigurationException

                String[] groups0 =
                           ((DiscoveryGroupManagement)joinMgrLDM).getGroups();
                if(    (groups0 == DiscoveryGroupManagement.ALL_GROUPS)
                    || (groups0.length != 0) )
                {
                    throw new ConfigurationException
                                 ("discoveryManager entry must be configured "
                                  +"to initially discover/join NO_GROUPS");
                }//endif
            } else {// !(joinMgrLDM instanceof DiscoveryGroupManagement)
                throw new ConfigurationException
                                       ("discoveryManager entry must "
                                        +"implement DiscoveryGroupManagement");
            }//endif
            if( joinMgrLDM instanceof DiscoveryLocatorManagement ) {
                LookupLocator[] locs0 =
                        ((DiscoveryLocatorManagement)joinMgrLDM).getLocators();
                if( (locs0 != null) && (locs0.length != 0) ) {
                    throw new ConfigurationException
                                 ("discoveryManager entry must be configured "
                                  +"to initially discover/join no locators");
                }//endif
            } else {// !(joinMgrLDM instanceof DiscoveryLocatorManagement)
                throw new ConfigurationException
                                     ("discoveryManager entry must "
                                      +"implement DiscoveryLocatorManagement");
            }//endif
        } catch (NoSuchEntryException e) {
            joinMgrLDM
View Full Code Here

Examples of net.pterodactylus.util.config.ConfigurationException

      return null;
    }
    try {
      return Double.valueOf(pluginStore.strings.get(attribute));
    } catch (NumberFormatException nfe1) {
      throw new ConfigurationException("Could not parse “" + stringValue + "”.", nfe1);
    }
  }
View Full Code Here

Examples of net.sf.atjc.config.ConfigurationException

  public void configure(ServerConfig aConfig) throws ConfigurationException {
    super.configure(aConfig);
    try {
      context = new InitialContext(aConfig.getProperties());
    } catch (NamingException e) {
      throw new ConfigurationException("Unable to initialize naming context." + e.getMessage(), e);
    }
  }
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.