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.
Build 200707171200. Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb) Steps to reproduce: Open Attach profiler dialog. Invoke Attach Wizard. Select J2EE Web/App Server as target type. Select not installed server from Server types list (for example JBoss 4+) Click Next twice to proceed to Choose Integration Page. Click Next again. The NPE is thrown: ( full stacktrace in attachment...) java.lang.NullPointerException at org.netbeans.modules.profiler.ui.wizards.providers.TargetPlatform.getAsEnum(TargetPlatform.java:87) at org.netbeans.modules.profiler.j2ee.jboss.JBossIntegrationPanel$Model$1.isSupported(JBossIntegrationPanel.java:39) at org.netbeans.modules.profiler.ui.wizards.providers.TargetPlatform.getPlatformList(TargetPlatform.java:51)
Created attachment 45291 [details] Stacktrace log for this issue
Cannot reproduce: - installed today's daily build (basic), used clean userdir - invoked Attach Profiler, opened AttachWizard using the "define..." link - selected J2EE Web/App Server, JBoss 4+, local direct attach - Next (Review Settings), Next (Choose Integration - Automatic), Next (JBoss provider settings) - no NPE is thrown Note that the server doesn't need to be installed and/or integrated with the IDE, AttachWizard isn't related to servers registered in the IDE.
Product Version: NetBeans IDE Dev (Build 200707171200) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb) Full build from bits.nbextras.org Jiri, I repeat exactly steps you described and got NPE (in attach)
Created attachment 45301 [details] NPE
I can see the problem in sources and most likely will be able to fix it, but I'm still not able to reproduce. Could you please tell me which Java Platforms are installed in your IDE?
I have 2 installed Java platforms: J2SE (JDK 1.6) and J2ME (J2ME Wireless Toolkit 2.2)
OK - that's the problem: J2ME Wireless Toolkit 2.2. How did you get this platform? It isn't installed for me when clean installing the full IDE.
Mobility pack is installed by default with installer distribution. Now I download, unpack and run zipped build and I see only J2SE platform in platforms list
The reason is that mobility cluster (zip installation) doesn't add any J2ME platform, it has to be downloaded and installed separately according to information directly from developers. That's why I was unable to reproduce the problem. Fixed for Beta1.
Verified in build 200708130000