cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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



Accepted Solutions (0)

Answers (2)

Answers (2)

rutika_bodas
Participant
0 Kudos

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

Former Member
0 Kudos

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