SSH not working after Stash upgrade

Troubleshooting Git

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

SSH does not work and the following appears in atlassian-stash.log:

2014-06-13 00:05:02,082 WARN  [NioProcessor-6]  o.a.m.c.f.DefaultIoFilterChain Unexpected exception from exceptionCaught handler.
java.lang.IllegalStateException: No session available
	at org.apache.sshd.common.AbstractSessionIoHandler.exceptionCaught(AbstractSessionIoHandler.java:49) ~[stash-ssh-2.12.3_1399867136000.jar:na]
…
Caused by: java.lang.NoSuchMethodError: org.bouncycastle.asn1.ASN1InputStream.readObject()Lorg/bouncycastle/asn1/DERObject;
Caused by: java.lang.VerifyError: class org.bouncycastle.asn1.ASN1Primitive overrides final method equals.(Ljava/lang/Object;)Z

Cause

There is incompatible version of Bouncy Castle in the JDK.

Resolution

Search for the incompatible version of Bouncy Castle and remove it.

(info) This is likely located at JAVA_HOME/jre/lib/ext/bcprov-jdk*.jar

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.