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 63705 - IAE when creating Enterprise Application with Existing Sources
Summary: IAE when creating Enterprise Application with Existing Sources
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EAR (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
: 64157 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-06 14:06 UTC by Radko Najman
Modified: 2005-09-14 08:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IAE exception (1.16 KB, text/plain)
2005-09-06 14:07 UTC, Radko Najman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Radko Najman 2005-09-06 14:06:49 UTC
Create new Enteprise Application with Existing sources. Test application is in
CVS: j2ee/test/qa-functional/data/freeform_projects/Secure

Project is created and java.lang.IllegalArgumentException is thrown.
Comment 1 Radko Najman 2005-09-06 14:07:34 UTC
Created attachment 24543 [details]
IAE exception
Comment 2 Petr Blaha 2005-09-08 15:04:33 UTC
High visible issue, marking as beta stopper.
Comment 3 Petr Blaha 2005-09-13 08:15:09 UTC
*** Issue 64157 has been marked as a duplicate of this issue. ***
Comment 4 Andrei Badea 2005-09-13 15:45:57 UTC
I will look at this.
Comment 5 Andrei Badea 2005-09-13 17:52:25 UTC
Happens when the project sources are under the directory of another project
(here the NetBeans module project in j2ee/test) and the EAR app's project
directory is not an ancestor of the project sources. In this case calling
FileOwnerQuery.getOwner(FileObject) for a file inside the sources of the EAR app
doesn't return the EAR project. Instead it returns the NB module project in
j2ee/test. This use case doesn't seeem to be supported by FileOwnerQuery and I
think it is a corner one.

Anyway, the code calling FileOwnerQuery in the EAR project tries to add package
view nodes for the Java sources, and the EAR doesn't have any Java sources. The
fix for this issue is to completely remove this code.
Comment 6 Andrei Badea 2005-09-14 08:30:34 UTC
Fixed.

Checking in org/netbeans/modules/j2ee/earproject/ui/ArchiveViews.java;
/cvs/j2ee/earproject/src/org/netbeans/modules/j2ee/earproject/ui/ArchiveViews.java,v
 <--  ArchiveViews.java
new revision: 1.3; previous revision: 1.2
done