Package org.impalaframework.exception

Examples of org.impalaframework.exception.ExecutionException


            FactoryBean factoryBean = (FactoryBean)service;
            try {
                this.service = factoryBean.getObject();
            }
            catch (Exception e) {
                throw new ExecutionException("Error retrieving target object from factory bean " + factoryBean, e);
            }
        } else {
            this.service = service;
        }
    }
View Full Code Here


    try {
      Properties props = (Properties) factoryBean.getObject();
      properties = props;
    } catch (IOException e) {
      if (properties != null) {
        throw new ExecutionException("Unable to load properties from " + factoryBean, e);
      }
    }
  }
View Full Code Here

        try {
            this.rootFile = file;
            this.rootCanonicalPath = file.getCanonicalPath();
        }
        catch (IOException e) {
            throw new ExecutionException("Unable to obtain canonical path for file " + file);
        }
    }
View Full Code Here

            throw e;
        }
        catch (Throwable e) {
            servletContext.removeAttribute(applicationContextAttributeName);
            servletContext.removeAttribute(servletContextAttributeName);
            throw new ExecutionException(e.getMessage(), e);
        }
    }
View Full Code Here

    public Object getWrappedObject() {       
        try {
            return this.targetSource.getTarget();
        }
        catch (Exception e) {
            throw new ExecutionException(e);
        }
    }
View Full Code Here

           
            try {
                return ClassUtils.forName(factoryClass);
            }
            catch (Throwable e) {
                throw new ExecutionException("Unable to load class: " + factoryClass + ": " + e.getMessage(), e);
            }
        }
        Class<?> beanClass = guessBeanClass(element);
        if (beanClass != null) {
            return beanClass;
View Full Code Here

            if (!result.isInError()) {
                try {
                servlet.init();
              }
              catch (Exception e) {
                throw new ExecutionException("Unable to reinitialize servlet " + servletName, e);
              }
            } else {
                logger.warn("Not attempting to initialize servlet " + servletName + " as module loading failed");
            }
          }
View Full Code Here

        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
        DocumentBuilder docBuilder = null;
        try {
            docBuilder = factory.newDocumentBuilder();
        } catch (ParserConfigurationException e) {
            throw new ExecutionException("Error in parser configuration", e);
        }
        Document doc = docBuilder.newDocument();
        return doc;
    }
View Full Code Here

            Source source = new DOMSource(document);
            Result result = new StreamResult(writer);
            Transformer xformer = TransformerFactory.newInstance().newTransformer();
            xformer.transform(source, result);
          } catch (Exception e) {
            throw new ExecutionException("Failed outputting XML document", e);
          }

    }
View Full Code Here

            InputSource inputSource = new InputSource(reader);
            document = loader.loadDocument(inputSource, null, new SimpleSaxErrorHandler(logger),
                    XmlBeanDefinitionReader.VALIDATION_NONE, true);
        }
        catch (Exception e) {
            throw new ExecutionException("Unable to load XML document from resource " + description, e);
        }
        finally {
            try {
                if (reader != null) {
                    reader.close();
View Full Code Here

TOP

Related Classes of org.impalaframework.exception.ExecutionException

Copyright © 2018 www.massapicom. 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.