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 110114 - NPE on access to not installed application server provider settings
Summary: NPE on access to not installed application server provider settings
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-18 10:43 UTC by Maksim Khramov
Modified: 2007-08-13 10:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stacktrace log for this issue (7.36 KB, text/plain)
2007-07-18 10:43 UTC, Maksim Khramov
Details
NPE (7.44 KB, text/plain)
2007-07-18 11:38 UTC, Ivan Sidorkin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim Khramov 2007-07-18 10:43:10 UTC
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)
Comment 1 Maksim Khramov 2007-07-18 10:43:43 UTC
Created attachment 45291 [details]
Stacktrace log for this issue
Comment 2 Jiri Sedlacek 2007-07-18 10:58:40 UTC
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.
Comment 3 Ivan Sidorkin 2007-07-18 11:37:17 UTC
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)
Comment 4 Ivan Sidorkin 2007-07-18 11:38:16 UTC
Created attachment 45301 [details]
NPE
Comment 5 Jiri Sedlacek 2007-07-18 11:41:01 UTC
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?
Comment 6 Maksim Khramov 2007-07-18 11:58:45 UTC
I have 2 installed Java platforms:
J2SE (JDK 1.6) and J2ME (J2ME Wireless Toolkit 2.2)
Comment 7 Jiri Sedlacek 2007-07-18 12:42:55 UTC
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.
Comment 8 Maksim Khramov 2007-07-18 13:09:49 UTC
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
Comment 9 Jiri Sedlacek 2007-07-18 13:17:01 UTC
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.
Comment 10 Maksim Khramov 2007-08-13 10:26:19 UTC
Verified in build 200708130000