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 169010 - NullPointerException at java.lang.ProcessBuilder.start
Summary: NullPointerException at java.lang.ProcessBuilder.start
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: D-Light (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Andrew Krasny
URL: http://statistics.netbeans.org/except...
Keywords:
: 170492 170701 173459 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-07-23 08:03 UTC by damerian
Modified: 2010-08-10 14:12 UTC (History)
35 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 154081


Attachments
stacktrace (2.15 KB, text/plain)
2009-07-23 08:03 UTC, damerian
Details
A hack to overcome the problem (152.05 KB, application/octet-stream)
2009-09-28 18:34 UTC, Andrew Krasny
Details
A hack to overcome the problem (357.80 KB, application/octet-stream)
2009-09-28 18:35 UTC, Andrew Krasny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description damerian 2009-07-23 08:03:37 UTC
This issue was originally marked as duplicate of issue 166406, that is already resolved. This issue is still valid, so this seems to be another issue, but it might be related.

Build: NetBeans IDE Dev (Build 200907070200)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Windows XP, 5.1, x86

User Comments:
GUEST: Right click on c++ project and click jn project properties

chrikoch: trying to open properties of a project by rigth-cliking the project and the selecting properties.

GUEST: Right click on c++ project and click on project properties

GUEST: pressed run! boom! error!

damerian: Tryiing to run a project which builts succesfully

charlweed: Properties context menu for c++ project.

mromashova: Just opened project in the IDE



Stacktrace: 
java.lang.NullPointerException
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:441)
        at org.netbeans.modules.nativeexecution.support.HostInfoImpl.getLocalHostInfo(HostInfoImpl.java:128)
        at org.netbeans.modules.nativeexecution.support.HostInfoImpl.getHostInfo(HostInfoImpl.java:100)
        at org.netbeans.modules.nativeexecution.support.HostInfoFetcher.getInfo(HostInfoFetcher.java:82)
        at org.netbeans.modules.nativeexecution.api.util.HostInfoUtils.getHostInfo(HostInfoUtils.java:301)
        at org.netbeans.modules.dlight.util.Util.copyResource(Util.java:87)
Comment 1 damerian 2009-07-23 08:03:54 UTC
Created attachment 85104 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-07-23 08:04:29 UTC
This issue already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=154081
Comment 3 Exceptions Reporter 2009-07-31 05:32:35 UTC
This issue already has 21 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=154081
Comment 4 Alexey Vladykin 2009-08-07 13:12:47 UTC
This is already fixed in current trunk: http://hg.netbeans.org/main-golden/rev/7bd0e166cc33
Probably should be included into next 6.7 patch.
Comment 5 Exceptions Reporter 2009-08-11 10:56:46 UTC
This issue already has 51 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=154081
Comment 6 Exceptions Reporter 2009-08-11 10:59:33 UTC
This issue already has 52 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=154081
Comment 7 Leonid Lenyashin 2009-08-12 15:18:29 UTC
The issue is resolved in 6.8. Keep it open for possible 6.7.2 patch.
Comment 8 Alexey Vladykin 2009-08-17 21:34:38 UTC
*** Issue 170492 has been marked as a duplicate of this issue. ***
Comment 9 Peter Pis 2009-08-26 12:36:08 UTC
*** Issue 170701 has been marked as a duplicate of this issue. ***
Comment 10 Exceptions Reporter 2009-09-05 02:32:06 UTC
This issue already has 150 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=154081
Comment 11 Exceptions Reporter 2009-09-05 02:33:00 UTC
This issue already has 151 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=154081
Comment 12 Exceptions Reporter 2009-09-05 11:40:10 UTC
This issue already has 154 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=154081
Comment 13 jarome 2009-09-11 19:36:01 UTC
This makes it impossible to do C or C++, so must be in the next 7 patch. Going to the 8 nightlies prevents me from using
some of my plugins.
Comment 14 Andrew Krasny 2009-09-24 17:13:36 UTC
Is it really impossible for you to install cygwin on your Windows machine? 
cygwin/mingw was listed in requirements for C/C++ pack and that is why it was never tested on systems without one of
these tools.

I don't know about plans for 7.x patches... Will try to figure-out. If there are some plans for this I will do my best
to solve this issue.

=Andrew
Comment 15 jarome 2009-09-24 17:42:07 UTC
I have both Cygwin and MinGw installed and got this!
Comment 16 sharkman 2009-09-25 04:19:35 UTC
Why should anyone install Cygwin or/and Mingw, if he use remote compilation? I, for example, use remote compilation only.
Comment 17 Andrew Krasny 2009-09-28 18:33:14 UTC
Well... I have prepared a jar file that will likely help you.
It is not well tested yet though.. Once I'll get a confirmation that it works, I'll ask to push this fix to the NB6.7
UpdateCenter. 
Meanwhile, for those who are interested in the fix: could I ask you to try to copy the jar (attached) and try your
remote development? You should replace original jar located in {NB installation directory}/dlight1/modules/

Thanks in advance, 
=Andrew

P.S. In any case - if you have an opportunity to switch to 6.8 - please do so.
Comment 18 Andrew Krasny 2009-09-28 18:34:33 UTC
Created attachment 88446 [details]
A hack to overcome the problem
Comment 19 Andrew Krasny 2009-09-28 18:35:05 UTC
Created attachment 88447 [details]
A hack to overcome the problem
Comment 20 Andrew Krasny 2009-09-28 18:35:58 UTC
Sorry for a wrong attachment - one should use *.jar file, not *.nbm!
Comment 21 sharkman 2009-09-29 08:07:19 UTC
Thanks for patch, it works.
Comment 22 Andrew Krasny 2009-10-12 21:04:50 UTC
Good to know, thanks! (Somehow I missed that sharkman confirmed that patch is OK. Thanks, sharkman!)
So... will try to put it on UC...
Comment 23 Maria Tishkova 2009-10-23 11:25:32 UTC
*** Issue 173459 has been marked as a duplicate of this issue. ***
Comment 24 Alexander Pepin 2010-08-10 14:12:28 UTC
Is not reproducible in NB 6.8 and 6.9.
All reported exceptions regard only NB 6.7 and 6.7.1