Package org.apache.avalon.framework

Examples of org.apache.avalon.framework.CascadingRuntimeException


            Class modelClass = Class.forName(modelClassName);
            Object o = modelClass.newInstance();

            return o;
        } catch (Exception e) {
            throw new CascadingRuntimeException(" Failed instantiating form model ",
                                                e);
        }
    }
View Full Code Here


      DocumentBuilder builder = factory.newDocumentBuilder();
      impl = builder.getDOMImplementation();
    }
    catch (Exception ex)
    {
      throw new CascadingRuntimeException("Failed to initialize DOM factory.", ex);
    }

    // initialize system as dom node
    Document doc = impl.createDocument( null, "XMLForm_Wizard_System_Node", null);
    Node rootElement = doc.getDocumentElement();
View Full Code Here

            Document document = dbld.parse(schemaSrc);

            schema = buildSchema(document);
        } catch (Exception e) {
            logger.error("!!! Failed loading Schematron schema", e);
            throw new CascadingRuntimeException(" !!! Failed loading Schematron schema",
                                                e);
        }
        return schema;
    } // build
View Full Code Here

        this.handlerName = this.handler.getHandlerName();
        this.applicationName = state.getApplicationName();
        try {
            this.authContext = new SimpleSessionContext();
        } catch (ProcessingException pe) {
            throw new CascadingRuntimeException("Unable to create simple context.", pe);
        }
    }
View Full Code Here

                this.renderer = (Renderer)ClassUtils.newInstance(this.rendererName);
            } catch (Exception e) {
                if (getLogger().isWarnEnabled()) {
                    getLogger().warn("Cannot load  class " + this.rendererName, e);
                }
                throw new CascadingRuntimeException("Cannot load class " + this.rendererName, e);
            }
        }
        this.driver.setRenderer(this.renderer);
        this.driver.setOutputStream(out);
        setContentHandler(this.driver.getContentHandler());
View Full Code Here

            Document document = dbld.parse(schemaSrc);

            schema = buildSchema(document);
        } catch (Exception e) {
            logger.error("!!! Failed loading Schematron schema", e);
            throw new CascadingRuntimeException(" !!! Failed loading Schematron schema",
                                                e);
        }
        return schema;
    } // build
View Full Code Here

            // Setup source
            try {
                this.source = resolver.resolveURI(this.url);
            } catch(Exception e) {
                throw new CascadingRuntimeException("Cannot resolve " + this.url, e);
            }

            // Get Mime-type

            // First try the source itself
View Full Code Here

            this.xmlizer = (XMLizer)this.manager.lookup(XMLizer.ROLE);
            this.sourceResolver = (org.apache.excalibur.source.SourceResolver)this.manager.lookup(org.apache.excalibur.source.SourceResolver.ROLE);

        } catch (ComponentException ce) {
            // this should never happen!
            throw new CascadingRuntimeException("Unable to lookup component.", ce);
        }
    }
View Full Code Here

                if (form_encoding != null) {
                    try {
                        this.data(new String(values[x].getBytes(container_encoding),
                            form_encoding));
                    } catch(java.io.UnsupportedEncodingException uee) {
                        throw new CascadingRuntimeException("Unsupported Encoding Exception", uee);
                    }
                } else {
                    this.data(values[x]);
                }
                this.end("value");
View Full Code Here

            this.writeString(publicId!=null?publicId:"");
            this.writeString(systemId!=null?systemId:"");
            this.write(locator.getLineNumber());
            this.write(locator.getColumnNumber());
        } catch (Exception e) {
             throw new CascadingRuntimeException("Error while handling locator", e);
        }
    }
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.