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 228355 - Clicking on Tools->Server Giving Null Pointer Exception
Summary: Clicking on Tools->Server Giving Null Pointer Exception
Status: RESOLVED DUPLICATE of bug 228875
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: TomasKraus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-08 05:53 UTC by chintan4fun
Modified: 2013-04-24 11:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log generated by Netbeans IDE (89.77 KB, text/plain)
2013-04-08 05:53 UTC, chintan4fun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description chintan4fun 2013-04-08 05:53:02 UTC
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
Comment 1 Marian Mirilovic 2013-04-08 08:20:57 UTC
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)
Comment 2 TomasKraus 2013-04-09 12:57:19 UTC
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.
Comment 3 chintan4fun 2013-04-10 05:20:30 UTC
(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.
Comment 4 TomasKraus 2013-04-23 12:10:35 UTC
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.
Comment 5 TomasKraus 2013-04-24 11:47:13 UTC

*** This bug has been marked as a duplicate of bug 228875 ***