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.
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)
Created attachment 118312 [details] stacktrace
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
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