Package org.apache.avalon.framework

Examples of org.apache.avalon.framework.CascadingRuntimeException


        Repository repo = null;
        try {
            repo = (Repository)manager.lookup(Repository.class.getName());
        } catch (Exception e) {
            throw new CascadingRuntimeException("Cannot lookup repository", e);
        }
       
        try {
            Session session;
            try {
View Full Code Here


            if (this.container_encoding == null)
                this.container_encoding = "ISO-8859-1";
            byte[] bytes = str.getBytes(this.container_encoding);
            return new String(bytes, form_encoding);
        } catch (UnsupportedEncodingException uee) {
            throw new CascadingRuntimeException("Unsupported Encoding Exception", uee);
        }
    }
View Full Code Here

        RepeaterAdapter adapter;
    if (this.adapterClass != null) {
      try {
        adapter = (RepeaterAdapter) Thread.currentThread().getContextClassLoader().loadClass(this.adapterClass).newInstance();
      } catch (Exception e) {
        throw new CascadingRuntimeException("Cannot instantiate adapter class for advanced repeater binding", e);
      }
    } else {
      adapter = new RepeaterJXPathAdapter();
    }
View Full Code Here

            if (getLogger().isDebugEnabled()) {
                getLogger().debug("InsertBean performed.");
            }
        } catch (Exception e) {
            throw new CascadingRuntimeException("InsertBean failed.", e);
        }

        // jxpc.setFactory(new AbstractFactory() {
        //     public boolean createObject(JXPathContext context, Pointer pointer,
        //                                 Object parent, String name, int index) {
View Full Code Here

    public Object getRoot() {
        if (this.rootSource == null) {
            try {
                this.rootSource = (TraversableSource) this.resolver.resolveURI(this.rootURL);
            } catch (Exception e) {
                throw new CascadingRuntimeException("Cannot resolve " + this.rootURL, e);
            }
        }
        return this.rootSource;
    }
View Full Code Here

            TraversableSource dir = (TraversableSource)parent;
            try {
                // Return children if it's a collection, null otherwise
                return dir.isCollection() ? filterChildren(dir.getChildren()) : null;
            } catch (SourceException e) {
                throw new CascadingRuntimeException("getChildren", e);
            }
        } else {
            return null;
        }
    }
View Full Code Here

    public Object getChild(Object parent, String key) {
        try {
            return ((TraversableSource)parent).getChild(key);
        } catch (SourceException e) {
            throw new CascadingRuntimeException("getChild", e);
        }
    }
View Full Code Here

                }
                this.tempInitContext = null;
            }
        } catch (ComponentException ce) {
            // this should never happen!
            throw new CascadingRuntimeException("Unable to lookup component.", ce);
        } catch (IOException ie) {
            throw new CascadingRuntimeException("Unable to resolve URI: "+this.tempInitContext, ie);
        }
    }
View Full Code Here

                if (!uri.endsWith("/")) {
                    sb.append('/');
                }
                this.resolver.release(src);
            } catch(IOException ioe) {
                throw new CascadingRuntimeException("Cannot resolve " + base, ioe);
            }
        }

        sb.append(name);
View Full Code Here

            runnableManager.execute( this, delay, 0 );
            m_serviceManager.release( runnableManager );
        }
        catch( final ServiceException se )
        {
            throw new CascadingRuntimeException( "Cannot lookup RunnableManager",
                                                 se );
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.avalon.framework.CascadingRuntimeException

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.