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 262552 - java.io.IOException: Error getting host info for localhost
Summary: java.io.IOException: Error getting host info for localhost
Status: RESOLVED WONTFIX
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: 2016-06-23 16:33 UTC by javydreamercsw
Modified: 2017-04-06 17:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 224807


Attachments
stacktrace (1009 bytes, text/plain)
2016-06-23 16:33 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2016-06-23 16:33:46 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.91-b14, Java(TM) SE Runtime Environment, 1.8.0_91-b14
OS: Linux

User Comments:
javydreamercsw: Open in terminal action.




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.dlight.terminal.action.TerminalSupportImpl$1.doWork(TerminalSupportImpl.java:235)
   at org.netbeans.modules.dlight.terminal.action.TerminalSupportImpl$1.access$000(TerminalSupportImpl.java:153)
   at org.netbeans.modules.dlight.terminal.action.TerminalSupportImpl$1$1.run(TerminalSupportImpl.java:160)
   at org.netbeans.modules.dlight.terminal.action.TerminalSupportImpl$1.run(TerminalSupportImpl.java:174)
Comment 1 javydreamercsw 2016-06-23 16:33:48 UTC
Created attachment 160149 [details]
stacktrace
Comment 2 ilia 2017-04-06 17:07:22 UTC
I was able to reproduce the bug.
This only can happen if you remove hostinfo.sh after IDE started (and before the first access to the localhost info, i.e. before the local terminal is started).

The following will appear in a log file:

-------------------8<-------------------
SEVERE [nativeexecution.support.logger]: [7105 ms.] Unable to find hostinfo.sh script!
SEVERE [org.openide.util.Exceptions]
java.io.IOException: Error getting host info for localhost
	at org.netbeans.modules.nativeexecution.api.util.HostInfoUtils.getHostInfo(HostInfoUtils.java:336)
	at org.netbeans.modules.nativeexecution.api.util.HostInfoUtils.getHostInfo(HostInfoUtils.java:294)
[catch] at org.netbeans.modules.dlight.terminal.action.TerminalSupportImpl$1.doWork(TerminalSupportImpl.java:249)
	at org.netbeans.modules.dlight.terminal.action.TerminalSupportImpl$1.access$000(TerminalSupportImpl.java:156)
	at org.netbeans.modules.dlight.terminal.action.TerminalSupportImpl$1$1.run(TerminalSupportImpl.java:163)
	at org.netbeans.modules.dlight.terminal.action.TerminalSupportImpl$1.run(TerminalSupportImpl.java:179)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
-------------------8<-------------------

Please reopen if there is an another scenario.