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 27966

Summary: IllegalArgumentException in ExplorerManager when trying to use the Projects module with the Platform
Product: platform Reporter: jsinai <jsinai>
Component: ExplorerAssignee: Jiri Rechtacek <jrechtacek>
Status: CLOSED FIXED    
Severity: blocker CC: mihmax
Priority: P1    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log
a applied patch

Description jsinai 2002-10-11 22:56:28 UTC
I downloaded the 3.4 platform release dated 
9/27/2002, and while in the process of adding 
the modules I need, I ran into a problem with 
the Projects module--I tried both versions 1.8 
and 1.9, and I get a fatal exception "cannot 
have null root context". As I understand, it, 
this is the platform release based on NB3.4, 
so this projects module should work, because 
it came from my NB3.4 IDE installation. I'll 
attach the IDE log.
Comment 1 jsinai 2002-10-11 22:57:01 UTC
Created attachment 7652 [details]
IDE log
Comment 2 Marian Mirilovic 2002-10-14 10:33:57 UTC
Jirka, please look at this, thanks.
Comment 3 Jiri Rechtacek 2002-10-14 16:40:24 UTC
There is a problem, IDE/platform finds projects tab to project module.
Because any project is not enabled then finds /Workplace folder. The
workplace folder is defined in core/ide isn't contained in platform 's
distribution. The fix is add workplace folder in projects layer. This
fix would make sense only as 3.4.1_CANDIDATE. In the next release will
be introduced the 4.0 projects. The patch will be attached, it's
usable as workaround for nb 3.4 platform. Fixed in maintrunk.
Comment 4 Jiri Rechtacek 2002-10-14 16:41:18 UTC
Created attachment 7658 [details]
a applied patch
Comment 5 jsinai 2002-10-15 21:55:45 UTC
Thanks, the patch worked. It's interesting, 
though: I couldn't apply the patch using Tools-
>Apply Patch in the IDE.
Comment 6 Marian Mirilovic 2002-10-21 11:55:32 UTC
As said Julian as previos comment, verified.
Comment 7 Jiri Rechtacek 2002-11-06 09:59:37 UTC
The fix is easy and secure. It can be merged to release341 branch.
Comment 8 Jaroslav Tulach 2002-12-03 09:55:16 UTC
Hi. This issue is marked as 3.4.1_CANDIDATE. It means that it should be
integrated into release341 one branch. The plan at
http://www.netbeans.org/devhome/docs/releases/34/index.html expected beta1 to be
produced on Dec01. That did not happen due to a lot of outstanding not
integrated candidates like this one. 

Would it be possible to spend few minutes by backporting this fix? Thank you in
advance.
Comment 9 Jiri Rechtacek 2002-12-03 14:02:25 UTC
patch applied in release341
Comment 10 _ mihmax 2002-12-06 15:34:47 UTC
CVS log, please ;-)

Sincere Max
Comment 11 Jiri Rechtacek 2002-12-07 14:08:08 UTC
--------------------------------------------------
User: jrechtacek
Date: Tue Dec 03 14:01:41 CET 2002
Modified: src/org/netbeans/modules/projects/resources Tag: release341
projects-layer.xml
Message: applied the patch from issue 27966: bugfix #27966 (when
platform uses projects), add the workplace folderbugfix 
1.24.34.1
/cvs/projects/src/org/netbeans/modules/projects/resources/projects-layer.xml
Comment 12 _ mihmax 2002-12-08 09:57:16 UTC
Jiri, thanks a lot!
Max
Comment 13 Quality Engineering 2003-07-01 16:24:06 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.