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 235566 - NullPointerException at org.netbeans.modules.web.core.jsploader.TagLibParseSupport$ParsingRunnable.run
Summary: NullPointerException at org.netbeans.modules.web.core.jsploader.TagLibParseSu...
Status: RESOLVED DUPLICATE of bug 233602
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP Parser (show other bugs)
Version: 7.3
Hardware: All All
: P1 normal (vote)
Assignee: Marek Fukala
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2013-09-05 15:17 UTC by Vladimir Riha
Modified: 2013-09-05 17:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 203612


Attachments
stacktrace (304 bytes, text/plain)
2013-09-05 15:17 UTC, Vladimir Riha
Details
file to reproduce the issue (399 bytes, application/octet-stream)
2013-09-05 15:45 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-09-05 15:17:00 UTC
This bug was originally marked as duplicate of bug 129498, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.3.1 (Build 201306052037)
VM: Java HotSpot(TM) Client VM, 24.0-b56, Java(TM) SE Runtime Environment, 1.7.0_40-b43
OS: Linux

User Comments:
facilityderek: Reopening a Web App project

alexlamsl: opening a JSP file

vriha: saving invalid JSP file, contains:

<%@apage

instead of

<%@page

alexlamsl: opening JSP file in editor with tablib tags

adam_myatt: in projects window, right-clicked a project, selected CVS  > revert modifications. modifications were reverted in several files. after end of operation got error

alexlamsl: opening a JSP file

GUEST: opening a JSP

alexlamsl: opening a JSP file

alexlamsl: opening a JSP file with taglib definitions (struts-bean.tld, struts-html.tld, struts-logic.tld)

jimyjoshi: changed the default filter in task list to show only todos

spaquet: Just modifying a JPS page in JSF with Icefaces 1.6.2 support.
IceFaces jar are provided by Maven (compiled scope) and have been locally uploaded.

alexlamsl: not sure what happened here - there has been a chain of Exceptions before this so...

spaquet: Relaunching Netbeans with a single Web Maven Project.
Using JSF + icefaces + hibernate 3




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.web.core.jsploader.TagLibParseSupport$ParsingRunnable.run(TagLibParseSupport.java:371)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
   at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2044)
Comment 1 Vladimir Riha 2013-09-05 15:17:03 UTC
Created attachment 139712 [details]
stacktrace
Comment 2 Vladimir Riha 2013-09-05 15:24:41 UTC
removing users from cc from the very old issue 129498
Comment 3 Vladimir Riha 2013-09-05 15:45:48 UTC
Created attachment 139714 [details]
file to reproduce the issue

Simple open Java Web project with this JSP and either open JSP in editor or modify it and save. 

It seems to happen only with JDK7u40 and 7.3.1. The same JDK on 1 latest trunk build works fine. JDK7u25 and 7.3.1 also works fine.

Some observations:
 - the error in JSP file is not red underlined
 - if I try to compile this JSP file, I got another issue 235568. I've tried the same with differently corrupted JSP file, result is the same
Comment 4 Marek Fukala 2013-09-05 16:38:17 UTC
A consequence of:

SEVERE [global]
java.lang.NullPointerException
	at org.openide.util.Exceptions$AnnException.getMessage(Exceptions.java:238)
	at org.openide.util.Exceptions$AnnException.toString(Exceptions.java:321)
	at java.util.Objects.toString(Objects.java:157)
	at java.lang.Throwable.initCause(Throwable.java:456)
	at org.openide.util.Exceptions$AnnException.findOrCreate0(Exceptions.java:279)
	at org.openide.util.Exceptions$AnnException.findOrCreate(Exceptions.java:256)
	at org.openide.util.Exceptions.attachLocalizedMessage(Exceptions.java:99)
	at org.netbeans.modules.web.jspparser_ext.WebAppParseSupport$1.setResult(WebAppParseSupport.java:542)
[catch] at org.netbeans.modules.web.jspparser_ext.WebAppParseSupport$1.run(WebAppParseSupport.java:568)

BTW, why is this P1? Moreover if you say it is not reproducible in >7.3.1, why not closed as fixed then?
Comment 5 Marek Fukala 2013-09-05 16:41:02 UTC
The source issue is duplicate of already fixed issue 233602 - NPE in Exceptions.printStackTrace, closing then.

*** This bug has been marked as a duplicate of bug 233602 ***
Comment 6 Vladimir Riha 2013-09-05 17:32:25 UTC
(In reply to Marek Fukala from comment #4)
> BTW, why is this P1? Moreover if you say it is not reproducible in >7.3.1,
> why not closed as fixed then?

Because it will happen with upcoming NB 731 JDK 7u40 bundle and the issue 129498 was P2 so I thought P1 fits better. I don't know how it should be resolved with regard to 731 as it affects JSP editing. Also there is issue 235568 which happens when such JSP is compiled. It could be consequence of this.