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 244848 - NullPointerException at org.netbeans.modules.javaee.wildfly.util.WildFlyProperties.selectJars
Summary: NullPointerException at org.netbeans.modules.javaee.wildfly.util.WildFlyPrope...
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WildFly (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: ehsavoie
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-02 23:41 UTC by edimarlnx
Modified: 2014-07-18 01:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 208396


Attachments
stacktrace (10.45 KB, text/plain)
2014-06-02 23:41 UTC, edimarlnx
Details

Note You need to log in before you can comment on or make changes to this bug.
Description edimarlnx 2014-06-02 23:41:07 UTC
Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b70, Java(TM) SE Runtime Environment, 1.8.0-b132
OS: Windows 7

User Comments:
GUEST: ...

edimarlnx: WildFly

GUEST: when selecting the wildfly

GUEST: It is now enough to select Tools-Servers to reproduce this error. I can't access the Servers screen anymore.

Before I installed the WildFly plugin and two WildFly servers (one was the old JBoss 7.1.1 as NetBeans did not yet recognize my old projects; still doesn't).

GUEST: just looking and checking




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.javaee.wildfly.util.WildFlyProperties.selectJars(WildFlyProperties.java:221)
   at org.netbeans.modules.javaee.wildfly.util.WildFlyProperties.getClasses(WildFlyProperties.java:239)
   at org.netbeans.modules.javaee.wildfly.customizer.CustomizerDataSupport.init(CustomizerDataSupport.java:139)
   at org.netbeans.modules.javaee.wildfly.customizer.CustomizerDataSupport.<init>(CustomizerDataSupport.java:98)
   at org.netbeans.modules.javaee.wildfly.nodes.WildflyManagerNode.getCustomizer(WildflyManagerNode.java:109)
   at org.openide.nodes.FilterNode.getCustomizer(FilterNode.java:819)
Comment 1 edimarlnx 2014-06-02 23:41:09 UTC
Created attachment 147542 [details]
stacktrace
Comment 2 Jan Peska 2014-07-15 08:02:28 UTC
please report directly to the wildfly plugin owner
Comment 3 ehsavoie 2014-07-16 08:23:35 UTC
JBoss AS 7.x is currently not supported by the WildFly plugin because i don't detect it properly.
I've hardened the code to avoid the NPE but this won't really fix the issue, as I'm expecting WildFly structure and jars.
Comment 4 Quality Engineering 2014-07-18 01:53:24 UTC
Integrated into 'main-silver', will be available in build *201407180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8028a547ae11
User: Emmanuel Hugonnet <ehsavoie@netbeans.org>
Log: Fixing bug #244848 : avoiding NPE that should not happen ;)