You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Armaz Mellati <Ar...@uninett.no> on 2004/12/25 22:20:49 UTC

Creating a new Transformer

Hi

I have a problem to make my Transformers to work.

Goal : Make a slightly altered CincludeTransformer

To do this I have copied the whole source of the CincludeTransformer into a
class of my own, renamed it, compiled and added in the sitemap under the
transformer definitions.
When I try to use it, I get no errors, however I don't get any output
either. I can use the new transformer in a pipeline but it just doesn't give
any output. 
All I get in debug.log is this : 

DEBUG   (2004-12-25) 22:10.16:181   [sitemap] (/HSPortal/testinclude)
http-8083-Processor25/ResourceLimitingPool: Got a
org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline from
the pool.
DEBUG   (2004-12-25) 22:10.16:181   [sitemap] (/HSPortal/testinclude)
http-8083-Processor25/ResourceLimitingPool: Got a
org.apache.cocoon.generation.FileGenerator from the pool.
DEBUG   (2004-12-25) 22:10.16:189   [sitemap] (/HSPortal/testinclude)
http-8083-Processor25/ResourceLimitingPool: Put a
org.apache.cocoon.generation.FileGenerator back into the pool.
DEBUG   (2004-12-25) 22:10.16:189   [sitemap] (/HSPortal/testinclude)
http-8083-Processor25/ResourceLimitingPool: Put a
org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline back
into the pool.

As you can see, the whole process stops as soon as the Transformer is to be
started (right after the generator). But no errors what so ever. The process
never gets to the serializer and therefore I get no response back to the
browser.

Any ideas what I may have missed ? 
Or may be there is a better way to alter the functionality of an already
existing Transformer ??

Thanks in advance for taking time to read this.

Regards,
Armaz


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Creating a new Transformer

Posted by Jorg Heymans <jh...@domek.be>.
Armaz Mellati wrote:
> Hi
> 
> I have a problem to make my Transformers to work.
> 
> Goal : Make a slightly altered CincludeTransformer
> 
> To do this I have copied the whole source of the CincludeTransformer into a
> class of my own, renamed it, compiled and added in the sitemap under the
> transformer definitions.
> When I try to use it, I get no errors, however I don't get any output
> either. I can use the new transformer in a pipeline but it just doesn't give
> any output. 
> All I get in debug.log is this : 
> 
> DEBUG   (2004-12-25) 22:10.16:181   [sitemap] (/HSPortal/testinclude)
> http-8083-Processor25/ResourceLimitingPool: Got a
> org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline from
> the pool.
> DEBUG   (2004-12-25) 22:10.16:181   [sitemap] (/HSPortal/testinclude)
> http-8083-Processor25/ResourceLimitingPool: Got a
> org.apache.cocoon.generation.FileGenerator from the pool.
> DEBUG   (2004-12-25) 22:10.16:189   [sitemap] (/HSPortal/testinclude)
> http-8083-Processor25/ResourceLimitingPool: Put a
> org.apache.cocoon.generation.FileGenerator back into the pool.
> DEBUG   (2004-12-25) 22:10.16:189   [sitemap] (/HSPortal/testinclude)
> http-8083-Processor25/ResourceLimitingPool: Put a
> org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline back
> into the pool.
> 
> As you can see, the whole process stops as soon as the Transformer is to be
> started (right after the generator). But no errors what so ever. The process
> never gets to the serializer and therefore I get no response back to the
> browser.

This smells like a case of swallowed exceptions or such. Wrap your 
transform() method in a try/catch and see if it brings you more 
information.
Also did you check error.log or any of the other logfiles ?

HTH
Jorg


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org