Examples of RendererException


Examples of com.volantis.mcs.protocols.renderer.RendererException

            if (elementDetails != null) {
                spanOutput.closeSpan((DOMOutputBuffer)buffer, attributes);
            }
        } catch (ProtocolException e) {
            throw new RendererException(e);
        }

        return MenuItemRenderedContent.TEXT;
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.renderer.RendererException

            if (script != null) {
                eventAttributes.setEvent(eventIndex, script);
            }

        } catch (ProtocolException e) {
            throw new RendererException(e);
        }

    }
View Full Code Here

Examples of com.volantis.mcs.protocols.renderer.RendererException

        } else if (type == FormatType.TEMPORAL_FORMAT_ITERATOR) {
            renderer = temporalFormatIteratorRenderer;
        }

        if (renderer == null) {
            throw new RendererException("No valid renderer for " + format +
                                        " could be found");
        }

        return renderer;
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.renderer.RendererException

                // Finished styling the pane and its contents.
                formatStylingEngine.endStyleable(pane);
            }
        } catch (IOException e) {
            throw new RendererException(exceptionLocalizer.format(
                    "renderer-error",
                    instance.getFormat()), e);
        } catch (ProtocolException e) {
            throw new RendererException(exceptionLocalizer.format(
                    "renderer-error",
                    instance.getFormat()), e);
        }
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.renderer.RendererException

        VolantisProtocol protocol = pageContext.getProtocol();
        try {
            protocol.writeFragmentLink(a);
        } catch (ProtocolException pe) {
            throw new RendererException(
                    exceptionLocalizer.format("renderer-error", destination),
                    pe);
        }
   
        formatStylingEngine.endStyleable(source);
View Full Code Here

Examples of com.volantis.mcs.protocols.renderer.RendererException

            // to avoid nesting too many levels of exception.
            if (e.getCause() instanceof RendererException &&
                    e.getMessage() == null) {
                throw (RendererException) e.getCause();
            } else {
                throw new RendererException(e);
            }
        }
    }
View Full Code Here

Examples of org.apache.maven.doxia.siterenderer.RendererException

            }
        }
        catch ( MavenReportException e )
        {
            throw new RendererException( "Error rendering Maven report: " + e.getMessage(), e );
        }
        catch ( LinkageError e )
        {
            StringBuilder stringBuilder =
                new StringBuilder( " an issue has occured with report " + report.getClass().getName() );
            stringBuilder.append( ", skip LinkageError " + e.getMessage() + ", please report an issue to maven dev team" );
            log.warn( stringBuilder.toString(), e );
        }
        finally
        {
            Thread.currentThread().setContextClassLoader( originalClassLoader );
            sink.close();
        }

        if ( !report.isExternalReport() )
        {
            try
            {
                List sinks = sf.sinks();

                log.debug( "Multipage report: " + sinks.size() + " subreports" );

                for ( Iterator it = sinks.iterator(); it.hasNext(); )
                {
                    MySink mySink = (MySink) it.next();
                    mySink.enableLogging( new MojoLogWrapper( log ) );

                    log.debug( "  Rendering " + mySink.getOutputName() );

                    Writer out = new FileWriter( new File( mySink.getOutputDir(), mySink.getOutputName() ) );

                    try
                    {
                        renderer.generateDocument( out, mySink, siteRenderingContext );
                    }
                    finally
                    {
                        mySink.close();
                    }
                }
            }
            catch ( IOException e )
            {
                throw new RendererException( "Cannot create writer", e );
            }

            renderer.generateDocument( writer, sink, siteRenderingContext );
        }
    }
View Full Code Here

Examples of org.apache.maven.doxia.siterenderer.RendererException

                report.generate( sink, locale );
            }
        }
        catch ( MavenReportException e )
        {
            throw new RendererException( "Error rendering Maven report: " + e.getMessage(), e );
        }
        catch ( LinkageError e )
        {
            log.warn( "An issue has occurred with report " + report.getClass().getName() + ", skip LinkageError "
                          + e.getMessage() + ", please report an issue to Maven dev team.", e );
        }
        finally
        {
            if ( classLoader != null )
            {
                Thread.currentThread().setContextClassLoader( originalClassLoader );
            }
            sink.close();
        }

        if ( !report.isExternalReport() )
        {
            try
            {
                List<MySink> sinks = sf.sinks();

                log.debug( "Multipage report: " + sinks.size() + " subreports" );

                for ( MySink mySink : sinks )
                {
                    mySink.enableLogging( new MojoLogWrapper( log ) );

                    log.debug( "  Rendering " + mySink.getOutputName() );

                    File outputFile = new File( mySink.getOutputDir(), mySink.getOutputName() );

                    Writer out = null;
                    try
                    {
                        out = WriterFactory.newWriter( outputFile, siteRenderingContext.getOutputEncoding() );
                        renderer.generateDocument( out, mySink, siteRenderingContext );
                    }
                    finally
                    {
                        mySink.close();
                        IOUtil.close( out );
                    }
                }
            }
            catch ( IOException e )
            {
                throw new RendererException( "Cannot create writer", e );
            }

            renderer.generateDocument( writer, sink, siteRenderingContext );
        }
    }
View Full Code Here

Examples of org.apache.maven.doxia.siterenderer.RendererException

            }
        }
        catch ( MavenReportException e )
        {
            String report = ( reportMojoInfo == null ) ? ( '"' + localReportName + "\" report" ) : reportMojoInfo;
            throw new RendererException( "Error generating " + report + ": " + e.getMessage(), e );
        }
        catch ( LinkageError e )
        {
            String report = ( reportMojoInfo == null ) ? ( '"' + localReportName + "\" report" ) : reportMojoInfo;
            log.warn( "An issue has occurred with " + report + ", skipping LinkageError "
                          + e.getMessage() + ", please report an issue to Maven dev team.", e );
        }
        finally
        {
            if ( classLoader != null )
            {
                Thread.currentThread().setContextClassLoader( originalClassLoader );
            }
            mainSink.close();
        }

        if ( report.isExternalReport() )
        {
            // external reports are rendered from their own: no Doxia site rendering needed
            return;
        }

        // render main sink
        renderer.generateDocument( writer, mainSink, siteRenderingContext );

        // render sub-sinks, eventually created by multi-page reports
        try
        {
            List<MultiPageSubSink> sinks = multiPageSinkFactory.sinks();

            log.debug( "Multipage report: " + sinks.size() + " subreports" );

            for ( MultiPageSubSink mySink : sinks )
            {
                mySink.enableLogging( new MojoLogWrapper( log ) );

                log.debug( "  Rendering " + mySink.getOutputName() );

                File outputFile = new File( mySink.getOutputDir(), mySink.getOutputName() );

                Writer out = null;
                try
                {
                    out = WriterFactory.newWriter( outputFile, siteRenderingContext.getOutputEncoding() );
                    renderer.generateDocument( out, mySink, siteRenderingContext );
                }
                finally
                {
                    mySink.close();
                    IOUtil.close( out );
                }
            }
        }
        catch ( IOException e )
        {
            throw new RendererException( "Cannot create writer", e );
        }
    }
View Full Code Here

Examples of org.apache.tiles.renderer.RendererException

                request.dispatch(valueString);
            } else {
                request.getWriter().write(valueString);
            }
        } else {
            throw new RendererException(
                    "Cannot render an untyped object attribute");
        }
    }
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.