Bug 1146611
| Summary: | Cannot discover EAP6.0.1: supportsMatching method fails with IllegalArgumentException | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Operations Network | Reporter: | Thomas Segismont <tsegismo> |
| Component: | Plugin -- JBoss EAP 6 | Assignee: | Thomas Segismont <tsegismo> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Sunil Kondkar <skondkar> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | JON 3.3.0 | CC: | loleary, miburman, myarboro, skondkar |
| Target Milestone: | ER04 | ||
| Target Release: | JON 3.3.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-12-11 14:04:19 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Thomas Segismont
2014-09-25 15:23:05 UTC
Fixed in master
commit b95683ae6366745f53923c8d8d4c2d88cf21e17c
Author: Thomas Segismont <tsegismo>
Date: Thu Sep 25 17:31:49 2014 +0200
EAP 6.1.0 version.txt file content is: "JBoss Enterprise Application Platform - Version 6.0.1 GA"
As a consequence, the version detected will be "6.0.1 GA" (notice the space instead of a dot)
Give such version strings a chance to make a valid OSGiVersion instance (avoid IllegalArgumentException)
If the version is still not matching the expected pattern, then supportsPatching default to false
Also:
* some perf improvements:
** use already compiled PATTERN instead of recompiling on each call of String#split or String.replaceAll
** use some OSGiVersion constants to avoid parsing over and over again
* some code cleanup (no longer use deprecated methods, remove unused param in private method, unchecked warning)
Not yet in the release branch. Needs review and cherry-picking. (In reply to Thomas Segismont from comment #1) > Fixed in master > > commit b95683ae6366745f53923c8d8d4c2d88cf21e17c > Author: Thomas Segismont <tsegismo> > Date: Thu Sep 25 17:31:49 2014 +0200 > Reverted commit due to a compilation failure in CoreGUI (regex.Pattern is not a GWT compatible type) Fixed in master
commit 640a88cb2f126d583e46fc6b5a24f075df8d7535
Author: Thomas Segismont <tsegismo>
Date: Thu Sep 25 18:47:02 2014 +0200
Bug 1146611 - Cannot discover EAP6.0.1: supportsMatching method fails with IllegalArgumentException
EAP 6.1.0 version.txt file content is: "JBoss Enterprise Application Platform - Version 6.0.1 GA"
As a consequence, the version detected will be "6.0.1 GA" (notice the space instead of a dot)
Give such version strings a chance to make a valid OSGiVersion instance (avoid IllegalArgumentException)
If the version is still not matching the expected pattern, then supportsPatching default to false
Also:
* some perf improvements:
** use already compiled PATTERN instead of recompiling on each call of String#split or String.replaceAll
** use some OSGiVersion constants to avoid parsing over and over again
* some code cleanup (no longer use deprecated methods, remove unused param in private method, unchecked warning)
Moving into ER05 as didn't make the ER04 cut. Cherry-picked to release/jon3.3.x:
commit 702e61b7e25d290f9dd8f5e523c9ba439b455615
Author: Thomas Segismont <tsegismo>
Date: Thu Sep 25 18:47:02 2014 +0200
Bug 1146611 - Cannot discover EAP6.0.1: supportsMatching method fails with IllegalArgumentException
EAP 6.1.0 version.txt file content is: "JBoss Enterprise Application Platform - Version 6.0.1 GA"
As a consequence, the version detected will be "6.0.1 GA" (notice the space instead of a dot)
Give such version strings a chance to make a valid OSGiVersion instance (avoid IllegalArgumentException)
If the version is still not matching the expected pattern, then supportsPatching default to false
Also:
* some perf improvements:
** use already compiled PATTERN instead of recompiling on each call of String#split or String.replaceAll
** use some OSGiVersion constants to avoid parsing over and over again
* some code cleanup (no longer use deprecated methods, remove unused param in private method, unchecked warning)
(cherry picked from commit 640a88cb2f126d583e46fc6b5a24f075df8d7535)
Cherry-picked to rc/jon3.3.0.ER04 (allowed by spinder):
commit 160483d00f7f17d8da1f57b0823f2ab64818a2c4
Author: Thomas Segismont <tsegismo>
Date: Thu Sep 25 18:47:02 2014 +0200
Bug 1146611 - Cannot discover EAP6.0.1: supportsMatching method fails with IllegalArgumentException
EAP 6.1.0 version.txt file content is: "JBoss Enterprise Application Platform - Version 6.0.1 GA"
As a consequence, the version detected will be "6.0.1 GA" (notice the space instead of a dot)
Give such version strings a chance to make a valid OSGiVersion instance (avoid IllegalArgumentException)
If the version is still not matching the expected pattern, then supportsPatching default to false
Also:
* some perf improvements:
** use already compiled PATTERN instead of recompiling on each call of String#split or String.replaceAll
** use some OSGiVersion constants to avoid parsing over and over again
* some code cleanup (no longer use deprecated methods, remove unused param in private method, unchecked warning)
(cherry picked from commit 640a88cb2f126d583e46fc6b5a24f075df8d7535)
Verified on JON 3.3 ER05 On autodiscovery, EAP6.0.1 is discovered and agent.log does not show any errors. Verified that EAP6.0.1 is imported successfully and is green. |