Package org.impalaframework.exception

Examples of org.impalaframework.exception.ExecutionException


                    bundle = bundleContext.installBundle(bundleLocation, stream);
                }
            }
           
        } catch (BundleException e) {
            throw new ExecutionException("Unable to install bundle from resource: " + bundleResource.getDescription(), e);
        } catch (IOException e) {
            throw new ExecutionException("IO exception attempting to install bundle from resource: " + bundleResource.getDescription(), e);
        } finally {
            maybeCloseStream(stream);
        }
        return bundle;
    }
View Full Code Here


        if (!OsgiBundleUtils.isFragment(bundle)) {
            try {
                bundle.start();
               
            } catch (BundleException e) {
                throw new ExecutionException("Unable to start bundle with symbolic name '" + bundle.getSymbolicName() + "': " + e.getMessage(), e);
            }
        }
    }
View Full Code Here

                }
            }
           
           
        } catch (BundleException e) {
            throw new ExecutionException("Unable to update bundle '"
                        + bundle.getSymbolicName() + "' from resource '" + bundleResource.getDescription()
                        + "': " + e.getMessage(), e);
        } catch (IOException e) {
            throw new ExecutionException("IO exception attempting to update bundle '"
                        + bundle.getSymbolicName() + "' from resource: '" + bundleResource.getDescription()
                        + "': " + e.getMessage(), e);
        } finally {
            maybeCloseStream(stream);
        }
View Full Code Here

        }  
       
        try {
            bundle.stop();
        } catch (BundleException e) {
            throw new ExecutionException("Unable to stop bundle with symbolic name '" + bundle.getSymbolicName() + "': " + e.getMessage(), e);
        }
        return true;
    }
View Full Code Here

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

        return endPoint;
    }

    BeanDefinitionRegistry getBeanDefinitionRegistry(BeanFactory rootBeanFactory) {
        if (!(rootBeanFactory instanceof BeanDefinitionRegistry)) {
            throw new ExecutionException("Cannot use " + this.getClass().getName() + " with bean factory which does not implement " + BeanDefinitionRegistry.class.getName());
        }
        BeanDefinitionRegistry registry = (BeanDefinitionRegistry) rootBeanFactory;
        return registry;
    }
View Full Code Here

        List<Class> interfaceClasses = new ArrayList<Class>();
        for (String interfaceClass : interfaces) {
            Class resolvedClassName = ClassUtils.resolveClassName(interfaceClass.trim(), getBeanClassLoader());

            if (!resolvedClassName.isAssignableFrom(bean.getClass())) {
                throw new ExecutionException("Bean '" + beanName + "' is not instance of type " + resolvedClassName.getName() + ", declared in type list '" + typeList + "'");
            }

            interfaceClasses.add(resolvedClassName);
        }
    }
View Full Code Here

            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 {
            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

    ContextLoader contextLoader = null;
    try {
      contextLoader = contextLoaderClass.newInstance();
    }
    catch (Exception e) {
      throw new ExecutionException("Error instantiating context loader class " + contextLoaderClassName + ": " + e.getMessage(), e);
    }
   
    return contextLoader;
  }
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.