Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-369

Cannot start sshd in android with SSHD version > 0.8.0

    XMLWordPrintableJSON

Details

    • Question
    • Status: Closed
    • Major
    • Resolution: Abandoned
    • 0.9.0
    • None
    • None
    • Android 4.2.2, mina 2.0.7, sshd 0.9.0

    Description

      version 0.9.0, and i test other versions, v0.8.0 can work, 0.12.0 cannot work.
      It carsh when call ssh.start(),

      error log :
      01-02 08:53:48.980: W/dalvikvm(7200): threadid=1: thread exiting with uncaught exception (group=0x40dca930)
      01-02 08:53:48.980: E/AndroidRuntime(7200): FATAL EXCEPTION: main
      01-02 08:53:48.980: E/AndroidRuntime(7200): java.lang.IllegalStateException: Could not find a valid sshd io provider
      01-02 08:53:48.980: E/AndroidRuntime(7200): at org.apache.sshd.common.io.DefaultIoServiceFactory.newInstance(DefaultIoServiceFactory.java:60)
      01-02 08:53:48.980: E/AndroidRuntime(7200): at org.apache.sshd.common.io.DefaultIoServiceFactory.createAcceptor(DefaultIoServiceFactory.java:39)
      01-02 08:53:48.980: E/AndroidRuntime(7200): at org.apache.sshd.SshServer.createAcceptor(SshServer.java:375)
      01-02 08:53:48.980: E/AndroidRuntime(7200): at org.apache.sshd.SshServer.start(SshServer.java:301)
      01-02 08:53:48.980: E/AndroidRuntime(7200): at com.github.stepinto.asshd.MainActivity.onStartButtonClicked(MainActivity.java:70)
      01-02 08:53:48.980: E/AndroidRuntime(7200): at com.github.stepinto.asshd.MainActivity.access$0(MainActivity.java:54)
      01-02 08:53:48.980: E/AndroidRuntime(7200): at com.github.stepinto.asshd.MainActivity$1.onClick(MainActivity.java:45)

      this app is compiled by JDK 1.6, someone said "SSHD requires mina when running on JDK < 7", so i add the MINA jars, but it still doesn't work.

      Here is my classpath:
      <?xml version="1.0" encoding="UTF-8"?>
      <classpath>
      <classpathentry kind="src" path="src"/>
      <classpathentry kind="src" path="gen"/>
      <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
      <classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
      <classpathentry kind="lib" path="D:/workspace/sshservertest/libs/bcprov-jdk15-140.jar"/>
      <classpathentry kind="lib" path="D:/workspace/sshservertest/libs/log4j-1.2.17.jar"/>
      <classpathentry kind="lib" path="D:/workspace/sshservertest/libs/mina-core-2.0.7.jar"/>
      <classpathentry kind="lib" path="D:/workspace/sshservertest/libs/mina-example-2.0.7.jar"/>
      <classpathentry kind="lib" path="D:/workspace/sshservertest/libs/mina-filter-compression-2.0.7.jar"/>
      <classpathentry kind="lib" path="D:/workspace/sshservertest/libs/mina-integration-beans-2.0.7.jar"/>
      <classpathentry kind="lib" path="D:/workspace/sshservertest/libs/mina-integration-jmx-2.0.7.jar"/>
      <classpathentry kind="lib" path="D:/workspace/sshservertest/libs/mina-integration-ognl-2.0.7.jar"/>
      <classpathentry kind="lib" path="D:/workspace/sshservertest/libs/mina-integration-xbean-2.0.7.jar"/>
      <classpathentry kind="lib" path="D:/workspace/sshservertest/libs/mina-statemachine-2.0.7.jar"/>
      <classpathentry kind="lib" path="D:/workspace/sshservertest/libs/mina-transport-apr-2.0.7.jar"/>
      <classpathentry kind="lib" path="D:/workspace/sshservertest/libs/slf4j-api-1.6.4.jar"/>
      <classpathentry kind="lib" path="D:/workspace/sshservertest/libs/slf4j-simple-1.6.4.jar"/>
      <classpathentry kind="lib" path="D:/workspace/sshservertest/libs/sshd-core-0.9.0.jar"/>
      <classpathentry kind="lib" path="D:/workspace/sshservertest/libs/sshd-pam-0.9.0.jar"/>
      <classpathentry kind="lib" path="D:/workspace/sshservertest/libs/sshd-sftp-0.9.0.jar"/>
      <classpathentry kind="lib" path="D:/workspace/sshservertest/libs/tomcat-apr-5.5.23.jar"/>
      <classpathentry kind="output" path="bin/classes"/>
      </classpath>

      Is there anything i lost??

      Attachments

        Activity

          People

            Unassigned Unassigned
            zhujianbo James Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: