Bug 1018270 - Switchyard plugin throws errors when Managed Server on EAP6 Domain is being discovered
Summary: Switchyard plugin throws errors when Managed Server on EAP6 Domain is being d...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Fuse Service Works 6
Classification: JBoss
Component: SwitchYard
Version: 6.0.0 GA
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ER8
: 6.0.0
Assignee: kconner
QA Contact: Tomas Plevko
URL:
Whiteboard:
: 1031819 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-11 15:18 UTC by Libor Zoubek
Modified: 2015-11-02 00:43 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SWITCHYARD-1798 0 Major Closed rhq plugin generates errors in agent log during discovery of EAP domain 2016-09-14 09:27:38 UTC

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


Note You need to log in before you can comment on or make changes to this bug.