Description of problem: When upgrading the RHQ, we assume in the upgrade process that AS7 / EAP instances have productType defined in the pluginConfiguration. If none is found, the upgrade process dies to NullPointerException. Version-Release number of selected component (if applicable): 4.13 How reproducible: Always Steps to Reproduce: 1. 2. 3. Actual results: Upgrade fails and server is shown down. Expected results: We should detect the missing productType like we do in the inventory process. Additional info: Workaround is to reinventory the AS7/EAP instance in which case it'll work fine.
Workaround is also to set the "Supports Patching" property manually in RHQ for affected servers, for instance through groups. Then restart the plugin container for the Agent.
branch: master link: https://github.com/rhq-project/rhq/commit/ba1627a00 time: 2015-01-08 23:14:23 +0100 commit: ba1627a00ce8110087f95dc5c15764c3738770d8 author: Libor Zoubek - lzoubek message: Bug 1171720 - AS7 upgrade fails if productType is missing
Additional commit detecting productType during resource upgrade branch: master link: https://github.com/rhq-project/rhq/commit/7ab191033 time: 2015-01-10 14:02:11 +0100 commit: 7ab191033f120670bccbe3c573ed6a538d86f1a2 author: Libor Zoubek - lzoubek message: Bug 1171720 - AS7 upgrade fails if productType is missing Added code which also re-discoveres productType when upgrading resource's supportsPatching pluginConfig property in case it's null.
branch: master link: https://github.com/rhq-project/rhq/commit/4eceea87b time: 2015-01-10 14:05:12 +0100 commit: 4eceea87bce2fd6a7f96bb33579f467c2f620c39 author: Libor Zoubek - lzoubek message: Remove log message