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.
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.
Please provide exception stack trace or whole ide.log file. Thanks.
Created attachment 57045 [details] I am attaching the messages.log file
could you attach the thread dump from the IDE hang, too? http://wiki.netbeans.org/GenerateThreadDump
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.
Until there is more info from reporter adding kw INCOMPLETE.
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.
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.
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.
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
*** Issue 130359 has been marked as a duplicate of this issue. ***