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 128109 - Exception when opening the contrib/cnd.fortran project
Summary: Exception when opening the contrib/cnd.fortran project
Status: CLOSED WORKSFORME
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
: 130359 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-22 09:04 UTC by _ v_o_safonov
Modified: 2008-03-18 16:08 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
I am attaching the messages.log file (40.38 KB, text/plain)
2008-02-22 09:46 UTC, _ v_o_safonov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ v_o_safonov 2008-02-22 09:04:52 UTC
I am working with NetBeans 6.1 dev 200802190005 running under Windows XP.
I cannot open the newly created NetBeans project cnd.fortran located in the contrib directory.
When trying to open it I get, first, a NullPointerException, then, on pressing the "Open Project"\button, an 
IllegalArgument exception.
Then the "Open project" action hangs up.
Comment 1 Milan Kubec 2008-02-22 09:35:50 UTC
Please provide exception stack trace or whole ide.log file. Thanks.
Comment 2 _ v_o_safonov 2008-02-22 09:46:55 UTC
Created attachment 57045 [details]
I am attaching the messages.log file
Comment 3 Lukas Hasik 2008-02-22 09:50:50 UTC
could you attach the thread dump from the IDE hang, too? http://wiki.netbeans.org/GenerateThreadDump
Comment 4 Milan Kubec 2008-02-22 10:41:34 UTC
I've just successfully opened cnd.fortran project from contrib without any problems in current dev (080221) build.

What do you actually mean by "newly created" the project is already there in the repository. Could you test some more
recent build, there is better logging of exceptions from project opening, it might help us better. Thanks.
Comment 5 Milan Kubec 2008-02-25 08:16:29 UTC
Until there is more info from reporter adding kw INCOMPLETE.
Comment 6 _ v_o_safonov 2008-02-27 19:00:38 UTC
I have tried one of the latest builds - 200802250003.
The result is the same - i cannot open the cnd.fortran project.
Here is more detailed information on the exceptions - stack trace.
Hope it helps.

1) When selecting (clicking) the cnd.fortran project from the contrib. directory,
the following exception thrown:

 java.lang.NullPointerException
	at org.netbeans.modules.apisupport.project.NbModuleProject.getModuleList(NbModuleProject.java:515)
	at org.netbeans.modules.apisupport.project.queries.SubprojectProviderImpl.getSubprojects
(SubprojectProviderImpl.java:85)
	at org.netbeans.modules.project.ui.ProjectChooserAccessory$ModelUpdater.addSubprojects
(ProjectChooserAccessory.java:751)
	at org.netbeans.modules.project.ui.ProjectChooserAccessory$ModelUpdater.run(ProjectChooserAccessory.java:673)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)

2) Next, when proceeding to open the project, another exception thrown:

java.lang.IllegalArgumentException: Project Fortran is not open and cannot be set as main.
	at org.netbeans.modules.project.ui.OpenProjectList.setMainProject(OpenProjectList.java:743)
	at org.netbeans.modules.project.ui.actions.OpenProject.actionPerformed(OpenProject.java:136)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:377)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:232)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1157)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1198)
	at java.awt.Component.processMouseEvent(Component.java:5999)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3240)
	at java.awt.Component.processEvent(Component.java:5764)
	at java.awt.Container.processEvent(Container.java:1984)
	at java.awt.Component.dispatchEventImpl(Component.java:4407)
	at java.awt.Container.dispatchEventImpl(Container.java:2042)

3) Next, the "Opening projects" job hangs.
Comment 7 Milan Kubec 2008-02-28 07:46:27 UTC
Reassigning to apisupport module because the first exception is the problematic one. Are you able to open any other
project from contrib? It looks like some platform configuration problem.
Comment 8 Jesse Glick 2008-02-28 16:48:27 UTC
Cannot reproduce either.

Something is wrong with your default platform. Under Tools > NetBeans Platform Manager, you should see your IDE build
listed (marked as "(default)" too). Maybe your build is lacking the harness cluster or something like this? Indeed the
"Installation" section of your log file lists apisupport1 but not harness, which is certainly a corrupt installation.
Please notify the creators of this build, whoever that might be. (I am assuming you did not build from sources.)

I have put in some robustness against the actual NPE (#c9b6d7e9f84c) but there would surely be other serious problems if
your default platform were missing.

BTW the log warning

SEVERE: ProjectClassPathImplementation: file:
C:\sun\netbeans_mercurial_repo\netbeans_mercurial_repo\main\o.jdesktop.layout\external\swing-layout-1.0.3.jar is not a
valid archive file.

implies that you have not correctly unpacked your external binary files, in which case you can expect lots of things to
be broken (though not this). Run 'ant init' in main to check.
Comment 9 _ v_o_safonov 2008-02-29 07:06:27 UTC
You are right there was a configuration issue. To reduce the startup time of NetBeans on my machine, I just commented 
out references to some clusters in the etc/netbeans.clusters file. On reading your comments,I've uncommented the 
reference to the harness cluster in the config file, and the contrib/cnd.fortran project opened successfully. So I am 
closing the bug. Thanks for your suggestions and sorry for the trouble
Comment 10 Jesse Glick 2008-03-18 16:07:27 UTC
*** Issue 130359 has been marked as a duplicate of this issue. ***