http://jira.hyperic.com/browse/HHQ-4211
Resin Plugin command line discover shows java.io.IOException: Operation not permitted.
Executing a command line discover for the Resin plugin, the debug output shows:
DEBUG [Thread-1] [MxServerDetector] Cannot configure local jmx.url: State.Name.sw=java,Args..eq=com.caucho.server.resin.Resin,Args..eq=-Dresin.home=/opt/s2/resin/resin-3.1.10/ java.io.IOException: Operation not permitted
java.io.IOException: State.Name.sw=java,Args..eq=com.caucho.server.resin.Resin,Args..eq=-Dresin.home=/opt/s2/resin/resin-3.1.10/ java.io.IOException: Operation not permitted
at org.hyperic.hq.product.jmx.MxUtil.getUrlFromPid(MxUtil.java:397)
at org.hyperic.hq.product.jmx.MxServerDetector.configureLocalMxURL(MxServerDetector.java:126)
at org.hyperic.hq.product.jmx.MxServerDetector.getServerResource(MxServerDetector.java:351)
at org.hyperic.hq.product.jmx.MxServerDetector.getServ
erResources(MxServerDetector.java:379)
at org.hyperic.hq.autoinventory.scanimpl.NullScan.scan(NullScan.java:83)
at org.hyperic.hq.autoinventory.Scanner.start(Scanner.java:196)
at org.hyperic.hq.autoinventory.ScanManager.mainRunLoop(ScanManager.java:141)
at org.hyperic.hq.autoinventory.ScanManager.access$000(ScanManager.java:41)
at org.hyperic.hq.autoinventory.ScanManager$1.run(ScanManager.java:107)
This is not reported in previous HQ 4.4.
Expected Result:
No new errors reported when running the same commands on previous versions
Actual Result:
IOExecption reported when running command line discover.
Steps to Reproduce:
Execute the command line discover for Resin:
java -jar hq-pdk-shared-4.5.0.BUILD-SNAPSHOT.jar -Dplugins.include=resin -m discover -Dlog=debug -Djmx.url=service:jmx:rmi:///jndi/rmi://localhost:1199/jmxrmi -Djmx.username=hqRole -Djmx.password=hqRole
Work Around:
None
Additional Information:
This is regression. Running the same command with HQ 4.4 does not reproduce this error.
Anonymous