Device.connect got stuck

Hi team,
i am connecting to device as below.

line 1  : 1 device = new Device("VNF", deviceuser, deviceIP, port);
line 2 : device.setDefaultReadTimeout(10 * 60 * 1000); // 10 minutes
line 3 : device.connect(username);

application got hang when it reached line 3. please find the thread dump below. anything we can do to avoid hang issue( waiting issue). it waits indefinitely and not able to come out that.

"pool-14-thread-6" #2671601 prio=5 os_prio=0 tid=0x00007f9b6002e800 nid=0xc854 in Object.wait() [0x00007f99c5360000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	at java.lang.Object.wait(
	at ch.ethz.ssh2.auth.AuthenticationManager.deQueue(
	- locked <0x000000045f39d7c8> (a java.util.Vector)
	at ch.ethz.ssh2.auth.AuthenticationManager.getNextMessage(
	at ch.ethz.ssh2.auth.AuthenticationManager.authenticatePassword(
	at ch.ethz.ssh2.Connection.authenticateWithPassword(
	- locked <0x000000045f3a1490> (a ch.ethz.ssh2.Connection)
	at com.tailf.jnc.SSHConnection.authenticateWithPassword(
	at com.tailf.jnc.Device.auth(
	at com.tailf.jnc.Device.connect(
	at com.tailf.jnc.Device.connect(

This forum is dedicated to ConfD, your question deals with the Java Netconf Client, please post your question on its github page.

1 Like