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 270655

Summary: IllegalStateException: Cannot call connect() twice
Product: cnd Reporter: ilia
Component: TerminalemulatorAssignee: ilia
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 229165
Attachments: stacktrace

Description ilia 2017-05-16 10:13:38 UTC
This bug was originally marked as duplicate of bug 258483, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 20170504-63e15ba37eaa)
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:
ilia: 1) Enter new remote host credentials when connecting to a remote terminal
2) Press NO when offered to add key to known_hosts




Stacktrace: 
java.lang.IllegalStateException: Cannot call connect() twice
   at org.netbeans.lib.terminalemulator.StreamTerm.connect(StreamTerm.java:297)
   at org.netbeans.modules.terminal.ioprovider.Task$Connect.perform(Task.java:438)
   at org.netbeans.modules.terminal.ioprovider.Task.dispatch(Task.java:148)
   at org.netbeans.modules.terminal.ioprovider.Task.access$000(Task.java:76)
   at org.netbeans.modules.terminal.ioprovider.Task$1.run(Task.java:133)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
Comment 1 ilia 2017-05-16 10:13:40 UTC
Created attachment 164328 [details]
stacktrace
Comment 2 ilia 2017-05-16 10:30:12 UTC
Can't reproduce it again.

Anywat, pressing NO leads to this confirmation dialog popping out again and again until you press yes.