Closed Bug 306584 Opened 19 years ago Closed 19 years ago

crashes parsing .jsp page with javascripts

Categories

(Rhino Graveyard :: Core, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: igorv, Assigned: igor)

Details

Attachments

(1 file)

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Build Identifier: 

The page could be reflected correctly in MS IE 6.0.29 as well as Mozilla 
FireFox

the complete stacktrace below :
java.lang.ArrayIndexOutOfBoundsException: -1
     [java]     at org.mozilla.javascript.Interpreter.getIndex
(Interpreter.java:1752)
     [java]     at org.mozilla.javascript.Interpreter.getPatchedStack
(Interpreter.java:2197)
     [java]     at org.mozilla.javascript.RhinoException.generateStackTrace
(RhinoException.java:206)
     [java]     at org.mozilla.javascript.RhinoException.printStackTrace
(RhinoException.java:223)
     [java]     at java.lang.Throwable.printStackTrace(Throwable.java:451)
     [java]     at 
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.handleScriptExcep
tion(JavaScr
ipt.java:201)
     [java]     at 
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.performEvent
(JavaScript.java:
175)
     [java]     at com.meterware.httpunit.scripting.ScriptableDelegate.doEvent
(ScriptableDelegate.java:56)
     [java]     at com.meterware.httpunit.WebResponse$Scriptable.load
(WebResponse.java:689)
     [java]     at com.meterware.httpunit.javascript.JavaScript.load
(JavaScript.java:89)
     [java]     at 
com.meterware.httpunit.javascript.JavaScriptEngineFactory.load
(JavaScriptEngineFactory.java
:58)
     [java]     at com.meterware.httpunit.RequestContext.runScripts
(RequestContext.java:44)
     [java]     at com.meterware.httpunit.WebWindow.getResponse
(WebWindow.java:122)
     [java]     at com.meterware.httpunit.WebClient.getResponse
(WebClient.java:113)
     [java]     at bughost.bughostLoginTest.testLogin(bughostLoginTest.java:90)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
     [java]     at bughost.bughostLoginTest.main(bughostLoginTest.java:17)




Reproducible: Always
rhino version used : rhino1_6R2
Attached patch Fix β€” β€” Splinter Review
I committed the fix
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: