JBoss ON agent fails to collect response time (calltime) metrics from EAP 6 web application resource and throws UnsupportedOperationException

Solution Verified - Updated -

Issue

  • Does not show calltime metrics for web applications
  • Response time metrics do not appear
  • The agent log file contains messages like:

    WARN  [MeasurementManager.collector-1] (rhq.core.pc.measurement.MeasurementCollectorRunner)- Failure to collect measurement data for Resource[id=10100, uuid=b4fc3c8f-416f-3b02-a39e-ae17c8aede35, type={JBossAS7}Web Runtime, key=deployment=my-web-app.war,subsystem=web, name=web, parent=my-web-app.war] - cause: java.lang.UnsupportedOperationException:null
    
  • Calltime metrics are not collected for web application

  • Agent log contains the following warning:

    WARN  [MeasurementManager.collector-1] (rhq.core.pc.measurement.MeasurementCollectorRunner)- Failure to collect measurement data for Resource[id=10122, uuid=df343d2f-6280-4ee3-ac73-468a100d7898, type={JBossAS7}Web Runtime, key=deployment=jboss-as-helloworld.war,subsystem=web, name=web, parent=jboss-as-helloworld.war], requests=[ScheduledMeasurementInfo[res=10122, name=responseTime, sched=10694]], report.size()=0
    java.lang.UnsupportedOperationException
        at java.util.Collections$UnmodifiableCollection$1.remove(Collections.java:1028)
        at org.rhq.modules.plugins.jbossas7.WebRuntimeComponent.getValues(WebRuntimeComponent.java:84)
        at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:634)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:636)
    
  • Response Time logged locally only

Environment

  • Red Hat JBoss Operations Network (ON) 3.1, 3.1.1, 3.1.2
  • JBoss Enterprise Application Platform (EAP) plug-in pack for JBoss ON
    • JBoss Application Server (AS) 7.x plug-in for JBoss ON
  • Web application in JBoss ON inventory
    • Web application's web resource response time calltime metric enabled
    • Web application's response time log file inventory connection setting contains a complete and valid path to the web application's response time log file - For example, <JBOSS_HOME>/standalone/log/rt/jboss-as-helloworld_rt.log

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content