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 40295 - META-INF Context NullPointerException
Summary: META-INF Context NullPointerException
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@serverplugins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-19 19:17 UTC by ender01
Modified: 2006-06-05 00:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack trace (2.90 KB, text/plain)
2004-02-19 19:18 UTC, ender01
Details
screen shot of whats happening (41.66 KB, image/png)
2004-02-19 19:18 UTC, ender01
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ender01 2004-02-19 19:17:29 UTC
Tried to open up a context.xml file and got a 
blank screen (see screen shot), and when I try to 
close it all I get is NPE's and the document 
doesnt close.

And the file does have stuff in it and is easily 
readable by say notepad or anything else.

Closing out the IDE and trying to re-open the file 
doesnt help. Also, using the same files on Linux 
with 3.6 beta everything opened fine with no 
errors.
Comment 1 ender01 2004-02-19 19:18:01 UTC
Created attachment 13536 [details]
stack trace
Comment 2 ender01 2004-02-19 19:18:31 UTC
Created attachment 13537 [details]
screen shot of whats happening
Comment 3 Nam Nguyen 2004-02-20 19:49:42 UTC
Is the file location is <webmodule-dir>/META-INF/context.xml and the
double-click happen on the node under the mounted <webmodule-dir> ?
If not then this is a duplicate of another bug that is being fixed by
Pavel related to behaviour of context.xml from non-webmodule mount.
Comment 4 ender01 2004-02-20 21:06:44 UTC
Yes, if you look in the screen shot you can see it is in a web-module 
directory. I tried to open it from the mounted web-module document 
path and got the results I described.
It still may be related though, because it looks like the META-INF 
directory isn't being treated any differently then a regular folder. 
Although I dont know if its supposed to be either.
Comment 5 Nam Nguyen 2004-02-23 01:32:30 UTC
I cannot reproduce the issue with latest code on Win XP, however I
went ahead put the check for null to prevent the NPE.  I close the bug
for now, if still see other problems with this test case, please feel
free to reopen with new details.  Thanks.
Comment 6 ender01 2004-02-23 01:49:30 UTC
Downloaded the latest dev. build (2/19/04), and the problem does 
appear to be fixed.