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 55196 - Getting an error when opening JSP pages
Summary: Getting an error when opening JSP pages
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP Parser (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-18 15:21 UTC by setdosa
Modified: 2005-04-01 11:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
message.log file to see the exceptions thrown (112.19 KB, text/plain)
2005-02-18 15:21 UTC, setdosa
Details
Please find the new messages.log file attached (31.67 KB, text/html)
2005-02-23 15:03 UTC, setdosa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description setdosa 2005-02-18 15:21:28 UTC
When I open any JSP page from Netbeans I get this
error

Annotation: Exception occurred in Request Processor
java.lang.NullPointerException
	at
org.netbeans.modules.web.jspparser.JspParserImpl.analyzePage(JspParserImpl.java:130)
	at
org.netbeans.modules.web.core.jsploader.TagLibParseSupport$ParsingRunnable.run(TagLibParseSupport.java:275)
	at org.openide.util.Task.run(Task.java:136)
	at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686)

Please find the messages.log file attached. Also
see issue 55194. They might be related.
Comment 1 setdosa 2005-02-18 15:21:43 UTC
Created attachment 20422 [details]
message.log file to see the exceptions thrown
Comment 2 setdosa 2005-02-18 15:27:49 UTC
I installed Visual Paradigm plugin for netbeans a few days before. I
dont remember if the problem existed before i installed the plugin though.
Comment 3 zikmund 2005-02-23 14:16:30 UTC
Was it random bug or is it reproducible? Does it happen sometimes or
did it happen only once?
Could you please try it with clean userdir? (just backup your userdir
and delete it temporarily) Thanks!
Comment 4 setdosa 2005-02-23 15:02:44 UTC
It happens on these occassions everytime:
1. When I open a new JSP file.
2. When I open the IDE and the JSP file was in focus when I closed the
IDE previously.

I did delete the c:\document...\username\.netbeans directory and
restarted Netbeans, but the problem seems to persist. I opened a JSP
and  the error popped up again.
Comment 5 setdosa 2005-02-23 15:03:29 UTC
Created attachment 20477 [details]
Please find the new messages.log file attached
Comment 6 Jiri Kovalsky 2005-02-23 15:18:03 UTC
Petre, could you please take a look at line 275 in
TagLibParseSupport.java ? After all this is NPE ... Would it help if
setdosa would attach his/her JSP/TLD here ? It simply works fine for
me too.
Comment 7 Petr Pisl 2005-02-28 15:53:12 UTC
I committed small fix for this issue - it only checks, whether the
proxy for web module was created and if wasn't, then the page is not
parsed. The check solve the NPE, but doesn't solve the problem.

The problem is not in the NPE exception. The primary reason is, that
you have two common-logging.jar on classpath. One comes with the
netbeans and one maybe with the new module which setdosa installed.
The message from log:

org.apache.commons.logging.LogConfigurationException: Invalid class
loader hierarchy.  You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.

This doesn't allow to jsp parser be initialized.  I think, that
problem is in the Visual Paradigm plugin , which doesn't use  the log
from netbeans. Where can I download the plugin? I  want to try it and
be sure, that I'm right.

So for now, I closed the issue as fixed, but if I'm right, then the
Visual Paradimg plugin should be fixed as well.  It can bring more
problems  with this.