El lun, 15-12-2008 a las 09:47 +0100, Thorsten Scherler escribió:
> El lun, 15-12-2008 a las 08:49 +0100, Andreas Hartmann escribió:
> > Hi Thorsten,
> > 
> > Thorsten Scherler schrieb:
> > > I noticed in a module I am currently developing that the getView() from
> > > AbstractUsecase are called multiple times. I am not sure why but it
> > > feels like a bug that it is called more then once. 
> > > 
> > > I tried to debug and counted that the method is invoked 6 times. If you
> > > start lenya in debug mode and set a breakpoint at line 666 (no kidding
> > > the 'evil' line) in AbstractUsecase then you will note requesting
> > > lenya.usecase=admin.usecases exactly this phenomenon.
> > 
> > I just placed a breakpoint in this line and tried it with a different 
> > usecase, it was invoked 2 times:
> > 
> >    * directly by the usecases.js
> >    * when the UsecaseProxy is initialized
> > 
> > Do you use the trunk or 2.0.2?
> 
> First I was on trunk and then switched to the release tag. I am using
> java 1.5 on a ubuntu box. I may find time this morning to test with
> another box.
> 
> will let you know my findings.
> 

The same with Guadalinux and a fresh checkout install:

thors...@eric:~/src/apache/lenya-2.0.2$ uname -a
Linux eric 2.6.24-22-generic #1 SMP Mon Nov 24 18:32:42 UTC 2008 i686
GNU/Linux


thors...@eric:~/src/apache/lenya-2.0.2$ java -version
java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Server VM (build 1.5.0_11-b03, mixed mode)

thors...@eric:~/src/apache/lenya-2.0.2$ svn info
Ruta: .
URL: http://svn.apache.org/repos/asf/lenya/tags/RELEASE_2_0_2
Raíz del repositorio: http://svn.apache.org/repos/asf
UUID del repositorio: 13f79535-47bb-0310-9956-ffa450edef68
Revisión: 726652
Tipo de nodo: directorio
Agendado: normal
Autor del último cambio: ragaller
Revisión del último cambio: 688479
Fecha de último cambio: 2008-08-24 11:32:06 +0200 (dom 24 de ago de
2008)


Request 
http://localhost:8888/default/authoring/index.html?lenya.usecase=admin.usecases

and see that the breakpoint you added to line 666 in AbstractUsecase get
hit >=6 times. :(

Maybe it is because of cocoon?

salu2


> salu2
> 
> > 
> > -- Andreas
> > 
> > 
> > > 
> > > The whole problem about it is that the first time all parameter are in
> > > the request but after that not anymore. 
> > > 
> > > My class is very simple:
> > > 
> > > public class ShowReports extends AbstractUsecase {
> > > ...
> > >  protected void prepareView() throws Exception {
> > >  ...
> > >  }
> > > }
> > > 
> > > Meaning I just want to override the prepareView() method. 
> > > 
> > > My xconf looks like:
> > > <xconf xpath="/cocoon/usecases"
> > > unless="/cocoon/usecases/component-instan...@name =
> > > 'reporter.showReports']">
> > >   <component-instance name="reporter.showReports"
> > > logger="lenya.reporter"
> > >     class="org.apache.lenya.modules.reporter.ShowReports">
> > >     <view uri="modules/reporter/usecases/showReports.jx" menu="true"
> > > createContinuation="false">
> > >       <tab group="admin" name="reporter"/>
> > >     </view>
> > >   </component-instance>
> > > </xconf>
> > > 
> > > Does anybody see the same problem? 
> > > 
> > > Any ideas?
> > > 
> > > salu2
> > 
> > 
-- 
Thorsten Scherler <thorsten.at.apache.org>
Open Source Java <consulting, training and solutions>

Sociedad Andaluza para el Desarrollo de la Sociedad 
de la Información, S.A.U. (SADESI)





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to