1 Feb 01:42
Re: [2.2] Weird NPE when concurrency
Joerg Heinicke <joerg.heinicke <at> gmx.de>
2008-02-01 00:42:58 GMT
2008-02-01 00:42:58 GMT
On 31.01.2008 16:35, Thorsten Scherler wrote: >> Have you made sure that your dispatcher transformer is configured correctly? If >> it is *not* threadsafe, you have to use the "prototype" scope. Otherwise you can >> use the "singleton" scope (which is actually the default!). > > This is what I always thought and how it is in 2.1 and the old 2.2. > version of cocoon that forrest is using. > > <bean id="dispatcher" > name="org.apache.cocoon.transformation.Transformer/dispatcher" > class="org.apache.forrest.dispatcher.transformation.DispatcherTransformer"> > <property name="manager" ref="org.apache.avalon.framework.service.ServiceManager"/> > </bean> > > We made a test with forrest trunk and this fixed the errors but before > migrating the app I will test with defining the "singleton" scope. If you have already concurrency issues then you might try the prototype scope! With the above setup the DispatcherTransformer IS in singleton scope. Joerg
RSS Feed