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 42712 - IAE when trying to open an object from web/build
Summary: IAE when trying to open an object from web/build
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 4.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-03 13:35 UTC by Marek Fukala
Modified: 2004-08-13 12:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The IAE (3.06 KB, text/plain)
2004-05-03 13:37 UTC, Marek Fukala
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Fukala 2004-05-03 13:35:00 UTC
[20040503]
To reproduce:
1) create a webproject (WP)
2) create a JSP page
3) run the project
4) from files view expand build/web node
5) try to open the -deployed- JSP
=> java.lang.IllegalArgumentException: MasterFileObject@17e18d5[file:/E:/testing/projects/p1/web/] / MasterFileObject@8aa4b[file:/E:/testing/projects/p1/build/web/test.tag]

The some happens for tag library descriptors, HTMLs (and probably other webmodule specific objects). 
Note that for example text files can be opened without problems.
Comment 1 Marek Fukala 2004-05-03 13:37:20 UTC
Created attachment 14665 [details]
The IAE
Comment 2 Pavel Buzek 2004-08-03 20:35:26 UTC
this is caused by jsp parser not being able to find a web module
corresponding to the jsp.

in org.netbeans.modules.web.core.jsploader.JspParserAccess it says:

    // PENDING - will also need this:
    //public static JspParserAPI.WebModule getParserWMOutsideWM
(FileObject packageRoot) { }
    
which is probably what is needed.
Comment 3 Pavel Buzek 2004-08-03 20:48:41 UTC
actually I found I cannot reproduce the problem doing the steps that
you listed bellow....