[jira] Updated: (LUCENE-740) Bugs in contrib/snowball/.../SnowballProgram.java -> Kraaij-Pohlmann gives Index-OOB Exception

2007-01-02 Thread Steven Parkes (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steven Parkes updated LUCENE-740:
-

Attachment: 740-license.txt

> Bugs in contrib/snowball/.../SnowballProgram.java -> Kraaij-Pohlmann gives 
> Index-OOB Exception
> --
>
> Key: LUCENE-740
> URL: https://issues.apache.org/jira/browse/LUCENE-740
> Project: Lucene - Java
>  Issue Type: Bug
>  Components: Analysis
>Affects Versions: 1.9
> Environment: linux amd64
>Reporter: Andreas Kohn
>Priority: Minor
> Attachments: 740-license.txt, lucene-1.9.1-SnowballProgram.java, 
> snowball.patch.txt
>
>
> (copied from mail to java-user)
> while playing with the various stemmers of Lucene(-1.9.1), I got an
> index out of bounds exception:
> lucene-1.9.1>java -cp
> build/contrib/snowball/lucene-snowball-1.9.2-dev.jar
> net.sf.snowball.TestApp Kp bla.txt
> Exception in thread "main" java.lang.reflect.InvocationTargetException
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>at java.lang.reflect.Method.invoke(Method.java:615)
>at net.sf.snowball.TestApp.main(TestApp.java:56)
> Caused by: java.lang.StringIndexOutOfBoundsException: String index out
> of range: 11
>at java.lang.StringBuffer.charAt(StringBuffer.java:303)
>at 
> net.sf.snowball.SnowballProgram.find_among_b(SnowballProgram.java:270)
>at net.sf.snowball.ext.KpStemmer.r_Step_4(KpStemmer.java:1122)
>at net.sf.snowball.ext.KpStemmer.stem(KpStemmer.java:1997)
> This happens when executing
> lucene-1.9.1>java -cp
> build/contrib/snowball/lucene-snowball-1.9.2-dev.jar
> net.sf.snowball.TestApp Kp bla.txt
> bla.txt contains just this word: 'spijsvertering'.
> After some debugging, and some tests with the original snowball
> distribution from snowball.tartarus.org, it seems that the attached
> change is needed to avoid the exception.
> (The change comes from tartarus' SnowballProgram.java)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



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



[jira] Updated: (LUCENE-740) Bugs in contrib/snowball/.../SnowballProgram.java -> Kraaij-Pohlmann gives Index-OOB Exception

2006-12-11 Thread Doron Cohen (JIRA)
 [ http://issues.apache.org/jira/browse/LUCENE-740?page=all ]

Doron Cohen updated LUCENE-740:
---

Attachment: snowball.patch.txt

Updated + new stemmers and SnowballProgram fix from http://snowball.tartarus.org

> Bugs in contrib/snowball/.../SnowballProgram.java -> Kraaij-Pohlmann gives 
> Index-OOB Exception
> --
>
> Key: LUCENE-740
> URL: http://issues.apache.org/jira/browse/LUCENE-740
> Project: Lucene - Java
>  Issue Type: Bug
>  Components: Analysis
>Affects Versions: 1.9
> Environment: linux amd64
>Reporter: Andreas Kohn
>Priority: Minor
> Attachments: lucene-1.9.1-SnowballProgram.java, snowball.patch.txt
>
>
> (copied from mail to java-user)
> while playing with the various stemmers of Lucene(-1.9.1), I got an
> index out of bounds exception:
> lucene-1.9.1>java -cp
> build/contrib/snowball/lucene-snowball-1.9.2-dev.jar
> net.sf.snowball.TestApp Kp bla.txt
> Exception in thread "main" java.lang.reflect.InvocationTargetException
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>at java.lang.reflect.Method.invoke(Method.java:615)
>at net.sf.snowball.TestApp.main(TestApp.java:56)
> Caused by: java.lang.StringIndexOutOfBoundsException: String index out
> of range: 11
>at java.lang.StringBuffer.charAt(StringBuffer.java:303)
>at 
> net.sf.snowball.SnowballProgram.find_among_b(SnowballProgram.java:270)
>at net.sf.snowball.ext.KpStemmer.r_Step_4(KpStemmer.java:1122)
>at net.sf.snowball.ext.KpStemmer.stem(KpStemmer.java:1997)
> This happens when executing
> lucene-1.9.1>java -cp
> build/contrib/snowball/lucene-snowball-1.9.2-dev.jar
> net.sf.snowball.TestApp Kp bla.txt
> bla.txt contains just this word: 'spijsvertering'.
> After some debugging, and some tests with the original snowball
> distribution from snowball.tartarus.org, it seems that the attached
> change is needed to avoid the exception.
> (The change comes from tartarus' SnowballProgram.java)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



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



[jira] Updated: (LUCENE-740) Bugs in contrib/snowball/.../SnowballProgram.java -> Kraaij-Pohlmann gives Index-OOB Exception

2006-12-11 Thread Andreas Kohn (JIRA)
 [ http://issues.apache.org/jira/browse/LUCENE-740?page=all ]

Andreas Kohn updated LUCENE-740:


Attachment: lucene-1.9.1-SnowballProgram.java

The patch is based on SnowballProgram.java as found on snowball.tartarus.org, 
so their licensing applies.


> Bugs in contrib/snowball/.../SnowballProgram.java -> Kraaij-Pohlmann gives 
> Index-OOB Exception
> --
>
> Key: LUCENE-740
> URL: http://issues.apache.org/jira/browse/LUCENE-740
> Project: Lucene - Java
>  Issue Type: Bug
>  Components: Analysis
>Affects Versions: 1.9
> Environment: linux amd64
>Reporter: Andreas Kohn
>Priority: Minor
> Attachments: lucene-1.9.1-SnowballProgram.java
>
>
> (copied from mail to java-user)
> while playing with the various stemmers of Lucene(-1.9.1), I got an
> index out of bounds exception:
> lucene-1.9.1>java -cp
> build/contrib/snowball/lucene-snowball-1.9.2-dev.jar
> net.sf.snowball.TestApp Kp bla.txt
> Exception in thread "main" java.lang.reflect.InvocationTargetException
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>at java.lang.reflect.Method.invoke(Method.java:615)
>at net.sf.snowball.TestApp.main(TestApp.java:56)
> Caused by: java.lang.StringIndexOutOfBoundsException: String index out
> of range: 11
>at java.lang.StringBuffer.charAt(StringBuffer.java:303)
>at 
> net.sf.snowball.SnowballProgram.find_among_b(SnowballProgram.java:270)
>at net.sf.snowball.ext.KpStemmer.r_Step_4(KpStemmer.java:1122)
>at net.sf.snowball.ext.KpStemmer.stem(KpStemmer.java:1997)
> This happens when executing
> lucene-1.9.1>java -cp
> build/contrib/snowball/lucene-snowball-1.9.2-dev.jar
> net.sf.snowball.TestApp Kp bla.txt
> bla.txt contains just this word: 'spijsvertering'.
> After some debugging, and some tests with the original snowball
> distribution from snowball.tartarus.org, it seems that the attached
> change is needed to avoid the exception.
> (The change comes from tartarus' SnowballProgram.java)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



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