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 243649 - NullPointerException at org.netbeans.modules.web.jsf.editor.el.JsfVariablesModel$1.accepts
Summary: NullPointerException at org.netbeans.modules.web.jsf.editor.el.JsfVariablesMo...
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-08 09:31 UTC by Exceptions Reporter
Modified: 2014-04-28 09:01 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 205568


Attachments
stacktrace (6.53 KB, text/plain)
2014-04-08 09:31 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-04-08 09:31:53 UTC
Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Windows 7

User Comments:
GUEST: I ctreated and added new library to project. (OpenFaces)

GUEST: The IDE just keep on background scanning the projects. Makes the whole system hang.

iskrid: simply load my projects

GUEST: Add gmaps4jsf-core-3.0.0.jar to a JSF project. Include the namespace xmlns:m="http://code.google.com/p/gmaps4jsf/" in an .xhtml file. Two problems are shown
1) Netbeans generates No library found for namespace http://code.google.com/p/gmaps4jsf/
2) This null pointer error start to get thrown every few minutes

May be coincidental, but this error only started after gmaps was added to project.

iskrid: Exception happens after i closed a taglib with the following content:

<?xml version='1.0' encoding='UTF-8'?>
<facelet-taglib
    version="2.0"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd"
 >
    <namespace>http://promaad.whiteye.de/t2tv2/jsf/</namespace>

    <tag>
        <tag-name>outputtree</tag-name>
        <component>
            <component-type>HtmlOutputTree</component-type>

        </component>
        <attribute>
            <description>the treenode to render</description>
            <name>tree</name>
            <required>true</required>
            <type>de.whiteye.promaad.t2tv2.components.TreeNode</type>
        </attribute>

        <attribute>
            <description>the selected</description>
            <name>value</name>
            <required>true</required>
            <type>de.white

iskrid: close taglibs-file




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.web.jsf.editor.el.JsfVariablesModel$1.accepts(JsfVariablesModel.java:137)
   at org.netbeans.modules.html.editor.lib.api.elements.ElementUtils.getChildrenRecursivelly(ElementUtils.java:337)
   at org.netbeans.modules.html.editor.lib.api.elements.ElementUtils.getChildrenRecursivelly(ElementUtils.java:326)
   at org.netbeans.modules.web.jsf.editor.el.JsfVariablesModel.initModel(JsfVariablesModel.java:129)
   at org.netbeans.modules.web.jsf.editor.el.JsfVariablesModel.<init>(JsfVariablesModel.java:102)
   at org.netbeans.modules.web.jsf.editor.el.JsfVariablesModel.getModel(JsfVariablesModel.java:88)
Comment 1 Exceptions Reporter 2014-04-08 09:31:56 UTC
Created attachment 146620 [details]
stacktrace
Comment 2 Martin Fousek 2014-04-11 06:48:11 UTC
Omitting of the ending slash can lead to serious regressions for libraries like http://code.google.com/p/gmaps4jsf/, needs to be integrated into patch.

Fixed in web-main #a8cd321c5749.
Comment 3 Quality Engineering 2014-04-12 05:07:10 UTC
Integrated into 'main-silver', will be available in build *201404120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a8cd321c5749
User: Martin Fousek <marfous@netbeans.org>
Log: #243649 - NullPointerException at org.netbeans.modules.web.jsf.editor.el.JsfVariablesModel$1.accepts
Comment 4 Vladimir Riha 2014-04-15 15:54:42 UTC
Cannot reproduce the NPE but library is no longer marked as not found => verified

Product Version: NetBeans IDE Dev (Build 201404150001)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Linux version 3.2.0-60-generic-pae running on i386; UTF-8; en_US (nb)
Comment 5 Martin Fousek 2014-04-18 06:00:25 UTC
Transplanted as releases #4763473b4053.
Spec.version, long description change in releases #40ce49229744.
Comment 6 Quality Engineering 2014-04-24 02:11:20 UTC
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/718055c8f309
User: Martin Fousek <marfous@netbeans.org>
Log: #243649 - NullPointerException at org.netbeans.modules.web.jsf.editor.el.JsfVariablesModel$1.accepts
(transplanted from a8cd321c57497e7137fda71a18211539d38be8ad)
Comment 7 Vladimir Riha 2014-04-28 09:01:02 UTC
verified in patch1

Product Version: NetBeans IDE 8.0 (Build 201403101706)
Updates: NetBeans IDE is updated to version NetBeans 8.0 Patch 1
Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.2.0-60-generic-pae running on i386; UTF-8; en_US (nb)