{"id":1019,"date":"2017-04-25T18:11:42","date_gmt":"2017-04-25T12:41:42","guid":{"rendered":"http:\/\/www.middlewareprimer.com\/blog\/?p=1019"},"modified":"2017-07-28T22:05:23","modified_gmt":"2017-07-28T16:35:23","slug":"jbas012144-controller-not-available-localhost9999","status":"publish","type":"post","link":"http:\/\/www.middlewareprimer.com\/blog\/2017\/04\/25\/jbas012144-controller-not-available-localhost9999\/","title":{"rendered":"JBAS012144 The controller is not available at localhost:9999"},"content":{"rendered":"<p>JBAS012144 The controller is not available at localhost:9999: java.net.ConnectException: JBAS012144: Could not connect to remote:\/\/localhost:9999. The connection timed out: JBAS012144: Could not connect to remote:\/\/localhost:9999. The connection timed out.<\/p>\n<p>Above error message pops up while accessing Wildfly v8.2 CLI commands. Below screenshot with exceptions were occuring even when tried with &#8211;connect option.<\/p>\n<p>1. Navigate to Wildfly bin directory and issue,<\/p>\n<p>.\/jobss-cli.sh<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1021 size-full\" src=\"http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2017\/04\/jboss1.png\" alt=\"JBAS012144 The controller is not available at localhost:9999\" width=\"1586\" height=\"99\" srcset=\"http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2017\/04\/jboss1.png 1586w, http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2017\/04\/jboss1-300x19.png 300w, http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2017\/04\/jboss1-768x48.png 768w, http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2017\/04\/jboss1-1024x64.png 1024w\" sizes=\"auto, (max-width: 1586px) 100vw, 1586px\" \/><\/p>\n<p>2. Navigate to Wildfly bin directory and issue,<\/p>\n<p>.\/jobss-cli.sh &#8211;connect<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1022 size-full\" src=\"http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2017\/04\/jboss2.png\" alt=\"JBAS012144 The controller is not available at localhost:9999\" width=\"1185\" height=\"772\" srcset=\"http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2017\/04\/jboss2.png 1185w, http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2017\/04\/jboss2-300x195.png 300w, http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2017\/04\/jboss2-768x500.png 768w, http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2017\/04\/jboss2-1024x667.png 1024w\" sizes=\"auto, (max-width: 1185px) 100vw, 1185px\" \/><\/p>\n<p>Exception is,<\/p>\n<p>org.jboss.as.cli.CliInitializationException: Failed to connect to the controller<br \/>\nat org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:278)<br \/>\nat org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:253)<br \/>\nat org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)<br \/>\nat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br \/>\nat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)<br \/>\nat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br \/>\nat java.lang.reflect.Method.invoke(Method.java:606)<br \/>\nat org.jboss.modules.Module.run(Module.java:312)<br \/>\nat org.jboss.modules.Main.main(Main.java:460)<br \/>\nCaused by: org.jboss.as.cli.CommandLineException: The controller is not available at localhost:9990<br \/>\nat org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1028)<br \/>\nat org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:840)<br \/>\nat org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:819)<br \/>\nat org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:276)<br \/>\n&#8230; 8 more<br \/>\nCaused by: java.io.IOException: java.net.ConnectException: JBAS012174: Could not connect to http-remoting:\/\/localhost:9990. The connection failed<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Resolution:<\/strong> Try to embed &#8211;controller and give the IP along with port to move out of this issue.<\/p>\n<p>.\/jobss-cli.sh &#8211;connect &#8211;controller &lt;IP&gt;:9990<\/p>\n<p>Where IP is system IP or the IP that is configured with JBoss. Above command will work and we should be able to hit the JBoss CLI.<\/p>\n<p>Links for reference below,<\/p>\n<p><a href=\"https:\/\/issues.jboss.org\/browse\/WFLY-1664\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/issues.jboss.org\/browse\/WFLY-1664<\/a><\/p>\n<p><a href=\"https:\/\/developer.jboss.org\/wiki\/CLIConnections-AddressHandling\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/developer.jboss.org\/wiki\/CLIConnections-AddressHandling<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Deploy and Undeploy commands for reference from my blog entry below,<\/p>\n<p>Deploy: <a href=\"http:\/\/www.middlewareprimer.com\/blog\/2017\/07\/28\/jboss-deploy-cli-command\" target=\"_blank\" rel=\"noopener\">http:\/\/www.middlewareprimer.com\/blog\/2017\/07\/28\/jboss-deploy-cli-command<\/a><\/p>\n<p>Undeploy: <a href=\"http:\/\/www.middlewareprimer.com\/blog\/2017\/07\/28\/jboss-undeploy-cli-command\" target=\"_blank\" rel=\"noopener\">http:\/\/www.middlewareprimer.com\/blog\/2017\/07\/28\/jboss-undeploy-cli-command <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>JBAS012144 The controller is not available at localhost:9999: java.net.ConnectException: JBAS012144: Could not connect to remote:\/\/localhost:9999. The connection timed out: JBAS012144: Could not connect to remote:\/\/localhost:9999. The connection timed out. Above error message pops up while accessing Wildfly v8.2 CLI commands. Below screenshot with exceptions were occuring even when tried with &#8211;connect option. 1. Navigate to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[290],"tags":[295,291,294,292,293],"class_list":["post-1019","post","type-post","status-publish","format-standard","hentry","category-jboss","tag-connectexception","tag-jbas012144","tag-jobss-cli","tag-wildfly","tag-wildfly-8-2"],"_links":{"self":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/1019","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/comments?post=1019"}],"version-history":[{"count":4,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/1019\/revisions"}],"predecessor-version":[{"id":1102,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/1019\/revisions\/1102"}],"wp:attachment":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/media?parent=1019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/categories?post=1019"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/tags?post=1019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}