Hi,
+-From: "Paul Sabatino" <[email protected]> --
|_Date: Fri, 7 Jan 2011 22:13:23 -0500 __________
|
|The session.connect() method is getting invoked, but only after
|session.isConnected() has returned false.
...
|public Session getSession() throws BinaryTransferSessionException {
| if (session !=3D null && session.isConnected()) {
| return session;
| }
...
|So basically if other parts of the code need the session, they call this
|and it will give out the already connected session or connect then give
|them the session.
Humm..., I, however, can not find the reason for the following exception.
It seems Session#connect() has been invoked on the already connected
session object,
|It fails to reconnect with the following error (partial stack trace):
|Caused by: com.jcraft.jsch.JSchException: SSH_MSG_DISCONNECT: 2 Protocol
|error: expected packet SSH_MSG_USERAUTH_REQUEST, got SSH_MSG_CHANNEL_OPEN
| at com.jcraft.jsch.Session.read(Session.java:899)
| at com.jcraft.jsch.UserAuthNone.start(UserAuthNone.java:85)
| at com.jcraft.jsch.Session.connect(Session.java:350)
Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
+1-415-578-3454
Skype callto://jcraft/
Twitter: http://twitter.com/ymnk
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web. Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users