cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <>
Subject Re: JXTemplate is broken by implementing Recycable interface
Date Wed, 10 Oct 2007 00:48:00 GMT
Grzegorz Kossakowski wrote:
> Hi
> Following Giacomo's comment that Forms samples are broken I tried to run this sample:
> http://localhost:8888/cocoon-forms-sample/form1.flow (first one in Forms samples)
> I got following exception:
> Caused by: java.lang.NullPointerException
> 	at org.apache.cocoon.template.JXTemplateGenerator.setup(
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> 	at java.lang.reflect.Method.invoke(
> 	at
> org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(
> [...]
> After taking quick look on this problem I saw that JXTemplateGenerator is broken by the
fact that it
> implements (indirectly, by extending AbstractXMLProducer) Recycable interface. Implementing
> interface makes JXTemplateGenerator handled by our Avalon-Spring bridge instead of pure
Spring and
> treated as an Avalon component.

Why bridge code is invoked at all for components from spring's context.xml? 
Sounds counter intuitive. I would expect only components from 
cocoon.xconf/sitemap.xmap would be handled by the bridge code.



View raw message