18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

WARNING: java.lang.IllegalArgumentException: out of range index

nathmienathmie Members
edited November -1 in Sahi - Open Source
Has anybody seen this error before and know how to fix it?

If I exclude one _include function from my file it starts-up and run, but cannot deduce what is incorrect in that file. Also the path is definitely correct.

The included file compiles without error (using LINT) so not sure any takers?

Starting Sahi Server ...
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

IE Popup Enabled
SAHI_HOME: ..\..\..\..\sahi
SAHI_USERDATA_DIR: ..
SAHI_EXT_CLASS_PATH:
Sahi properties file = C:\RIB-BIB\6.1.2p\SAHI\config\sahi.properties
Sahi user properties file = C:\RIB-BIB\6.1.2p\SanityScripts\Common\Sahi\config\u
serdata.properties
>>>> Sahi started. Listening on port: 9999
>>>> Configure your browser to use this server and port as its proxy
>>>> Browse any page and CTRL-ALT-DblClick on the page to bring up the Sahi Cont
roller
21 Jul 2010 8:47:01 AM net.sf.sahi.rhino.RhinoScriptRunner run
WARNING: java.lang.IllegalArgumentException: out of range index
at org.mozilla.classfile.ClassFileWriter.add(ClassFileWriter.java:562)
at org.mozilla.classfile.ClassFileWriter.addLoadConstant(ClassFileWriter
.java:630)
at org.mozilla.classfile.ClassFileWriter.addPush(ClassFileWriter.java:86
8)
at org.mozilla.javascript.optimizer.Codegen.emitConstantDudeInitializers
(Codegen.java:1074)
at org.mozilla.javascript.optimizer.Codegen.generateCode(Codegen.java:35
1)
at org.mozilla.javascript.optimizer.Codegen.compileToClassFile(Codegen.j
ava:182)
at org.mozilla.javascript.optimizer.Codegen.compile(Codegen.java:91)
at org.mozilla.javascript.Context.compileImpl(Context.java:2391)
at org.mozilla.javascript.Context.compileString(Context.java:1359)
at org.mozilla.javascript.Context.compileString(Context.java:1348)
at org.mozilla.javascript.Context.evaluateString(Context.java:1101)
at net.sf.sahi.rhino.RhinoScriptRunner.run(RhinoScriptRunner.java:92)
at java.lang.Thread.run(Unknown Source)

Comments

  • Hi Nathmie,

    Can we have a look at the code inside the excluded file?

    Regards,
    Pankaj
  • narayannarayan Administrators
    Looks like some issue in the included file. Could you please post its contents? Or narrow it down by commenting various steps?
Sign In or Register to comment.