uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Zesch <ze...@tk.informatik.tu-darmstadt.de>
Subject RE: CasMultiplier gets same CAS every time next() is called
Date Wed, 08 Feb 2012 08:49:50 GMT
Hi,

do you call processAndOutputNewCASes() instead of process()?

-Torsten

> -----Original Message-----
> From: Alexander Klenner
> [mailto:alexander.garvin.klenner@scai.fraunhofer.de]
> Sent: Tuesday, February 07, 2012 2:30 PM
> To: user@uima.apache.org
> Subject: CasMultiplier gets same CAS every time next() is called
> 
> Hi,
> 
> I have a problem with a CasMultiplier, it calls it's public AbstractCAS
> next() method as often as expected, but as long as my CASMultiplier is
> running, there are no CASes given to any succeeding AEs.  Only one CAS
> is passed from the CasMultiplier after the last call of next().
> 
> I tried to debug this and just printed the CAS that is returned by the
> framework by calling:
> 
> JCas jcas = null;
> jcas = getEmptyCAS().getJCas();
> System.out.println(jcas.toString());
> 
> ,inside the next() method.
> 
> This jcas happens to have the exact same object-id (e.g
> org.apache.uima.jcas.impl.JCasImpl@6708f8e0) for every call of next()
> method in one run. My CasMultiplier is supposed to create 4 CASes and
> next() is actually called 4 times but somehow no new CASes are given by
> the framework, id seems to loop over the same object all the time and
> the last call of next() releases this CAS to the processing
> framework...
> 
> Any ideas?
> 
> Best,
> 
> Alex
> 
> 
> --
> Alexander G. Klenner
> Fraunhofer-Institute for Algorithms and Scientific Computing (SCAI)
> Schloss Birlinghoven, D-53754 Sankt Augustin
> Tel.: +49 - 2241 - 14 - 2736
> E-mail: alexander.garvin.klenner@scai.fraunhofer.de
> Internet: http://www.scai.fraunhofer.de
> 

Mime
View raw message