This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 150176

Summary: [65cat] ArrayIndexOutOfBoundsException: -1
Product: python Reporter: rajivderas <rajivderas>
Component: CodeAssignee: ardavis26 <ardavis26>
Status: VERIFIED FIXED    
Severity: blocker CC: rajivderas, sunbiz
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=128058
Issue Type: DEFECT Exception Reporter: 128058
Attachments: stacktrace
stacktrace
stacktrace
stacktrace
stacktrace

Description rajivderas 2008-10-15 09:46:21 UTC
Build: NetBeans IDE Dev (Build 20081015003247)
VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b21
OS: Windows XP, 5.1, x86

User Comments:
rajivderas: tried to remove the platform without selecting



Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: -1
        at java.util.ArrayList.get(ArrayList.java:324)
        at org.netbeans.modules.python.platform.models.PythonPlatformListModel.getElementAt(PythonPlatformListModel.java:25)
        at org.netbeans.modules.python.platform.panels.PythonPlatformPanel.removePlatformActionPerformed(PythonPlatformPanel.java:441)
        at org.netbeans.modules.python.platform.panels.PythonPlatformPanel.access$200(PythonPlatformPanel.java:38)
        at org.netbeans.modules.python.platform.panels.PythonPlatformPanel$3.actionPerformed(PythonPlatformPanel.java:117)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
Comment 1 rajivderas 2008-10-15 09:46:27 UTC
Created attachment 71832 [details]
stacktrace
Comment 2 rajivderas 2008-10-15 10:20:02 UTC
*** Issue 150177 has been marked as a duplicate of this issue. ***
Comment 3 Jana Maleckova 2008-10-15 10:21:45 UTC
reassign to correct component, seems that exception reported doesn't know about python which has been recently added
into netbeans.org repository
Comment 4 sunbiz 2008-10-19 07:19:21 UTC
Build: NetBeans IDE 6.5 RC1 (Build 20081018152813)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b32
OS: Windows Vista, 6.0, x86

User Comments: 
Added new python platform in Windows and got this exception

Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: -1
        at java.util.ArrayList.get(ArrayList.java:324)
        at org.netbeans.modules.python.platform.models.PythonPlatformListModel.getElementAt(PythonPlatformListModel.java:25)
        at org.netbeans.modules.python.platform.panels.PythonPlatformPanel.removePlatformActionPerformed(PythonPlatformPanel.java:441)
        at org.netbeans.modules.python.platform.panels.PythonPlatformPanel.access$200(PythonPlatformPanel.java:38)
        at org.netbeans.modules.python.platform.panels.PythonPlatformPanel$3.actionPerformed(PythonPlatformPanel.java:117)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
Comment 5 sunbiz 2008-10-19 07:19:30 UTC
Created attachment 72207 [details]
stacktrace
Comment 6 rajivderas 2008-10-20 08:01:39 UTC
Build: NetBeans IDE 6.5 RC1 (Build 20081019150301)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: -1
        at java.util.ArrayList.get(ArrayList.java:324)
        at org.netbeans.modules.python.platform.models.PythonPlatformListModel.getElementAt(PythonPlatformListModel.java:25)
        at org.netbeans.modules.python.platform.panels.PythonPlatformPanel.removePlatformActionPerformed(PythonPlatformPanel.java:441)
        at org.netbeans.modules.python.platform.panels.PythonPlatformPanel.access$200(PythonPlatformPanel.java:38)
        at org.netbeans.modules.python.platform.panels.PythonPlatformPanel$3.actionPerformed(PythonPlatformPanel.java:117)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
Comment 7 rajivderas 2008-10-20 08:01:51 UTC
Created attachment 72237 [details]
stacktrace
Comment 8 rajivderas 2008-10-22 07:51:39 UTC
Build: NetBeans IDE 6.5 RC1 (Build 20081021155605)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: -1
        at java.util.ArrayList.get(ArrayList.java:324)
        at org.netbeans.modules.python.platform.models.PythonPlatformListModel.getElementAt(PythonPlatformListModel.java:25)
        at org.netbeans.modules.python.platform.panels.PythonPlatformPanel.removePlatformActionPerformed(PythonPlatformPanel.java:441)
        at org.netbeans.modules.python.platform.panels.PythonPlatformPanel.access$200(PythonPlatformPanel.java:38)
        at org.netbeans.modules.python.platform.panels.PythonPlatformPanel$3.actionPerformed(PythonPlatformPanel.java:117)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
Comment 9 rajivderas 2008-10-22 07:51:43 UTC
Created attachment 72445 [details]
stacktrace
Comment 10 sunbiz 2008-10-23 17:49:58 UTC
Build: NetBeans IDE 6.5 RC1 (Build 20081021155605)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b32
OS: Windows Vista, 6.0, x86

User Comments: 


Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: -1
        at java.util.ArrayList.get(ArrayList.java:324)
        at org.netbeans.modules.python.platform.models.PythonPlatformListModel.getElementAt(PythonPlatformListModel.java:25)
        at org.netbeans.modules.python.platform.panels.PythonPlatformPanel.removePlatformActionPerformed(PythonPlatformPanel.java:441)
        at org.netbeans.modules.python.platform.panels.PythonPlatformPanel.access$200(PythonPlatformPanel.java:38)
        at org.netbeans.modules.python.platform.panels.PythonPlatformPanel$3.actionPerformed(PythonPlatformPanel.java:117)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
Comment 11 sunbiz 2008-10-23 17:50:02 UTC
Created attachment 72550 [details]
stacktrace
Comment 12 Torbjorn Norbye 2008-11-05 00:33:16 UTC
Fixed a couple of days ago by changeset ac09d4cb17dd
Comment 13 Peter Lam 2008-12-15 05:21:21 UTC
has already been verified in EA testing.