[jboss-jira] [JBoss JIRA] (WFLY-987) Using the CLI remote client jar on Windows7
Alexey Loubyansky (JIRA)
jira-events at lists.jboss.org
Thu Nov 21 07:53:06 EST 2013
[ https://issues.jboss.org/browse/WFLY-987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12925714#comment-12925714 ]
Alexey Loubyansky commented on WFLY-987:
----------------------------------------
How consistent is this issue? I mean does it fail to connect on every attempt? And does it always succeed when the connect is done from the script?
I doubt the problem is in the CLI code, though. I guess it's the same protocol/remoting connection issue.
> Using the CLI remote client jar on Windows7
> -------------------------------------------
>
> Key: WFLY-987
> URL: https://issues.jboss.org/browse/WFLY-987
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: CLI
> Environment: Windows 7, JDK 1.6
> Reporter: Miguel Reyes
> Assignee: Alexey Loubyansky
> Labels: cli
>
> jboss-cli-client.jar works fine in Fedora. However, when I try to run it in Win7 I get a "connection timeout" error:
> Microsoft Windows [Version 6.1.7600]
> Copyright (c) 2009 Microsoft Corporation. All rights reserved.
> C:\Users\myuser\Desktop\Test>java -jar jboss-cli-client.jar --controller=10.11.12.13:9999 --connect --user=admin --password=admin --file=test.cli
> WARN: can't find jboss-cli.xml. Using default configuration values.
> apr 09, 2013 10:35:21 FM org.xnio.Xnio <clinit>
> INFO: XNIO Version 3.0.7.GA
> apr 09, 2013 10:35:21 FM org.xnio.nio.NioXnio <clinit>
> INFO: XNIO NIO Implementation Version 3.0.7.GA
> apr 09, 2013 10:35:21 FM org.jboss.remoting3.EndpointImpl <clinit>
> INFO: JBoss Remoting version 3.2.14.GA
> org.jboss.as.cli.CliInitializationException: Failed to connect to the controller
> at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:280)
> at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:240)
> at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
> Caused by: org.jboss.as.cli.CommandLineException: The controller is not available at 10.11.12.13:9999
> at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:950)
> at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:789)
> at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:765)
> at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:278)
> ... 2 more
> Caused by: java.io.IOException: java.net.ConnectException: JBAS012144: Could notconnect to remote://10.11.12.13:9999. The connection timed out
> at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:129)
> at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:71)
> at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:928)
> ... 5 more
> Caused by: java.net.ConnectException: JBAS012144: Could not connect to remote://10.11.12.13:9999. The connection timed out
> at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:130)
> at org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:256)
> at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:70)
> at org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.getChannel(FutureManagementChannel.java:176)
> at org.jboss.as.cli.impl.CLIModelControllerClient.getOrCreateChannel(CLIModelControllerClient.java:153)
> at org.jboss.as.cli.impl.CLIModelControllerClient$2.getChannel(CLIModelControllerClient.java:114)
> at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:115)
> at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:98)
> at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:236)
> at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:141)
> at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127)
> ... 7 more
> A right now is to pass the connect command in my test.cli (connect 10.11.12.13) and instead run:
> C:\Users\myuser\Desktop\Test>java -jar jboss-cli-client.jar --user=admin --password=admin --file=test.cli
> Using the jboss-cli-client.jar from EAP6.1.ALPHA
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list