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.
Created attachment 133351 [details] messages.log generated by Netbeans IDE Here's the product details: Product Version: NetBeans IDE Dev (Build 201304042355) Java: 1.7.0_17; Java HotSpot(TM) Client VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02 System: Windows 7 version 6.1 running on x86; Cp1252; en_IN (nb) User directory: C:\Users\cndesai\AppData\Roaming\NetBeans\dev Cache directory: C:\Users\cndesai\AppData\Local\NetBeans\Cache\dev
java.lang.NullPointerException at org.netbeans.modules.glassfish.common.utils.JavaUtils.findSupportedPlatforms(JavaUtils.java:196) at org.netbeans.modules.glassfish.common.ui.VmCustomizer.<init>(VmCustomizer.java:114) at org.netbeans.modules.glassfish.common.GlassfishInstance.getCustomizer(GlassfishInstance.java:1279) at org.netbeans.api.server.ServerInstance.getCustomizer(ServerInstance.java:126) at org.netbeans.modules.server.ui.manager.ServerManagerPanel.selectServer(ServerManagerPanel.java:359) at org.netbeans.modules.server.ui.manager.ServerManagerPanel.propertyChange(ServerManagerPanel.java:131)
I'm unable to reproduce this issue. Please can you send me some reproduction scenario? I may also need to know what Java platforms are registered in your NetBeans and what GlassFish server(s) are registered there. This is something that I would like to fix ASAP.
(In reply to comment #2) > I'm unable to reproduce this issue. Please can you send me some reproduction > scenario? > I may also need to know what Java platforms are registered in your NetBeans and > what GlassFish server(s) are registered there. > > This is something that I would like to fix ASAP. I have registered JDK 1.7.0_17. No other platform is registered. I have registered below servers: 1) Jboss 4 ( 2 instances ) 2) Jboss 6 ( 2 instances ) 3) Glassfish server ( came installed default ) 4) Tried to add Jboss 7.1.1 Final but did not get success. 5) Tried to add Jboss 8.0.0.Alpha1-SNAPSHOT but did not get success. After above step 4 and/or 5, i assume the issue started coming.
I got this issue as another bug# 228875 but I still don't know cause. Checked into web-main: ---------------------- changeset: 251198:167e3b51cf27 branch: javaee7 summary: #228875 - Instrumented build to find NPE cause I modified this piece of code to locate source of NPE. It will still show warning and an exception and there will be log messages in NetBeans log: } catch (NullPointerException npe) { LOGGER.log(Level.WARNING, "NullPointerException caught in findSupportedPlatforms.", npe); if (supportedPlatforms == null) { LOGGER.log(Level.INFO, "Value of supportedPlatforms is null."); } else if (platform.getSpecification() == null) { LOGGER.log(Level.INFO, "Value of platform.getSpecification() is null."); } else if ( platform.getSpecification().getVersion() == null) { LOGGER.log(Level.INFO, "Value of platform.getSpecification().getVersion() is null."); } At this point I need some help from you. I would like to ask you to reproduce this issue with this extended logging when next dev build will be available. Log will tell us which value caused NPE and I'll take care of it.
*** This bug has been marked as a duplicate of bug 228875 ***