Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

Getting IndexOutOfBoundsException - RapidSpell Web Java - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
arvindbhoir
#1 Posted : Friday, June 6, 2014 5:22:56 PM
Rank: Member

Groups: Registered

Joined: 5/27/2014
Posts: 32
My ayt spell checker was working fine but suddenly getting this error :

An error occurred in RapidSpell; java.lang.IndexOutOfBoundsException: fromIndex = -46 @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e @ [Ljava.lang.StackTraceElement;@115470e

Why I am getting this error msg

ArvindB
ArvindB
Dan
#2 Posted : Friday, June 6, 2014 5:59:51 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 10/20/2004
Posts: 456
Hi Arvind,

Have you changed versions recently?

If you're a v4 customer could you make sure you're using the latest release. You can find it here;
http://keyoti.com/care/existingcustomers.html

Let me know how that goes please.


Dan Wright
Dan Wright
Jim
#3 Posted : Saturday, June 7, 2014 1:04:55 AM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,669
Location: Canada
Just to add - is it happening for specific textual content that is being spell checked?

Does it happen all the time?

Jim

-your feedback is helpful to other users, thank you!

-your feedback is helpful to other users, thank you!


arvindbhoir
#4 Posted : Saturday, June 7, 2014 3:42:57 AM
Rank: Member

Groups: Registered

Joined: 5/27/2014
Posts: 32
Hi Dan,
I am using trial version of v4, I have downloaded latest version RapidSpell-Web-Java-4-1-0-Full-UD from the given link, I replaced the .jar files in my application with the .jar files of this folder. But I am still getting same error. whereas your sample RapidSpellDemo from the same folder is working fine. Do I need to change anything else other than those 2 jar files?

ArvindB
ArvindB
Jim
#5 Posted : Saturday, June 7, 2014 1:18:00 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,669
Location: Canada
Arvind, I'll answer as it's the weekend

quote:
Do I need to change anything else other than those 2 jar files?



No you don't need to. Could you answer these questions?

Is it happening for specific textual content that is being spell checked?

Does it happen all the time?

Thanks
Jim

-your feedback is helpful to other users, thank you!

-your feedback is helpful to other users, thank you!


arvindbhoir
#6 Posted : Sunday, June 8, 2014 12:53:08 PM
Rank: Member

Groups: Registered

Joined: 5/27/2014
Posts: 32
It does not happening for specific text. Till now even I am unable to pick the pattern, why it is happening. Before Friday 6th June it was working with every text and after that it's giving the above error for any textual content.

Yes it happens almost 95% time from Friday.

ArvindB
ArvindB
Jim
#7 Posted : Monday, June 9, 2014 12:23:02 AM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,669
Location: Canada
Arvind, please use this JAR as a test

https://www.dropbox.com/...eb-IndexOutOfBounds.zip

It should give a more informative stacktrace. Also if you could post any code changes you made on Friday.

Thanks
Jim

-your feedback is helpful to other users, thank you!

-your feedback is helpful to other users, thank you!


arvindbhoir
#8 Posted : Monday, June 9, 2014 5:58:15 PM
Rank: Member

Groups: Registered

Joined: 5/27/2014
Posts: 32
Hi Jim,
I am getting this error with the new .jar

An error occurred in RapidSpell; java.lang.IndexOutOfBoundsException: fromIndex = -46 @ java.util.SubList.<init>(AbstractList.java:600) @ java.util.RandomAccessSubList.<init>(AbstractList.java:758) @ java.util.AbstractList.subList(AbstractList.java:468) @ com.keyoti.rapidSpell.RapidSpellChecker.findSuggestions(RapidSpellChecker.java:1109) @ com.keyoti.rapidSpell.RapidSpellChecker.findSuggestions(RapidSpellChecker.java:975) @ com.keyoti.rapidSpell.RapidSpellChecker.findSuggestions(RapidSpellChecker.java:915) @ com.keyoti.rapidSpell.web.RapidSpellWInlineHelperBean.WriteCheckResults(RapidSpellWInlineHelperBean.java:467) @ com.keyoti.rapidSpell.web.RapidSpellWInlineHelperBean.Render(RapidSpellWInlineHelperBean.java:222) @ com.keyoti.rapidSpell.web.RapidSpellWInlineHelperBean.writeHtml(RapidSpellWInlineHelperBean.java:167) @ com.keyoti.rapidSpell.web.AJAXRequestHandler.handle(ControlServlet.java:179) @ com.keyoti.rapidSpell.web.ControlServlet.processRequest(ControlServlet.java:236) @ com.keyoti.rapidSpell.web.ControlServlet.doPost(ControlServlet.java:261) @ javax.servlet.http.HttpServlet.service(HttpServlet.java:637) @ javax.servlet.http.HttpServlet.service(HttpServlet.java:717) @ org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) @ org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) @ org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) @ org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) @ org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) @ org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) @ org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) @ org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) @ org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) @ org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) @ org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) @ java.lang.Thread.run(Thread.java:662)

ArvindB
ArvindB
Jim
#9 Posted : Monday, June 9, 2014 6:59:55 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,669
Location: Canada
Thanks, I'll check it out - if you have the text that caused it, that would help.

Jim

-your feedback is helpful to other users, thank you!

-your feedback is helpful to other users, thank you!


arvindbhoir
#10 Posted : Monday, June 9, 2014 11:59:01 PM
Rank: Member

Groups: Registered

Joined: 5/27/2014
Posts: 32
I think it happens with some characters like 'u' & 't', I am getting the error for below text

get event where eventname in ('buy')

but if I remove word 'buy' from the error then I am not getting the error.



ArvindB
ArvindB
Jim
#11 Posted : Tuesday, June 10, 2014 1:52:07 AM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,669
Location: Canada
Thanks, I think it's related to your dictionary (because it's very small). I can't reproduce with the dictionary you sent the other day, but I believe it's fixed anyway.
https://www.dropbox.com/...315uq/RapidSpellWeb.jar

If it doesn't help, please send your current dict file.

Jim

-your feedback is helpful to other users, thank you!

-your feedback is helpful to other users, thank you!


arvindbhoir
#12 Posted : Tuesday, June 10, 2014 11:32:06 AM
Rank: Member

Groups: Registered

Joined: 5/27/2014
Posts: 32
Hi Jim,
I think the issue was with the .jar file. I have replaced my JAR file with above given file. And it is working now with my latest dictionary file, with which it was giving error previously.

Thanks for the updated file.

ArvindB
ArvindB
arvindbhoir
#13 Posted : Tuesday, June 10, 2014 12:41:30 PM
Rank: Member

Groups: Registered

Joined: 5/27/2014
Posts: 32
Now I am getting following error in js while selecting the suggestion for the error text.

"TypeError: error.parentNode is null" on line 942 in a.rapidspellweb?t=r&n=RapidSpell-AYT.js

ArvindB
ArvindB
Jim
#14 Posted : Tuesday, June 10, 2014 2:42:25 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,669
Location: Canada
Are you still using that autocorrect code? I wonder if it's related to that.

Which browser is this happening in?

Are you able to email a browser view source of your page? You can do it via support at keyoti.com

Jim

-your feedback is helpful to other users, thank you!

-your feedback is helpful to other users, thank you!


arvindbhoir
#15 Posted : Tuesday, June 10, 2014 3:31:19 PM
Rank: Member

Groups: Registered

Joined: 5/27/2014
Posts: 32
Yes Jim you are correct, It is becoz of autocorrect code.

function autoCorrect(tb){
var tbs = rsw_getTBSFromID(tb.id, false);
var errors = tbs.getSpanElements();
for(var i=0; i<errors.length; i++){
var embedhandler = errors[i].attributes['onmouseup'].nodeValue;
var suggestions = rsw_getSuggestionsArray(embedhandler);
if(suggestions.length>0){
if(suggestions[0]=='#Remove duplicate word') suggestions[0] = "";
rsw_changeTo(errors[i], suggestions[0]);
i--;//we just lost an error so back pedal one
}
}
}

This is the code that I am using for autocorrect, Please let me know how can I achieve autocorrect functionality without that error.

ArvindB
ArvindB
Jim
#16 Posted : Wednesday, June 11, 2014 1:27:01 AM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,669
Location: Canada
I'm not seeing the error, can you let me know which browser/version it's in please?

-your feedback is helpful to other users, thank you!

-your feedback is helpful to other users, thank you!


Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.




About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.