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 270513 - java.io.IOException: Error getting host info for localhost
Summary: java.io.IOException: Error getting host info for localhost
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: execution (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: ilia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-28 13:46 UTC by jrigal
Modified: 2017-05-04 07:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 228987


Attachments
stacktrace (1.78 KB, text/plain)
2017-04-28 13:46 UTC, jrigal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jrigal 2017-04-28 13:46:31 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Windows 10

User Comments:
jrigal: <Please provide a description of the problem or the steps to reproduce>

I try to connect to a remote host




Stacktrace: 
java.io.IOException: Error getting host info for localhost
   at org.netbeans.modules.nativeexecution.api.util.HostInfoUtils.getHostInfo(HostInfoUtils.java:297)
   at org.netbeans.modules.nativeexecution.api.util.HostInfoUtils.getHostInfo(HostInfoUtils.java:255)
   at org.netbeans.modules.nativeexecution.api.util.HelperUtility.getPath(HelperUtility.java:142)
   at org.netbeans.modules.nativeexecution.support.hostinfo.impl.UnixHostInfoProvider.getRemoteUserEnvironment(UnixHostInfoProvider.java:289)
   at org.netbeans.modules.nativeexecution.support.hostinfo.impl.UnixHostInfoProvider.getHostInfo(UnixHostInfoProvider.java:119)
   at org.netbeans.modules.nativeexecution.support.hostinfo.FetchHostInfoTask.compute(FetchHostInfoTask.java:64)
Comment 1 jrigal 2017-04-28 13:46:33 UTC
Created attachment 164203 [details]
stacktrace
Comment 2 jrigal 2017-04-28 14:41:30 UTC
Hello

When I try to connect to a remote host, This message appear:
Failed to get process PID
Comment 3 ilia 2017-05-04 07:21:39 UTC
Hello,

I see this message in log file:

INFO [nativeexecution.support.logger]: [10042 ms.] Exception while receiving hostinfo for localhost
java.io.IOException: Access refused
	at java.io.WinNTFileSystem.createFileExclusively(Native Method)
	at java.io.File.createNewFile(File.java:1012)
        ...

Which makes me think you don't have write/execute permission in Temp directory:
C:\Users\vbox\AppData\Local\Temp\dlight_<USER>
NetBeans tries to copy some auxiliary files to this directory.

Do you have enough permission there?
Comment 4 jrigal 2017-05-04 07:34:41 UTC
Hello,

The permission of this folder was read only.
The connection to the remote host could be established when I updated permissions.

Thanks a lot
Comment 5 ilia 2017-05-04 07:44:00 UTC
You are welcome!