Description of problem: Exception received during discovery of AS 7 instance: Caused by: java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:470) at java.lang.Integer.valueOf(Integer.java:554) at org.rhq.modules.plugins.jbossas7.AbstractBaseDiscovery.getManagementPortFromHostXml(AbstractBaseDiscovery.java:129) Version-Release number of selected component (if applicable): RHQ 4.2 JBoss AS 7.1.0.CR1b and JBoss AS 7.1.0.Beta1b How reproducible: Start an AS 7 instance then run rhq agent discovery Steps to Reproduce: 1. Start AS 7 2. Start RHQ Server and Agent 3. Run discovery for AS 7 plugin Actual results: java.lang.NumberFormatException is thrown and AS 7 instance is not disocvered Expected results: AS 7 instance is discovered Additional info:
7.1 security was only added after rhq 4.2 was released. Possibly need to handle this unhandled better exception in a more informative way...and/or release note to clarify AS7 version support ... and steps to disable or deal with this.
Created attachment 550462 [details] NPE during AS 7 discovery
After commenting out security in the standalone.xml from CR1b and the version in master, I encountered the attached NPE.
The newest versions of AS7 now also have a ${} expression for the management port
0fdee77760fd6a in master
Actually it is aa4ec7d05bb3 -- pull --rebase modified it
verified on EAP6 DR12 - detection works with ${<prop>:default} either prop is passed to standalone.sh or not
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE