JBREM000200:Connection reset by peer when performing reload using CLI API
Environment
- RedHat JBoss EAP
- 6.x.x
Issue
- We are using our gradle build to set up a JBoss instance.
One task is able to customize JBoss by configuring a running JBoss instance. The configuration is a normal jboss.cli script file. We are using the open CLI API provided by JBoss.
Whenever a reload is performed by calling ctx.handle(command), a "Connection reset by peer" may be raised. Looks like JBoss Remoting/CLI is handling the error and recovers but the error is logged in error level, contaminating the gradle output.
Even the successful handling is contaminating the gradle output.
Resolution
There was a bug Bugzilla#1232933 causing this problem, where it did not wait for the server connection to be re-established, which was fixed in 6.4CP03. There is also another bug which can intermittently affect this in domain mode Bugzilla#1249031 which is scheduled to be fixed in the upcoming CP04 release.
6.4CP03 should fix most of the occurrences of this problem (except that domain mode corner case).
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
