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 211234 - ArrayIndexOutOfBoundsException: 0
Summary: ArrayIndexOutOfBoundsException: 0
Status: RESOLVED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-16 09:08 UTC by bertuccia
Modified: 2012-12-29 02:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 153529


Attachments
stacktrace (7.46 KB, text/plain)
2012-04-16 09:09 UTC, bertuccia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bertuccia 2012-04-16 09:08:57 UTC
This issue was reported manually by bertuccia.
It already has 5 duplicates 


Build: NetBeans IDE 7.0.1 (Build 201107282000)
VM: Java HotSpot(TM) Client VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04
OS: Windows XP

User Comments:
GUEST: I was trying to create j2me client to server application

bertuccia: Mobile Client to Web Application Wizard: Creating a Client-Server Application 
Java ME Client to Web Application Wizard
Let's use the Java ME Client to Web Application wizard to create a mobile client inside the mobile project with the calcSum method selection.

>>>> Expand MobileApplication, right-click Source Packages and choose New > Java ME Client to Web Application.<<<<<

bertuccia: Java ME Client to Web Application Wizard
Let's use the Java ME Client to Web Application wizard to create a mobile client inside the mobile project with the calcSum method selection.

>>>>>>>    Expand MobileApplication, right-click Source Packages and choose New > Java ME Client to Web Application.

GUEST: Java ME Client to Web Application Wizard
Let's use the Java ME Client to Web Application wizard to create a mobile client inside the mobile project with the calcSum method selection.

>>>> Expand MobileApplication, right-click Source Packages and choose New > Java ME Client to Web Application.




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 0
   at org.netbeans.modules.mobility.end2end.ui.wizard.WebApplicationPanel.getPreselectedGroup(WebApplicationPanel.java:621)
   at org.netbeans.modules.mobility.end2end.ui.wizard.WebApplicationPanel.initValues(WebApplicationPanel.java:556)
   at org.netbeans.modules.mobility.end2end.ui.wizard.WebApplicationPanel.initValues(WebApplicationPanel.java:539)
   at org.netbeans.modules.mobility.end2end.ui.wizard.WebApplicationPanel.setValues(WebApplicationPanel.java:203)
   at org.netbeans.modules.mobility.end2end.ui.wizard.WebApplicationPanel.<init>(WebApplicationPanel.java:154)
   at org.netbeans.modules.mobility.end2end.ui.wizard.WebApplicationPanel$WebApplicationPanelWizard.getComponent(WebApplicationPanel.java:1313)
Comment 1 bertuccia 2012-04-16 09:09:02 UTC
Created attachment 118312 [details]
stacktrace
Comment 2 Petr Somol 2012-12-27 15:41:57 UTC
ArrayIndexOutOfBoundsException: 0 could occur on projects with empty list of source roots. The following fix prevents the exception in such case:
http://hg.netbeans.org/jet-main/rev/af6a498dd0a2
Comment 3 Quality Engineering 2012-12-29 02:26:28 UTC
Integrated into 'main-golden', will be available in build *201212290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/af6a498dd0a2
User: Petr Somol <psomol@netbeans.org>
Log: #211234 - ArrayIndexOutOfBoundsException: 0