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 59377 - Exception thrown when opening NetBeans project from 4.1
Summary: Exception thrown when opening NetBeans project from 4.1
Status: CLOSED WONTFIX
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-30 09:26 UTC by Roman Strobl
Modified: 2006-03-24 13:15 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IOException (5.09 KB, text/plain)
2005-05-30 09:27 UTC, Roman Strobl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Strobl 2005-05-30 09:26:13 UTC
[NetBeans 4.1; WinXP; JDK 1.5.0_03]

I've installed NetBeans project type support from update center into 4.1. If I
try to open any project from NetBeans sources I get the following exception:

java.io.IOException: Misconfigured project in
MasterFileObject@139422b[file:/E:/netbeans.org/editor/] has no defined
<code-name-base>
	at
org.netbeans.modules.apisupport.project.NbModuleProject.<init>(NbModuleProject.java:75)
	at
org.netbeans.modules.apisupport.project.NbModuleProjectType.createProject(NbModuleProjectType.java:41)

The project cannot be opened. I chose P3 priority for now, the workaround is to
open the project from development version. Perhaps this deserves a higher
priority, I leave the decision on bug evaluator.
Comment 1 Roman Strobl 2005-05-30 09:27:29 UTC
Created attachment 22358 [details]
IOException
Comment 2 David Strupl 2005-05-30 10:54:19 UTC
Just a note: it works fine for me with following setup:
Product Version       = NetBeans IDE 4.1 (Build 200505031930)
Operating System      = Linux version 2.6.10-1.771_FC2 running on i386
Java; VM; Vendor      = 1.4.2_06; Java HotSpot(TM) Client VM 1.4.2_06-b03;
org.netbeans.modules.apisupport.ant [2.23 200505031930]
org.netbeans.modules.apisupport.project [1.1 200505031930]

Only have lot of warnings in the log with following text:
[org.netbeans.modules.apisupport.project] Warning: no known module corresponding
to extra/modules/org-netbeans-modules-conve
                                                                               
                                             
Otherwise I am able to work with NB 4.1 modules checked out from CVS.

Are you trying to work with trunk modules using NB 4.1?
Comment 3 Roman Strobl 2005-05-30 13:53:53 UTC
Yes, I did cvs up before opening the project. I'll try a clean cvs checkout of
NB sources. 

I am using:

Product Version       = NetBeans IDE 4.1 (Build 200505031930)
Operating System      = Windows XP version 5.1 running on x86
Java; VM; Vendor      = 1.5.0_03; Java HotSpot(TM) Client VM 1.5.0_03-b06
org.netbeans.modules.apisupport.ant [2.23 200505031930]
org.netbeans.modules.apisupport.project [1.1 200505031930]
Comment 4 Jesse Glick 2005-05-30 14:39:25 UTC
You cannot use the NB 4.1 apisupport to work on trunk sources. You must use an
NB dev build to open these projects. Sorry.
Comment 5 Roman Strobl 2005-05-30 14:57:21 UTC
Ok, understand. In that case, why do we offer NetBeans project type support
through 4.1 update center? Or is it meant for 4.1 sources only? It would be nice
if we could give users better error message rather than to throw an exception if
they attempt to do this.
Comment 6 Jesse Glick 2005-05-31 18:18:33 UTC
It is meant for 4.1 sources only. When the new apisupport is in a more complete
form we would like to publish it for 4.1 as well, so the version on AU now is a
throwaway temporary module that we do not support at all.

Re. exception message - cf. more general issue #53515.
Comment 7 Roman Strobl 2005-05-31 18:21:15 UTC
Ok, thanks.
Comment 8 Roman Strobl 2005-07-08 10:00:10 UTC
Verified.