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 163523 - [67cat] java.io.IOException: The system cannot find the path specified
Summary: [67cat] java.io.IOException: The system cannot find the path specified
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: D-Light (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Andrew Krasny
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-23 19:47 UTC by swpalmer
Modified: 2009-04-28 05:59 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 149915


Attachments
stacktrace (7.03 KB, text/plain)
2009-04-23 19:47 UTC, swpalmer
Details
stacktrace (6.69 KB, text/plain)
2009-04-24 10:17 UTC, neilg
Details
stacktrace (5.16 KB, text/plain)
2009-04-24 12:33 UTC, Oleg Khokhlov
Details
stacktrace (3.45 KB, text/plain)
2009-04-24 17:02 UTC, Petr Dvorak
Details
Stack trace (2.31 KB, text/plain)
2009-04-28 05:45 UTC, Vladimir Kvashin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description swpalmer 2009-04-23 19:47:52 UTC
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)
Comment 1 swpalmer 2009-04-23 19:47:58 UTC
Created attachment 80793 [details]
stacktrace
Comment 2 Maria Tishkova 2009-04-24 07:05:26 UTC
Alexey, please take a look
Comment 3 Alexey Vladykin 2009-04-24 09:47:27 UTC
Happens for me on Windows XP as well. Will investigate.
Comment 4 Alexey Vladykin 2009-04-24 09:50:39 UTC
The reason of this exception is that HostInfo.getTempDir() returns "UNKNOWN".
Comment 5 neilg 2009-04-24 10:17:12 UTC
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)
Comment 6 neilg 2009-04-24 10:17:23 UTC
Created attachment 80828 [details]
stacktrace
Comment 7 Alexey Vladykin 2009-04-24 10:30:58 UTC
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.
Comment 8 Oleg Khokhlov 2009-04-24 12:33:51 UTC
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)
Comment 9 Oleg Khokhlov 2009-04-24 12:33:55 UTC
Created attachment 80842 [details]
stacktrace
Comment 10 Andrew Krasny 2009-04-24 15:20:55 UTC
Alexey, 

thank you for evaluation.

Fixed with http://hg.netbeans.org/cnd-main/rev/61596cdaeba7
Comment 11 Petr Dvorak 2009-04-24 17:01:54 UTC
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)
Comment 12 Petr Dvorak 2009-04-24 17:02:07 UTC
Created attachment 80873 [details]
stacktrace
Comment 13 Vladimir Kvashin 2009-04-28 05:45:51 UTC
Created attachment 81030 [details]
Stack trace
Comment 14 Vladimir Kvashin 2009-04-28 05:59:11 UTC
Please disregard my last attachment (npe.txt), it was placed here by mistake.