You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by Scott Dudley <sc...@telesoft.com> on 2012/09/05 20:05:31 UTC
Embedding SSHD in 5 minutes
Constructed a snippet IAW "Embedding SSHD in 5 minutes"
(http://mina.apache.org/sshd/embedding-sshd-in-5-minutes.html) using
mina-core-2.0.5.jar and sshd-core-0.7.0.jar and am getting the following
Exception:
java.lang.NoSuchMethodError:
org.apache.mina.core.service.IoAcceptor.bind(Ljava/net/SocketAddress;)V
at org.apache.sshd.SshServer.start(SshServer.java:348)
at SshServerTest.main(SshServerTest.java:46)
I extracted and decompiled the abstract class IoAcceptor and see that
there is no such method however, there is one that takes an array.
What am I missing?
Thanks.
Scott
Re: java.lang.NoSuchMethodError for IoAcceptor.bind
Posted by Лаури <la...@mail.ru>.
Which JVM version do you use?
On Mon, Sep 10, 2012 at 1:06 AM, Andrew Hughes <andrewcarterhughes@gmail.com
> wrote:
> When I try to use SSHD 0.7.0 I'm getting a NoSuchMethodError. I saw the
> previous post on this question, and have tried including both mina-core
> 2.0.4 and 2.0.5, but neither fixes it.
>
> Any suggestions?
>
> java.lang.NoSuchMethodError: org.apache.mina.core.service.IoAcceptor.bind
> (Ljava/net/SocketAddress;)V
> at org.apache.sshd.SshServer.start(SshServer.java:374)
> at org.apache.sshd.SshServer$start.call(Unknown Source)
>
> Thanks,
>
> Andrew
>
>
java.lang.NoSuchMethodError for IoAcceptor.bind
Posted by Andrew Hughes <an...@gmail.com>.
When I try to use SSHD 0.7.0 I'm getting a NoSuchMethodError. I saw the
previous post on this question, and have tried including both mina-core
2.0.4 and 2.0.5, but neither fixes it.
Any suggestions?
java.lang.NoSuchMethodError: org.apache.mina.core.service.IoAcceptor.bind
(Ljava/net/SocketAddress;)V
at org.apache.sshd.SshServer.start(SshServer.java:374)
at org.apache.sshd.SshServer$start.call(Unknown Source)
Thanks,
Andrew
Re: Embedding SSHD in 5 minutes
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 9/5/12 8:05 PM, Scott Dudley a écrit :
>
> Constructed a snippet IAW "Embedding SSHD in 5 minutes"
> (http://mina.apache.org/sshd/embedding-sshd-in-5-minutes.html) using
> mina-core-2.0.5.jar and sshd-core-0.7.0.jar and am getting the
> following Exception:
>
> java.lang.NoSuchMethodError:
> org.apache.mina.core.service.IoAcceptor.bind(Ljava/net/SocketAddress;)V
> at org.apache.sshd.SshServer.start(SshServer.java:348)
> at SshServerTest.main(SshServerTest.java:46)
>
> I extracted and decompiled the abstract class IoAcceptor and see that
> there is no such method however, there is one that takes an array.
>
> What am I missing?
Hmmm... I think SSHD-0.7.0 is depending on mina-core 2.0.4, not 2.0.5.
I just tested sshd-0.8.0-SNAPSHOT with mina-core-2.0.5, seems to work
like a charm.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com