Package javax.naming

Examples of javax.naming.NameNotFoundException.initCause()


                factory.setInterfaces(new Class[] { ClassUtils.resolveClassName(className, classLoader) });
                factory.afterPropertiesSet();
                return factory.getObject();
            } catch (org.springframework.osgi.service.ServiceUnavailableException e) {
                NameNotFoundException ex = new NameNotFoundException(e.getMessage());
                ex.initCause(e);
                throw ex;
            }
        }

    }
View Full Code Here


            } else {
                return null;
            }
        } catch (IllegalStateException e) {
            NameNotFoundException n = new NameNotFoundException(name);
            n.initCause(e);
            throw n;
        } catch (Throwable t) {
            NamingException n = NamingLogger.ROOT_LOGGER.lookupError(name);
            n.initCause(t);
            throw n;
View Full Code Here

            NameNotFoundException n = new NameNotFoundException(name);
            n.initCause(e);
            throw n;
        } catch (Throwable t) {
            NamingException n = NamingLogger.ROOT_LOGGER.lookupError(name);
            n.initCause(t);
            throw n;
        }
    }

    public List<NameClassPair> list(final Name name) throws NamingException {
View Full Code Here

                } catch (ValidationException e) {
                    _logger.log(Level.WARNING,
                            "Unable to lookup {0}, or build a default Bean Validator Factory: {1}",
                            new Object[]{nameForValidatorFactory, e});
                    NameNotFoundException ne = new NameNotFoundException();
                    ne.initCause(e);
                    throw ne;
                }
            }

            return validatorFactory;
View Full Code Here

            handler.getTarget(false);
            Object instance = Proxy.newProxyInstance(classLoader, new Class[] { clazz }, handler);
            return instance;
        } catch (Exception e) {
            NameNotFoundException ex = new NameNotFoundException(e.getMessage());
            ex.initCause(e);
            throw ex;
        }
    }
}
View Full Code Here

                } catch (ValidationException e) {
                    _logger.log(Level.WARNING,
                            "Unable to lookup {0}, or build a default Bean Validator Factory: {1}",
                            new Object[]{nameForValidatorFactory, e});
                    NameNotFoundException ne = new NameNotFoundException();
                    ne.initCause(e);
                    throw ne;
                }
            }

            return validatorFactory;
View Full Code Here

                } catch (ValidationException e) {
                    _logger.log(Level.WARNING,
                            "Unable to lookup {0}, or build a default Bean Validator Factory: {1}",
                            new Object[]{nameForValidatorFactory, e});
                    NameNotFoundException ne = new NameNotFoundException();
                    ne.initCause(e);
                    throw ne;
                }
            }

            return validatorFactory;
View Full Code Here

                } catch (ValidationException e) {
                    _logger.log(Level.WARNING,
                            "Unable to lookup {0}, or build a default Bean Validator Factory: {1}",
                            new Object[]{nameForValidatorFactory, e});
                    NameNotFoundException ne = new NameNotFoundException();
                    ne.initCause(e);
                    throw ne;
                }
            }

            return validatorFactory;
View Full Code Here

                } catch (ValidationException e) {
                    _logger.log(Level.WARNING,
                            "Unable to lookup {0}, or build a default Bean Validator Factory: {1}",
                            new Object[]{nameForValidatorFactory, e});
                    NameNotFoundException ne = new NameNotFoundException();
                    ne.initCause(e);
                    throw ne;
                }
            }

            return validatorFactory;
View Full Code Here

                } catch (ValidationException e) {
                    _logger.log(Level.WARNING,
                            "Unable to lookup {0}, or build a default Bean Validator Factory: {1}",
                            new Object[]{nameForValidatorFactory, e});
                    NameNotFoundException ne = new NameNotFoundException();
                    ne.initCause(e);
                    throw ne;
                }
            }

            return validatorFactory;
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.