Skip to Content
author's profile photo Former Member
Former Member

SAP MII Applet error--java.lang.IndexOutOfBoundsException: Index: 0,Size: 0

Dear Experts,

I am facing java error while running an iCommand applet through irpt page in SAP MII 12.1

By forum , I came to know ,the error occurs because of using the method "document.AppletName.getRowCount()" before executeCommand().

if(document.AppletName.executeCommand()){

rowCount = document.AppShopfloorCmd.getRowCount();

}


any idea on how to resolve the following error :

Message: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

Should I need to re-install the java ?

this error is machine or Application specific ?

Regards,

Eswar



Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 02, 2013 at 05:44 AM

    Hi Eswar,

    This error is neither machine nor application specific.

    Probably your executeCommand() method may be giving some error if your Query in the applet is not executing properly.

    Few things:

    1. What version of JRE are you using?

    2. Did you try putting an alert inside your IF statement to check whether the applet is executed without error or not?

    Best Regards,

    Anuj

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 02, 2013 at 09:16 AM

    Hi Eswar,

    I alerted my row counts before the execute command method on iCommand and it returned me zero.

    When I alerted it after execute command, it alerted me a row count of 60.

    So it does not seem to be the case that executeCommand has to be run before calling getRowCount() on iCommand applet.

    I would suggest, please recheck that the applet name and other variables are correctly written in the code.

    --Rutika

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.