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 190636 - Unstable tests due to "Channel is not opened"
Summary: Unstable tests due to "Channel is not opened"
Status: RESOLVED WONTFIX
Alias: None
Product: cnd
Classification: Unclassified
Component: execution (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Egor Ushakov
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2010-09-28 08:45 UTC by Egor Ushakov
Modified: 2017-03-08 17:04 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Egor Ushakov 2010-09-28 08:45:06 UTC
Sometimes tests fail because connection fails with:
com.jcraft.jsch.JSchException: channel is not opened.
	at com.jcraft.jsch.Channel.connect(Channel.java:188)
	at org.netbeans.modules.nativeexecution.JschSupport$1.call(JschSupport.java:94)
	at org.netbeans.modules.nativeexecution.JschSupport$1.call(JschSupport.java:82)
	at org.netbeans.modules.nativeexecution.JschSupport.start(JschSupport.java:145)
	at org.netbeans.modules.nativeexecution.JschSupport.startCommand(JschSupport.java:108)
	at org.netbeans.modules.nativeexecution.support.hostinfo.impl.UnixHostInfoProvider.getRemoteHostInfo(UnixHostInfoProvider.java:166)
	at org.netbeans.modules.nativeexecution.support.hostinfo.impl.UnixHostInfoProvider.getHostInfo(UnixHostInfoProvider.java:108)
	at org.netbeans.modules.nativeexecution.support.hostinfo.FetchHostInfoTask.compute(FetchHostInfoTask.java:63)
	at org.netbeans.modules.nativeexecution.api.util.HostInfoUtils.getHostInfo(HostInfoUtils.java:215)
	at org.netbeans.modules.nativeexecution.api.util.ConnectionManager.initiateConnection(ConnectionManager.java:260)
	at org.netbeans.modules.nativeexecution.api.util.ConnectionManager.connectTo(ConnectionManager.java:202)
	at org.netbeans.modules.nativeexecution.util.MacroExpanderFactoryTest.testGetExpander_ExecutionEnvironment_String(MacroExpanderFactoryTest.java:115)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at junit.framework.TestCase.runTest(TestCase.java:168)
	at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:95)
	at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:365)
	at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:294)
	at java.lang.Thread.run(Thread.java:619)

Even though it says "reconnectng" it does not work after that.
Comment 1 Egor Ushakov 2010-09-28 08:47:36 UTC
Andrew, you disabled full reconnect on "channel is not opened" when you fixed 10 processes issue, it looks like it did not help in this case. Maybe we should still do full reconnect in this case?
Comment 2 Andrew Krasny 2010-09-28 08:54:26 UTC
No... this is bad idea. 
Full re-connect means closing all active channels (means killing all currently running remote processes)... Don't think this is a good idea...
Comment 3 Andrew Krasny 2011-03-16 12:36:41 UTC
Egor, is it still reproducible?
Comment 4 Egor Ushakov 2011-03-16 13:39:52 UTC
yes, I've seen see the same error on March 14
Comment 5 Leonid Lenyashin 2012-10-30 21:09:43 UTC
There was no activity on this issue for quite a long time. We apologize that the issue was not addressed so far due to lack of development resources. We might not have time in near future to fix this problem, so it is closed as WONTFIX.
If the issue is still critical for you please do not hesitate to REOPEN it.
Thank you for using our product and reporting bugs. We are really sorry that we were not able to fix this issue timely.

Regards,
CND team.
Comment 6 davelhs03 2017-03-08 17:00:32 UTC
Also getting this issue why a laggy connection.

/var/log/uigestures is showing: 
org.netbeans.modules.php.project.copysupport.CopySupport
REMOTE copying fail:
org.netbeans.modules.php.project.connections.RemoteException: Cannot connect to server 

and

<message>com.jcraft.jsch.JSchException: channel is not opened.</message>
    <frame>
      <class>com.jcraft.jsch.Channel</class>
      <method>sendChannelOpen</method>
      <line>765</line>
      <file>bundleresource://175.fwk1404521754/com/jcraft/jsch/Channel.class</file>
    </frame>
    <frame>
      <class>com.jcraft.jsch.Channel</class>
      <method>connect</method>
      <line>151</line>
      <file>bundleresource://175.fwk1404521754/com/jcraft/jsch/Channel.class</file>
    </frame>
    <frame>
      <class>com.jcraft.jsch.Channel</class>
      <method>connect</method>
      <line>145</line>
      <file>bundleresource://175.fwk1404521754/com/jcraft/jsch/Channel.class</file>
    </frame>
    <frame>
      <class>org.netbeans.modules.php.project.connections.sftp.SftpClient</class>
      <method>connectSftpClient</method>
      <line>281</line>
      <file>${netBeansDir}modules/org-netbeans-modules-php-project.jar</file>
    </frame>
    <frame>
      <class>org.netbeans.modules.php.project.connections.sftp.SftpClient</class>
      <method>init</method>
      <line>159</line>
      <file>${netBeansDir}modules/org-netbeans-modules-php-project.jar</file>
    </frame>
   <more>15</more>
  </exception>
Comment 7 davelhs03 2017-03-08 17:01:36 UTC
Typo: Also getting this issue **with** a laggy connection.