SSH not working after Bitbucket Server upgrade
症状
SSH does not work and the following appears in atlassian-bitbucket.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) ~[bitbucket-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
原因
There is incompatible version of Bouncy Castle in the JDK.
ソリューション
Search for the incompatible version of Bouncy Castle and remove it.
This is likely located at JAVA_HOME/jre/lib/ext/bcprov-jdk*.jar
Last modified on Mar 30, 2016
Powered by Confluence and Scroll Viewport.