Package org.apache.cocoon.pipeline

Examples of org.apache.cocoon.pipeline.ProcessingException


        URLConnection connection = null;
        try {
            connection = this.source.openConnection();
            return connection.getContentType();
        } catch (IOException e) {
            throw new ProcessingException(e);
        } finally {
            URLConnectionUtils.closeQuietly(connection);
        }
    }
View Full Code Here


        } catch (MalformedURLException e) {
            String message = "Can't parse URL " + sourceAtt;
            if (this.logger.isErrorEnabled()) {
                this.logger.error(message, e);
            }
            throw new ProcessingException(message, e);
        }
    }
View Full Code Here

        this.saxParser.setContentHandler(this.getSAXConsumer());

        try {
            this.saxParser.parse(this.htmlSource.toExternalForm());
        } catch (SAXException e) {
            throw new ProcessingException("Fatal XML error", e);
        } catch (IOException e) {
            throw new ProcessingException("Fatal protocol violation", e);
        }
    }
View Full Code Here

            if (linkInfoNavigator.fulfillsCriteria(event)) {
                event = this.getParent().nextEvent();
                if (linkInfoPartNavigator.fulfillsCriteria(event)) {
                    if (linkInfo == null) {
                        throw new ProcessingException(new NullPointerException(
                                "The LinkInfo object mustn't be null here."));
                    }

                    String fileName = this.getAttributeValue(event.asStartElement(), "fileName");
                    if (!"".equals(fileName)) {
View Full Code Here

        try {
            while (this.parent.hasNext()) {
                this.staxToSaxHandler.convertEvent(this.parent.nextEvent());
            }
        } catch (XMLStreamException e) {
            throw new ProcessingException("Error during retrieving StAXEvents.", e);
        }
    }
View Full Code Here

                    try {
                        this.includeDelegate = new XMLGenerator(source.openConnection().getInputStream());
                    } catch (IOException e) {
                        String message = "Can't read from URL " + sourceAttribute.getValue();
                        this.logger.error(message, e);
                        throw new ProcessingException(message, e);
                    }
                } else if (!this.isIncludeEnd.fulfillsCriteria(event)) {
                    this.addEventToQueue(event);
                    return;
                }
View Full Code Here

            return source;
        } catch (MalformedURLException e) {
            String message = "Can't parse URL " + sourceAtt;
            this.logger.error(message, e);
            throw new ProcessingException(message, e);
        }
    }
View Full Code Here

        try {
            while (this.parent.hasNext()) {
                this.writer.add(this.parent.nextEvent());
            }
        } catch (XMLStreamException e) {
            throw new ProcessingException("Error during writing output elements.", e);
        }

        try {
            this.writer.flush();
        } catch (XMLStreamException e) {
            throw new ProcessingException("Finally cant flush the output stream.", e);
        }
    }
View Full Code Here

    public void execute() {
        if ("GET".equalsIgnoreCase(this.request.getMethod()) || "POST".equalsIgnoreCase(this.request.getMethod())) {
            try {
                wicketFilter.doGet(this.request, this.response);
            } catch (ServletException e) {
                throw new ProcessingException(e);
            } catch (IOException e) {
                throw new ProcessingException(e);
            }
        }
    }
View Full Code Here

            consumer.characters(timestamp.toCharArray(), 0, timestamp.length());
            consumer.endElement("", "timestamp", "timestamp");

            consumer.endDocument();
        } catch (SAXException e) {
            throw new ProcessingException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.cocoon.pipeline.ProcessingException

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.