Red Hat Bugzilla – Bug 847674
[as7] reload operation fails for standalone server - InvalidPluginConfigurationException
Last modified: 2015-11-01 19:43:00 EST
Description of problem: When EAP server starts sending restart-required headers I am not able to reload it using UI.
Version-Release number of selected component (if applicable):
JON 3.1.1.ER1 + EAP6 GA
Steps to Reproduce:
1. Have EAP6 protected by user/pass running in standalone mode, imported with children => credentials are correct
2. make server require restart (for example by disabling ExampleDS datasource)
3. start 'reload' operation on server
Actual results: Reload operation fails with this.
org.rhq.core.pluginapi.inventory.InvalidPluginConfigurationException: Credentials for plugin to connect to AS7 management interface are invalid - update Connection Settings with valid credentials.
at sun.reflect.GeneratedMethodAccessor166.invoke(Unknown Source)
Additional info: Disabling a datasource is not the only way how to reproduce this BZ. It is enough to repeatedly run 'reload' operation on server, it fails for me on the 2nd attempt with above error message.
The bug did not affect the restart operation itself. The plugin was not properly detecting when the server was up and operational after a successful restart.
The code that was probing the server by sending an operation and looking for success or failure on the operation execution. If the server is not fully started, the operation execution could fail in surprising ways, thus throwing exceptions that bubbled up the stack. Updated the probing code to catch exceptions and just consider them failed attempts to connect to the server.
master branch commit:
Hi Stefan, I was still able to reproduce this BZ on JON 3.1.1.ER2
please ignore my previous comment.
Updated all the wait methods for reload, shutdown, and restart to have the same design. All the methods now take into account possible exceptions for the test operation sent to the application server.
master branch commit:
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.