Bug 1209409

Summary: unable to monitor BPMS 6.0.3 using JON3.3
Product: [JBoss] JBoss Operations Network Reporter: Prachi <pyadav>
Component: Plugin -- BRMS 5Assignee: Julian Coleman <jcoleman>
Status: CLOSED DUPLICATE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: high    
Version: JON 3.3.1CC: ajuricic, fbrychta
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-09 14:29:54 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:
Attachments:
Description Flags
BPMS.png none

Description Prachi 2015-04-07 10:08:09 UTC
Created attachment 1011679 [details]
BPMS.png

Description of problem:
unable to monitor BPMS 6.0.3 using JON3.3.0

Version-Release number of selected component (if applicable):
JON 3.3


How reproducible:

Downloaded plugin : jon-plugin-pack-brms-bpms-3.3.0.GA

*********************************
-rw-rw-r--. 1 pyadav pyadav    5628 Nov 17 15:36 brms-p-5.3.1.GA-rhq-plugin.jar
-rw-rw-r--. 1 pyadav pyadav    3663 Nov 17 15:36 drools-rhq-plugin-6.0.2-redhat-2.jar
-rw-r--r--. 1 pyadav pyadav    8123 Nov 17 15:35 EULA
-rw-rw-r--. 1 pyadav pyadav   50905 Nov 17 15:36 hornetq-jopr-plugin-2.0.0.Final.jar
-rw-rw-r--. 1 pyadav pyadav   11075 Nov 17 15:36 jopr-hibernate-plugin-4.12.0.JON330GA.jar
-rw-rw-r--. 1 pyadav pyadav 2470029 Nov 17 15:36 jopr-jboss-as-5-plugin-4.12.0.JON330GA.jar
-rw-rw-r--. 1 pyadav pyadav 2469260 Nov 17 15:36 jopr-jboss-as-plugin-4.12.0.JON330GA.jar
-rw-rw-r--. 1 pyadav pyadav   26153 Nov 17 15:36 jopr-jboss-cache-plugin-4.12.0.JON330GA.jar
-rw-rw-r--. 1 pyadav pyadav   16959 Nov 17 15:36 jopr-jboss-cache-v3-plugin-4.12.0.JON330GA.jar
-rw-r--r--. 1 pyadav pyadav   17987 Nov 17 15:35 LICENSE
-rw-r--r--. 1 pyadav pyadav    1688 Nov 17 15:35 README.txt
-rw-rw-r--. 1 pyadav pyadav 2206362 Nov 17 15:36 rhq-jboss-as-7-plugin-4.12.0.JON330GA.jar
-rw-rw-r--. 1 pyadav pyadav 1688757 Nov 17 15:36 rhq-rhqserver-plugin-4.12.0.JON330GA.jar

*********************************

I am able to see it discovery and successfully imported it. After that once I am trying to update a username and password in connection setting, getting Error in console (attached screen-shot- bpms.png) and below ERROR in agent.log:

*********************************
2015-03-27 19:05:38,755 DEBUG [InventoryManager.availability-1] (rhq.core.pc.plugin.PluginComponentFactory)- Created discovery component [org.rhq.modules.plugins.jbossas7.StandaloneASDiscovery] for resource type [JBossAS7 Standalone Server]
2015-03-27 19:05:38,966 DEBUG [InventoryManager.availability-1] (rhq.core.pc.inventory.ResourceContainer$ResourceComponentInvocationHandler)- Call to [org.rhq.modules.plugins.jbossas7.StandaloneASComponent.start()] with args [[org.rhq.core.pluginapi.inventory.ResourceContext@d511816]] failed.
java.util.concurrent.ExecutionException: org.rhq.core.pluginapi.inventory.InvalidPluginConfigurationException: The original product type discovered for this server was EAP, but the server is now reporting its product type is [BPM Suite]
	at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:232)
	at java.util.concurrent.FutureTask.get(FutureTask.java:91)
	at org.rhq.core.pc.inventory.ResourceContainer$ResourceComponentInvocationHandler.invokeInNewThreadWithLock(ResourceContainer.java:650)
	at org.rhq.core.pc.inventory.ResourceContainer$ResourceComponentInvocationHandler.invoke(ResourceContainer.java:638)
	at com.sun.proxy.$Proxy47.start(Unknown Source)
	at org.rhq.core.pc.inventory.InventoryManager.activateResource(InventoryManager.java:2252)
	at org.rhq.core.pc.inventory.AvailabilityExecutor.checkInventory(AvailabilityExecutor.java:343)
	at org.rhq.core.pc.inventory.AvailabilityExecutor.startScan(AvailabilityExecutor.java:174)
	at org.rhq.core.pc.inventory.CustomScanRootAvailabilityExecutor.startScan(CustomScanRootAvailabilityExecutor.java:71)
	at org.rhq.core.pc.inventory.AvailabilityExecutor.call(AvailabilityExecutor.java:130)
	at org.rhq.core.pc.inventory.AvailabilityExecutor.call(AvailabilityExecutor.java:60)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
	at java.lang.Thread.run(Thread.java:662)
Caused by: org.rhq.core.pluginapi.inventory.InvalidPluginConfigurationException: The original product type discovered for this server was EAP, but the server is now reporting its product type is [BPM Suite]
	at org.rhq.modules.plugins.jbossas7.BaseServerComponent.validateServerAttributes(BaseServerComponent.java:285)
	at org.rhq.modules.plugins.jbossas7.BaseServerComponent.onAvailGoesUp(BaseServerComponent.java:186)
	at org.rhq.modules.plugins.jbossas7.BaseServerComponent.getAvailability(BaseServerComponent.java:175)
	at org.rhq.modules.plugins.jbossas7.BaseServerComponent.start(BaseServerComponent.java:114)
	at org.rhq.modules.plugins.jbossas7.StandaloneASComponent.start(StandaloneASComponent.java:91)
	at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocation.call(ResourceContainer.java:759)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	... 3 more
2015-03-27 19:05:38,966 DEBUG [InventoryManager.availability-1] (rhq.core.pc.inventory.InventoryManager)- Resource has a bad config, waiting for this to go away: Resource[id=10265, uuid=211d3b1b-33eb-48b9-8c88-bac5813c1919, type={JBossAS7}JBossAS7 Standalone Server, key=hostConfig: /home/pyadav/BRMS/jboss-eap-6.1/standalone/configuration/standalone.xml, name=EAP (127.0.0.1:9990), parent=localhost.localdomain, version=EAP 6.1.1.GA]
*********************************

Steps to Reproduce:
1.
2.
3.

Actual results: 
 Unable to monitor jboss eap+bpm even though I can import it to the inventory. It shows as unavailable in JON


Expected results:
JON should monitor jboss eap+bpm.

Additional info:

Comment 2 Filip Brychta 2015-04-09 14:29:54 UTC

*** This bug has been marked as a duplicate of bug 1168373 ***