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.
Build: NetBeans IDE Dev (Build 200904220201) VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03 OS: Windows XP, 5.1, x86 User Comments: rgarske: starting this Build of Netbeans for the first time. GUEST: I was activating the C/C++ module swpalmer: Drag and drop a C header file into the editor, which triggered activation of the C/C++ module. Stacktrace: java.io.IOException: The system cannot find the path specified at java.io.WinNTFileSystem.createFileExclusively(WinNTFileSystem.java:0) at java.io.File.checkAndCreate(File.java:1704) at java.io.File.createTempFile(File.java:1792) at org.netbeans.modules.dlight.util.Util.copyResource(Util.java:86) at org.netbeans.modules.dlight.cpu.DLightCPUToolConfigurationProvider.create(DLightCPUToolConfigurationProvider.java:105) at org.netbeans.modules.dlight.api.tool.ToolsConfiguration.getToolsSet(ToolsConfiguration.java:124)
Created attachment 80793 [details] stacktrace
Alexey, please take a look
Happens for me on Windows XP as well. Will investigate.
The reason of this exception is that HostInfo.getTempDir() returns "UNKNOWN".
Build: NetBeans IDE Dev (Build 200904231401) VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03 OS: Windows Vista, 6.0, x86 User Comments: Activate C/C++ feature from the plugins window Stacktrace: java.io.IOException: The system cannot find the path specified at java.io.WinNTFileSystem.createFileExclusively(WinNTFileSystem.java:0) at java.io.File.checkAndCreate(File.java:1704) at java.io.File.createTempFile(File.java:1792) at org.netbeans.modules.dlight.util.Util.copyResource(Util.java:86) at org.netbeans.modules.dlight.cpu.DLightCPUToolConfigurationProvider.create(DLightCPUToolConfigurationProvider.java:111) at org.netbeans.modules.dlight.api.tool.ToolsConfiguration.getToolsSet(ToolsConfiguration.java:124)
Created attachment 80828 [details] stacktrace
There are two problems with HostInfoImpl.getLocalHostInfo(). 1. It assumes that sh is on PATH and fails silently if it's not. 2. On Windows TMPBASE is like "C:\DOCUME~1\av202691\LOCALS~1\Temp\". If sh is found, TMPDIRBASE becomes "C:\DOCUME~1\av202691\LOCALS~1\Temp\/dlight_av202691". hostinfo.sh fails to create it and clients will fail to use it. Passing to Andrew for further evaluation and fixing.
Build: NetBeans IDE Dev (Build 200904240201) VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03 OS: Windows XP, 5.1, x86 User Comments: -pressed Activate to activate C++; -pressed Back button on next wizard step before it started activation; Stacktrace: java.io.IOException: The filename, directory name, or volume label syntax is incorrect at java.io.WinNTFileSystem.createFileExclusively(WinNTFileSystem.java:0) at java.io.File.checkAndCreate(File.java:1704) at java.io.File.createTempFile(File.java:1792) at org.netbeans.modules.dlight.util.Util.copyResource(Util.java:86) at org.netbeans.modules.dlight.cpu.DLightCPUToolConfigurationProvider.create(DLightCPUToolConfigurationProvider.java:111) at org.netbeans.modules.dlight.api.tool.ToolsConfiguration.getToolsSet(ToolsConfiguration.java:124)
Created attachment 80842 [details] stacktrace
Alexey, thank you for evaluation. Fixed with http://hg.netbeans.org/cnd-main/rev/61596cdaeba7
Build: NetBeans IDE Dev (Build 200904240201) VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.io.IOException: The system cannot find the path specified at java.io.WinNTFileSystem.createFileExclusively(WinNTFileSystem.java:0) at java.io.File.checkAndCreate(File.java:1704) at java.io.File.createTempFile(File.java:1792) at org.netbeans.modules.dlight.util.Util.copyResource(Util.java:86) at org.netbeans.modules.dlight.cpu.DLightCPUToolConfigurationProvider.create(DLightCPUToolConfigurationProvider.java:111) at org.netbeans.modules.dlight.api.tool.ToolsConfiguration.getToolsSet(ToolsConfiguration.java:124)
Created attachment 80873 [details] stacktrace
Created attachment 81030 [details] Stack trace
Please disregard my last attachment (npe.txt), it was placed here by mistake.