Bug 1018270

Summary: Switchyard plugin throws errors when Managed Server on EAP6 Domain is being discovered
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Libor Zoubek <lzoubek>
Component: SwitchYardAssignee: kconner
Status: CLOSED CURRENTRELEASE QA Contact: Tomas Plevko <tplevko>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.0 GACC: ckannan, ldimaggi, mfoley, rhatlapa, soa-p-jira, theute, vnguyen
Target Milestone: ER8   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Libor Zoubek 2013-10-11 15:18:47 UTC
Description of problem: Switchyard plugin is polluting agent.log when agent discoveres managed server on EAP6 domain.


Version-Release number of selected component (if applicable):
JON 3.2.ER3

How reproducible: always


Steps to Reproduce:
1. Import EAP6 running in domain mode 
2. observe agent.log

Actual results:

WARN  [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Failure during discovery for [Deployments] Resources - failed after 0 ms.
java.lang.Exception: Discovery component invocation failed.
        at org.rhq.core.pc.util.DiscoveryComponentProxyFactory$ComponentInvocationThread.call(DiscoveryComponentProxyFactory.java:309)
        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:679)
Caused by: java.lang.ClassCastException: org.rhq.modules.plugins.jbossas7.ManagedASComponent cannot be cast to org.rhq.modules.plugins.jbossas7.BaseServerComponent
        at org.switchyard.rhq.plugin.SwitchYardDiscoveryComponent.discoverResources(SwitchYardDiscoveryComponent.java:67)
        at sun.reflect.GeneratedMethodAccessor62.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.util.DiscoveryComponentProxyFactory$ComponentInvocationThread.call(DiscoveryComponentProxyFactory.java:305)
        ... 5 more


Expected results: Although those exceptions are probably harmless, should not happen


Additional info:

Comment 2 JBoss JIRA Server 2013-10-31 02:39:25 UTC
Kevin Conner <kevin.conner> made a comment on jira SWITCHYARD-1798

PR https://github.com/jboss-switchyard/release/pull/309

Comment 3 JBoss JIRA Server 2013-11-04 12:23:37 UTC
Keith Babo <kbabo> updated the status of jira SWITCHYARD-1798 to Resolved

Comment 4 JBoss JIRA Server 2013-11-04 12:23:37 UTC
Keith Babo <kbabo> made a comment on jira SWITCHYARD-1798

pushed

Comment 5 Mike Foley 2013-11-18 21:14:09 UTC
*** Bug 1031819 has been marked as a duplicate of this bug. ***

Comment 6 Tomas Plevko 2014-01-14 11:37:49 UTC
Verified.

JON 3.2GA + jon-plugin-pack-fsw-3.2.0.GA-8 (switchyard-rhq-plugin-1.1.1-p2-redhat-2) + EAP6 running in domain mode

Comment 7 JBoss JIRA Server 2014-06-16 23:53:49 UTC
Keith Babo <kbabo> updated the status of jira SWITCHYARD-1798 to Closed