cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Daniel (JIRA)" <>
Subject [jira] Created: (COCOON3-23) StackOverflowError on CachingPipeline.setup(OutputStream)
Date Fri, 30 Jan 2009 14:47:59 GMT
StackOverflowError on CachingPipeline.setup(OutputStream)

                 Key: COCOON3-23
             Project: Cocoon 3
          Issue Type: Bug
          Components: cocoon-pipeline
    Affects Versions: 3.0.0-alpha-1
            Reporter: Alexander Daniel
            Assignee: Cocoon Developers Team

CachingPipeline.setup(OutputStream) calls itself resulting in a StackOverflowError [1]. I
suppose that it should create a CachingOutputStream first and then call super.setup like setup(OutputStream
outputStream, Map<String, Object> parameters) does [2]. [3] is a short code fragment
to reproduce.

public void setup(OutputStream outputStream) {

public void setup(OutputStream outputStream, Map<String, Object> parameters) {
     // create a caching output stream to intercept the result
     this.cachingOutputStream = new CachingOutputStream(outputStream);

     super.setup(this.cachingOutputStream, parameters);

Pipeline pipeline = new CachingPipeline();
pipeline.addComponent(new StringGenerator("<x></x>"));
pipeline.addComponent(new XMLSerializer());

ByteArrayOutputStream baos = new ByteArrayOutputStream();

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message