Grzegorz Grzybek created SSHD-734:
-------------------------------------
Summary: When ClientSessionImpl construction fails,
AbstractSessionIoHandler#exceptionCaught may throw NPE
Key: SSHD-734
URL: https://issues.apache.org/jira/browse/SSHD-734
Project: MINA SSHD
Issue Type: Bug
Reporter: Grzegorz Grzybek
# {{org.apache.sshd.common.session.helpers.AbstractSession#sendKexInit()}} is
called in {{ClientSessionImpl}} constructor
# {{org.apache.sshd.common.io.IoSession#write}} is called
# async write is done with handler created by
{{org.apache.sshd.common.io.nio2.Nio2Session#createWriteCycleCompletionHandler()}}
# if e.g., {{sun.nio.ch.UnixAsynchronousSocketChannelImpl#implWrite()}} fails,
it calls {{org.apache.sshd.common.io.nio2.Nio2CompletionHandler#onFailed()}}
# {{org.apache.sshd.common.io.nio2.Nio2Session#exceptionCaught()}} calls
{{org.apache.sshd.common.io.IoHandler#exceptionCaught()}}
#
{{org.apache.sshd.common.session.helpers.AbstractSessionIoHandler#exceptionCaught()}}
can't find session in {{AbstractSession.getSession(ioSession, true)}}
# it throws {{throw new IllegalStateException("No session available", cause)}}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)