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 124915 - NullPointerException at org.netbeans.modules.cnd.makeproject.ui.wizards.NewMakeProjectWizardIterator.instantiate
Summary: NullPointerException at org.netbeans.modules.cnd.makeproject.ui.wizards.NewMa...
Status: RESOLVED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Thomas Preisler
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-08 19:50 UTC by jks
Modified: 2009-02-13 11:35 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 18942


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jks 2008-01-08 19:50:43 UTC
Build: NetBeans IDE 6.0 (Build 200711261600)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_03-b05
OS: Linux, 2.6.22-14-generic, amd64
User comments: I was trying to create new C/C++ project from existing code, being CARMEN (carmen.sf.net), version 0.7-beta.
STACKTRACE: (first 10 lines)
java.lang.NullPointerException
        at
org.netbeans.modules.cnd.makeproject.ui.wizards.NewMakeProjectWizardIterator.instantiate(NewMakeProjectWizardIterator.java:245)
        at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1025)
        at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:595)
        at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:416)
        at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:248)
        at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:161)
        at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1387)
        at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1341)
        at org.openide.WizardDescriptor.access$1600(WizardDescriptor.java:119)
        at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:1908)
Comment 1 jks 2008-01-08 20:03:28 UTC
I've created this issue because I was unable to post additional comments in my previously reported exception (as Guest).
After clicking "Send" I was twice asked for my username and password, before logging in, and then I was redirected to
"My start page". After that, I navigated back to exception page, to se that my comment wasn't on the page. Entering
comment again and hitting post repeats this cycle.

So, here's the comment:

I tried to use CARMEN's Makefile, rather than configure script, and that solves the problem. Exception isn't thrown, and
my project gets created.

Maybe thats because CARMEN doesn't use autoconf?

Sorry for reporting the same exception twice (18941 and 18942), Netbeans said that first report failed.
Comment 2 Thomas Preisler 2008-01-21 22:40:59 UTC
The problem is the configure script in carmen is written in perl which is not a supported scripting langauge by the
C/C++ plugin. I fixed this by adding '/usr/bin/perl' to list of recognized scripting languages. I does fix the problem
with the configure scrip in this bug report but probably more work is needed to properly support perl scripting language
in general.
Comment 3 Thomas Preisler 2008-01-21 22:50:12 UTC
Fixed:

Checking in CndSniffyMIMEResolver.java;
/cvs/cnd/core/src/org/netbeans/modules/cnd/loaders/CndSniffyMIMEResolver.java,v  <--  CndSniffyMIMEResolver.java
new revision: 1.6; previous revision: 1.5
done
Comment 4 Thomas Preisler 2008-01-21 22:50:43 UTC
--- CndSniffyMIMEResolver.java	30 Nov 2007 11:01:41 -0000	1.5
+++ CndSniffyMIMEResolver.java	21 Jan 2008 22:42:48 -0000	1.6
@@ -118,7 +118,8 @@
                     line.startsWith("#!/bin/sh") ||  // NOI18N
                     line.startsWith("#!/bin/ksh") ||  // NOI18N
                     line.startsWith("#!/bin/csh") ||  // NOI18N
-                    line.startsWith("#!/bin/zsh")) {  // NOI18N
+                    line.startsWith("#!/bin/csh") ||  // NOI18N
+                    line.startsWith("#!/usr/bin/perl")) {  // NOI18N
                 return true;
             }
         }
Comment 5 Alexander Ioffe 2008-02-12 12:20:36 UTC
Verified in build 20080211
Comment 6 _ alexlamsl 2009-02-12 17:55:34 UTC
Could be an issue with the commit message or my eyes, but looks like the patch removed "/bin/zsh" and added a 
duplicate of "/bin/csh" instead...
Comment 7 _ alexlamsl 2009-02-12 17:56:13 UTC
*reopening issue to draw some attention*
Comment 8 Thomas Preisler 2009-02-12 18:28:17 UTC
I checked 6.1, 6.1_fixes, and 6.5 sources. They all have the duplication, which seem wrong but shouldn't cause serious problems. Do you see a specific 
problem with any builds today?

The code has been completely rewritten in 7.0 so it would require a different fix is it doesn't work in 7.0.
Comment 9 Thomas Preisler 2009-02-12 18:41:08 UTC
I checked 7.0 dev and it seems to OK with perl configure scripts. Will close as Worksforme. Please reopen if there are any reproducible issues.
Comment 10 _ alexlamsl 2009-02-13 11:35:31 UTC
I guess I should open another issue - given this is for perl script.

However, I am referring to the absence of "/bin/zsh", not (just) the duplication of "/bin/csh"...