[wildfly-dev] Failed to connect to the controller / Remote connection failed

Stuart Douglas stuart.w.douglas at gmail.com
Thu May 16 19:15:26 EDT 2013


Wildfly and the CLI now use HTTP Upgrade by default for the management 
interface. This uses port 9990 rather than 9999, so you should be trying 
to connect to 10690 rather than 10699.

For now we still have the remoting endpoint active by default, to 
connect to the native remoting endpoint you can use:

--controller=remote://localhost:10699

This will be removed from our default configs eventually (although you 
can still add it back in yourself).

Stuart

Frank Langelage wrote:
> As of today I see a new error using jboss-cli.sh. I'm using current
> sources of wildfly from github. I use a port offset of 700, so I have
> 19:07:22,004 INFO  [org.jboss.as#logAdminConsole] JBAS015961: Http
> management interface listening on http://0.0.0.0:10690/management
> 19:07:22,006 INFO  [org.jboss.as#logAdminConsole] JBAS015951: Admin
> console listening on http://0.0.0.0:10690
>
> But when calling
> $JBOSS_HOME/bin/jboss-cli.sh --controller=localhost:10699 --connect
> I get
>
> Stacktrace:
> org.jboss.as.cli.CliInitializationException: Failed to connect to the
> controller
>           at
> org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:290)
>           at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:250)
>           at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
>           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>           at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>           at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>           at java.lang.reflect.Method.invoke(Method.java:601)
>           at org.jboss.modules.Module.run(Module.java:270)
>           at org.jboss.modules.Main.main(Main.java:411)
> Caused by: org.jboss.as.cli.CommandLineException: The controller is not
> available at localhost:10699
>           at
> org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:966)
>           at
> org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:805)
>           at
> org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:777)
>           at
> org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:288)
>           ... 8 more
> Caused by: java.io.IOException: java.net.ConnectException: JBAS012144:
> Could not connect to http-remoting://localhost:10699. 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:944)
>           ... 11 more
> Caused by: java.net.ConnectException: JBAS012144: Could not connect to
> http-remoting://localhost:10699. The connection timed out
>           at
> org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:131)
>           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:161)
>           at
> org.jboss.as.cli.impl.CLIModelControllerClient$2.getChannel(CLIModelControllerClient.java:123)
>           at
> org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:115)
>           at
> org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:90)
>           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)
>           ... 13 more
>
> on client side and
> 00:27:52,155 ERROR
> [org.jboss.remoting.remote.connection#handleException] JBREM000200:
> Remote connection failed: java.io.IOException: Received an invalid
> message length of 1195725856
> in server.log
>
> _______________________________________________
> wildfly-dev mailing list
> wildfly-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/wildfly-dev


More information about the wildfly-dev mailing list