Examples of XmlProcessingException


Examples of com.volantis.xml.pipeline.sax.XMLProcessingException

                method.invoke(derivableHTTPMessageEntity, arguments);

            } catch (NoSuchMethodException e) {
                e.printStackTrace();
                logger.error("unexpected-no-such-method-exception", e);
                error(new XMLProcessingException(
                            exceptionLocalizer.format(
                                        "unexpected-no-such-method-exception"),
                            getPipelineContext().getCurrentLocator(),
                            e));
            } catch (SecurityException e) {
                e.printStackTrace();
                logger.error("unexpected-security-exception", e);
                error(new XMLProcessingException(
                            exceptionLocalizer.format(
                                        "unexpected-security-exception"),
                            getPipelineContext().getCurrentLocator(),
                            e));
            } catch (IllegalAccessException e) {
                e.printStackTrace();
                logger.error("unexpected-illegal-access-exception", e);
                error(new XMLProcessingException(
                            exceptionLocalizer.format(
                                        "unexpected-illegal-access-exception"),
                            getPipelineContext().getCurrentLocator(),
                            e));
            } catch (IllegalArgumentException e) {
                e.printStackTrace();
                logger.error("unexpected-exception", e);
                error(new XMLProcessingException(
                            exceptionLocalizer.format("unexpected-excpetion"),
                            getPipelineContext().getCurrentLocator(),
                            e));
            } catch (InvocationTargetException e) {
                e.printStackTrace();
                logger.error("unexpected-invocation-target-exception", e);
                error(new XMLProcessingException(
                            exceptionLocalizer.format(
                                        "unexpected-invocation-target-exception"),
                            getPipelineContext().getCurrentLocator(),
                            e));
            } finally {
                // Reset the chars array.
                chars = null;
            }
        } else {
            final String message = "localName, characters and message entity " +
                    "should not be null. Values are: localName='" + localName +
                    "', chars='" + chars + "', derivableMessageEntity='" +
                    derivableHTTPMessageEntity + "'";
            if (logger.isDebugEnabled()) {
                logger.debug(message);
            }

            error(new XMLProcessingException(
                    message, getPipelineContext().getCurrentLocator()));
        }
    }
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLProcessingException

        if (PARAMETERS_ELEMENT.equals(localName) &&
                namespaceURI.equals(adapterProcess.getProcessNamespaceURI())) {
            // Check that no templates have been added yet.  The parameters
            // element must be the first child of the transform element.
            if (operationProcess.getTemplateCount() > 0) {
                XMLProcessingException xpe = new XMLProcessingException(
                        "The parameters element must be the first child of " +
                        "the transform element.", adapterProcess.
                                                  getPipelineContext().getCurrentLocator());
                // report the error down the pipeline.
                fatalError(xpe);
            }
            adapterProcess.changeState(new Parameters(adapterProcess),
                                       namespaceURI, localName, qName, atts);
        } else if (TRANSFORMATION_ELEMENT.equals(localName) &&
                namespaceURI.equals(adapterProcess.getProcessNamespaceURI())) {

            // ok we have a transformation element directly inside a
            // transform element. We must ensure that no other
            // transformation has been requested (if so a transformations
            // element should have been the parent.
            if (operationProcess.getTemplateCount() > 0) {
                XMLProcessingException xpe = new XMLProcessingException(
                        "Transform elements can at most contain one " +
                        "transformation element", adapterProcess.
                                                  getPipelineContext().getCurrentLocator());
                // report the error down the pipeline.
                fatalError(xpe);
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLProcessingException

                target.addHeadProcess(pipelineIntegration);

                inserted = true;
            } catch (SAXException e) {
                target.getPipelineProcess().fatalError(
                    new XMLProcessingException(
                        "Could not add the pipeline integration adapter " +
                        "process to the pipeline",
                        pipelineContext.getCurrentLocator(),
                        e));
            }
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLProcessingException

            if (head instanceof PipelineIntegrationAdapterProcess) {
                try {
                    target.removeHeadProcess();
                } catch (SAXException e) {
                    target.getPipelineProcess().fatalError(
                        new XMLProcessingException(
                            "Could not add the pipeline integration adapter " +
                            "process to the pipeline",
                            pipelineContext.getCurrentLocator(),
                            e));
                }
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.