You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Matt Madhavan <ma...@gmail.com> on 2011/09/25 22:00:33 UTC
Not able to connect to Child Instance
Hello,
I created child instance as follows:
admin:create testchild
It created the child instance successfully!
Then I tried to connect to the child instance as follows:
karaf@root> admin:connect testchild -u karaf -p karaf
Connecting to host localhost on port 8103
*Error executing command: Failed to get the session.*
karaf@root> admin:connect testchild
Connecting to host localhost on port 8103
*Error executing command: Failed to get the session.*
Any ideas please?
Thanks
Matt
--
View this message in context: http://karaf.922171.n3.nabble.com/Not-able-to-connect-to-Child-Instance-tp3367355p3367355.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Not able to connect to Child Instance
Posted by Matt Madhavan <ma...@gmail.com>.
Hi JB,
Its 2.2.3 and windows XP.
Also the following is the stack trace from the log file:
Thanks
Matt
2011-09-25 14:59:49,718 | INFO | l Console Thread | Console
| araf.shell.console.jline.Console 236 | 40 -
org.apache.karaf.shell.console - 2.2.3 | Exception caught while executing
command
org.apache.sshd.common.RuntimeSshException: Failed to get the session.
at
org.apache.sshd.client.future.DefaultConnectFuture.getSession(DefaultConnectFuture.java:43)[14:sshd-core:0.5.0]
at
org.apache.karaf.shell.ssh.SshAction.doExecute(SshAction.java:111)[17:org.apache.karaf.shell.ssh:2.2.3]
at
org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:79)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.karaf.admin.command.ConnectCommand.doExecute(ConnectCommand.java:56)[16:org.apache.karaf.admin.command:2.2.3]
at
org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:79)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.karaf.shell.console.jline.Console.run(Console.java:218)[40:org.apache.karaf.shell.console:2.2.3]
at java.lang.Thread.run(Thread.java:662)[:1.6.0_23]
Caused by: java.net.ConnectException: Connection refused: no further
information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)[:1.6.0_23]
at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)[:1.6.0_23]
at
org.apache.mina.transport.socket.nio.NioSocketConnector.finishConnect(NioSocketConnector.java:223)[29:org.apache.mina.core:2.0.1]
at
org.apache.mina.transport.socket.nio.NioSocketConnector.finishConnect(NioSocketConnector.java:45)[29:org.apache.mina.core:2.0.1]
--
View this message in context: http://karaf.922171.n3.nabble.com/Not-able-to-connect-to-Child-Instance-tp3367355p3367410.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Not able to connect to Child Instance
Posted by Matt Madhavan <ma...@gmail.com>.
Hi JB,
Its 2.2.3 and windows XP.
Also the following is the stack trace from the log file:
Thanks
Matt
2011-09-25 14:59:49,718 | INFO | l Console Thread | Console
| araf.shell.console.jline.Console 236 | 40 -
org.apache.karaf.shell.console - 2.2.3 | Exception caught while executing
command
org.apache.sshd.common.RuntimeSshException: Failed to get the session.
at
org.apache.sshd.client.future.DefaultConnectFuture.getSession(DefaultConnectFuture.java:43)[14:sshd-core:0.5.0]
at
org.apache.karaf.shell.ssh.SshAction.doExecute(SshAction.java:111)[17:org.apache.karaf.shell.ssh:2.2.3]
at
org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:79)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.karaf.admin.command.ConnectCommand.doExecute(ConnectCommand.java:56)[16:org.apache.karaf.admin.command:2.2.3]
at
org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:79)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.karaf.shell.console.jline.Console.run(Console.java:218)[40:org.apache.karaf.shell.console:2.2.3]
at java.lang.Thread.run(Thread.java:662)[:1.6.0_23]
Caused by: java.net.ConnectException: Connection refused: no further
information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)[:1.6.0_23]
at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)[:1.6.0_23]
at
org.apache.mina.transport.socket.nio.NioSocketConnector.finishConnect(NioSocketConnector.java:223)[29:org.apache.mina.core:2.0.1]
at
org.apache.mina.transport.socket.nio.NioSocketConnector.finishConnect(NioSocketConnector.java:45)[29:org.apache.mina.core:2.0.1]
--
View this message in context: http://karaf.922171.n3.nabble.com/Not-able-to-connect-to-Child-Instance-tp3367355p3367411.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Not able to connect to Child Instance
Posted by Matt Madhavan <ma...@gmail.com>.
Hi JB,
Its 2.2.3 and windows XP.
Also the following is the stack trace from the log file:
Thanks
Matt
2011-09-25 14:59:49,718 | INFO | l Console Thread | Console
| araf.shell.console.jline.Console 236 | 40 -
org.apache.karaf.shell.console - 2.2.3 | Exception caught while executing
command
org.apache.sshd.common.RuntimeSshException: Failed to get the session.
at
org.apache.sshd.client.future.DefaultConnectFuture.getSession(DefaultConnectFuture.java:43)[14:sshd-core:0.5.0]
at
org.apache.karaf.shell.ssh.SshAction.doExecute(SshAction.java:111)[17:org.apache.karaf.shell.ssh:2.2.3]
at
org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:79)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.karaf.admin.command.ConnectCommand.doExecute(ConnectCommand.java:56)[16:org.apache.karaf.admin.command:2.2.3]
at
org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:79)[40:org.apache.karaf.shell.console:2.2.3]
at
org.apache.karaf.shell.console.jline.Console.run(Console.java:218)[40:org.apache.karaf.shell.console:2.2.3]
at java.lang.Thread.run(Thread.java:662)[:1.6.0_23]
Caused by: java.net.ConnectException: Connection refused: no further
information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)[:1.6.0_23]
at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)[:1.6.0_23]
at
org.apache.mina.transport.socket.nio.NioSocketConnector.finishConnect(NioSocketConnector.java:223)[29:org.apache.mina.core:2.0.1]
at
org.apache.mina.transport.socket.nio.NioSocketConnector.finishConnect(NioSocketConnector.java:45)[29:org.apache.mina.core:2.0.1]
--
View this message in context: http://karaf.922171.n3.nabble.com/Not-able-to-connect-to-Child-Instance-tp3367355p3367412.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Not able to connect to Child Instance
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Matt,
which Karaf version ?
Regards
JB
On 09/25/2011 10:00 PM, Matt Madhavan wrote:
> Hello,
> I created child instance as follows:
>
> admin:create testchild
>
> It created the child instance successfully!
>
> Then I tried to connect to the child instance as follows:
> karaf@root> admin:connect testchild -u karaf -p karaf
> Connecting to host localhost on port 8103
> *Error executing command: Failed to get the session.*
> karaf@root> admin:connect testchild
> Connecting to host localhost on port 8103
> *Error executing command: Failed to get the session.*
>
> Any ideas please?
>
> Thanks
> Matt
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Not-able-to-connect-to-Child-Instance-tp3367355p3367355.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Not able to connect to Child Instance
Posted by Matt Madhavan <ma...@gmail.com>.
Hello,
Any one got some ideas for me here?
I'm still not able to connect to the Child instance!
Thanks
Matt
--
View this message in context: http://karaf.922171.n3.nabble.com/Not-able-to-connect-to-Child-Instance-tp3367355p3370083.html
Sent from the Karaf - User mailing list archive at Nabble.com.