problem configuring jboss using jboss-cli

Posted on

Hi,

we have configured jboss so that it uses ssl when trying to access jboss admin console. sometimes we have the following error:

2015-02-04 07:16:52 INFO org.jboss.as.cli.CliInitializationException: Failed to connect to the controller
2015-02-04 07:16:52 INFO at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:284)
2015-02-04 07:16:52 INFO at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:250)
2015-02-04 07:16:52 INFO at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
2015-02-04 07:16:52 INFO at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2015-02-04 07:16:52 INFO at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2015-02-04 07:16:52 INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2015-02-04 07:16:52 INFO at java.lang.reflect.Method.invoke(Method.java:606)
2015-02-04 07:16:52 INFO at org.jboss.modules.Module.run(Module.java:292)
2015-02-04 07:16:52 INFO at org.jboss.modules.Main.main(Main.java:455)
2015-02-04 07:16:52 INFO Caused by: org.jboss.as.cli.CommandLineException: The controller is not available at localhost:9999
2015-02-04 07:16:52 INFO at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:969)
2015-02-04 07:16:52 INFO at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:808)
2015-02-04 07:16:52 INFO at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:784)
2015-02-04 07:16:52 INFO at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:282)
2015-02-04 07:16:52 INFO ... 8 more
2015-02-04 07:16:52 INFO Caused by: java.io.IOException: java.net.ConnectException: JBAS012144: Could not connect to remote://localhost:9999. The connection timed out
2015-02-04 07:16:52 INFO at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:129)
2015-02-04 07:16:52 INFO at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:71)
2015-02-04 07:16:52 INFO at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:947)
2015-02-04 07:16:52 INFO ... 11 more
2015-02-04 07:16:52 INFO Caused by: java.net.ConnectException: JBAS012144: Could not connect to remote://localhost:9999. The connection timed out
2015-02-04 07:16:52 INFO at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:131)
2015-02-04 07:16:52 INFO at org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:256)
2015-02-04 07:16:52 INFO at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:70)
2015-02-04 07:16:52 INFO at org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.getChannel(FutureManagementChannel.java:204)
2015-02-04 07:16:52 INFO at org.jboss.as.cli.impl.CLIModelControllerClient.getOrCreateChannel(CLIModelControllerClient.java:160)
2015-02-04 07:16:52 INFO at org.jboss.as.cli.impl.CLIModelControllerClient$2.getChannel(CLIModelControllerClient.java:120)
2015-02-04 07:16:52 INFO at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:117)
2015-02-04 07:16:52 INFO at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:92)
2015-02-04 07:16:52 INFO at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:236)
2015-02-04 07:16:52 INFO at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:141)
2015-02-04 07:16:52 INFO at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127)
2015-02-04 07:16:52 INFO ... 13 more

by setting the log level to trace we have the following exception:
17:44:18,459 TRACE [org.xnio.nio] (Remoting "clab1283node11:MANAGEMENT" task-2) Resume reads on TCP socket channel (NIO)
17:44:18,459 TRACE [org.xnio.nio] (Remoting "clab1283node11:MANAGEMENT" task-2) Setting operations of key sun.nio.ch.SelectionKeyImpl@4fa8ea32 of java.nio.channels.SocketChannel[connected local=localhost.localdomain/127.0.0.1:9999 remote=localhost.localdomain/127.0.0.1:36876] to 01 (other thread)
17:44:18,451 TRACE [org.jboss.remoting.remote.connection] (Remoting "clab1283node11:MANAGEMENT" read-1) Connection error detail: java.io.IOException: Broken pipe
at sun.nio.ch.FileDispatcherImpl.write0(Native Method) [rt.jar:1.7.0_71]
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) [rt.jar:1.7.0_71]
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93) [rt.jar:1.7.0_71]
at sun.nio.ch.IOUtil.write(IOUtil.java:65) [rt.jar:1.7.0_71]
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:487) [rt.jar:1.7.0_71]
at org.xnio.nio.AbstractNioStreamChannel.write(AbstractNioStreamChannel.java:303)
at org.xnio.ssl.JsseConnectedSslStreamChannel.doFlush(JsseConnectedSslStreamChannel.java:647) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]
at org.xnio.ssl.JsseConnectedSslStreamChannel.doFlush(JsseConnectedSslStreamChannel.java:622) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]
at org.xnio.ssl.JsseConnectedSslStreamChannel.handleWrapResult(JsseConnectedSslStreamChannel.java:299) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]
at org.xnio.ssl.JsseConnectedSslStreamChannel.handleHandshake(JsseConnectedSslStreamChannel.java:369) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]
at org.xnio.ssl.JsseConnectedSslStreamChannel.read(JsseConnectedSslStreamChannel.java:487) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]
at org.xnio.ssl.JsseConnectedSslStreamChannel.read(JsseConnectedSslStreamChannel.java:449) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]
at org.xnio.channels.FramedMessageChannel.receive(FramedMessageChannel.java:87) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]
at org.jboss.remoting3.remote.ServerConnectionOpenListener$Authentication.handleEvent(ServerConnectionOpenListener.java:574) [jboss-remoting-3.2.18.GA-redhat-1.jar:3.2.18.GA-redhat-1]
at org.jboss.remoting3.remote.ServerConnectionOpenListener$Authentication.handleEvent(ServerConnectionOpenListener.java:550) [jboss-remoting-3.2.18.GA-redhat-1.jar:3.2.18.GA-redhat-1]
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]
at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:189) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]
at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:103) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]
at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:189) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]
at org.xnio.ssl.JsseConnectedSslStreamChannel.handleReadable(JsseConnectedSslStreamChannel.java:180) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]
at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:103) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]
at org.xnio.nio.NioHandle.run(NioHandle.java:90)
at org.xnio.nio.WorkerThread.run(WorkerThread.java:187)

17:44:18,459 ERROR [org.jboss.remoting.remote.connection] (Remoting "clab1283node11:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: Broken pipe

standalone.xml file attached.

Thanks

Attachments

Responses