On 10/11/05, Olivier Lustenberger <[EMAIL PROTECTED]> wrote:
> Le mardi 11 octobre 2005 à 11:14 +0000, Christian Huegel a écrit :
> > as initiating the search function as described here:
> > http://www.solprovider.com/lenya/searchdownload i get some errors when 
> > searching
> > for particular words in an publication. For example: the first 3 random 
> > words ar
> > found and dispalyed correctly but then, on the next search criteria i get 
> > an:
> > String index out of range: -961
> >
> > org.apache.cocoon.ProcessingException: Error executing pipeline.:
> > org.apache.cocoon.ProcessingException: Error executing pipeline.:
> > org.apache.cocoon.ProcessingException: Exception in
> > ServerPagesGenerator.generate(): java.lang.StringIndexOutOfBoundsException:
> > String index out of range: -961
> >
> > The search string definitly exists on the publication.
> > Has enybody else seen this behaviour?
>
> Same problem, only with some words (french/english content).
> org.apache.cocoon.ProcessingException: Error executing pipeline.:
> org.apache.cocoon.ProcessingException: Error executing pipeline.:
> org.apache.cocoon.ProcessingException: Exception in
> ServerPagesGenerator.generate():
> java.lang.StringIndexOutOfBoundsException:
> String index out of range: -209

It is either a bug in search-and-results.xsp, or a bug in the XSP
processor.  From the error, something is doing very poor math.  I
remember fixng a similar StringIndexOutOfBounds error, but I cannot
find it in my dev logs.  I fixed some obvious bugs when I first
revised search-and-results.xsp, but I was trying to keep the changes
minimal during development so I could provide easy instructions or a
diff.  Now everyone just downloads the whole file, so I can do more
extensive changes.  I'll do a full code review of
search-and-results.xsp later this week, and make certain every string
operation checks bounds.

Does this happen with the latest version of search-and-results.xsp
from 2005-09-25?  Does it ever happen during the first search?  (If
not, there is probably a variable that is not reset properly.)

solprovider

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to