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 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)
Created attachment 160149 [details] stacktrace
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.