Bug 535794 (RHQ-2453)
| Summary: | CLI throws ClassCastException on platform.viewProcessList() | ||
|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | Charles Crouch <ccrouch> |
| Component: | CLI | Assignee: | Simeon Pinder <spinder> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Corey Welton <cwelton> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 1.3 | CC: | cwelton, hbrock |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| URL: | http://jira.rhq-project.org/browse/RHQ-2453 | ||
| Whiteboard: | |||
| Fixed In Version: | 2.4 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-08-12 16:53:53 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 557793 | ||
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-2453 Issue: Added conditional logic to handle PropertyMap differently than Map. Assuming they were same lead to class cast exception. -Only did property translation for simple process listing case as consistent with current code. PropertyMap can be arbitrarily complex. The full and correct solution here for how to display arbitrarily complicated values is non-trivial. Behavior: With code applied, viewProcessList() operates correctly and mimics UI listing for the same. Fix: Svn Committed revision 5276 Git hash: c78a781e91450c6f85a32f52396cb394faddf967 QA Verified -- I think viewProcessList now seems to work.
Invoking operation viewProcessList
Configuration [15045] - null
processList [91] {
pid name size userTime kernelTime
------------------------------------------------------------------------------------------------------------------------------------------
31942 dhclient 2363392 570 560
31241 java 353734656 52210 2200
30685 bash 4775936 60 30
30683 sshd 10346496 70 180
29806 ntpd 4493312 540 1480
28815 bash 4775936 80 40
28772 screen 5349376 60 60
23590 pdflush 0 0 3440
21990 postgres 11005952 1220 3610
21989 postgres 98697216 33070 40670
21987 postgres 11010048 960 4270
21981 postgres 98562048 2300 11460
14697 httpd 54951936 0 0
14696 httpd 54951936 0 0
14695 httpd 54951936 0 0
14694 httpd 54951936 0 0
14693 httpd 54951936 0 0
14692 httpd 54951936 0 0
14691 httpd 54951936 0 0
14690 httpd 54951936 0 0
14689 perl 5537792 100 10
12218 java 1432489984 1343130 318030
12208 bash 4591616 10 0
12160 pdflush 0 0 2720
10444 httpd 54951936 16090 10960
6030 postgres 101388288 520320 14290
6029 postgres 101392384 467510 13860
6028 postgres 101388288 493670 14390
6027 postgres 101376000 504140 14750
6026 postgres 101519360 521440 14650
6025 postgres 101457920 530860 14900
6024 postgres 101380096 458890 13800
5961 postgres 99942400 13080 10440
5923 java 290304000 6250140 347400
3054 gam_server 2879488 26670 20130
3038 python 28704768 199730 20130
2987 agetty 1712128 0 0
2986 agetty 1712128 0 0
2958 smartd 3592192 150 490
2843 hald-addon-acpi 2060288 0 0
2835 hald-runner 3227648 0 0
2834 hald 5689344 10740 2400
2815 rhnsd 3784704 10 2880
2800 atd 2318336 220 790
2744 xfs 3579904 80 140
2720 crond 5410816 1230 6380
2662 gpm 1941504 0 30
2226 java 2088857600 69177050 16406910
2195 bash 4591616 10 0
2115 sendmail.sendmail 8323072 360 1720
2100 sendmail.sendmail 9412608 6590 12810
1741 xinetd 2785280 0 0
1706 sshd 7299072 10 670
1683 snmptrapd 15835136 2360 3110
1672 snmpd 170008576 221450 949180
1661 acpid 1703936 0 0
1642 automount 12730368 5010 11610
1602 dbus-daemon 13295616 112940 28310
1585 rpc.idmapd 5640192 1050 1330
1578 rpciod/0 0 0 0
1547 rpc.statd 1896448 10 0
1523 portmap 1851392 0 0
1511 mcstransd 2211840 2890 11900
1487 klogd 1712128 0 0
1484 syslogd 1761280 1990 11480
1474 restorecond 12128256 210 380
1457 audispd 12357632 2130 1840
1455 auditd 13864960 2580 8060
993 kjournald 0 0 0
970 kmpath_handlerd 0 0 0
969 kmpathd/0 0 0 0
372 udevd 2875392 170 1930
343 kauditd 0 0 1130
316 kjournald 0 0 407390
305 ksnapd 0 0 0
296 kstriped 0 0 0
280 kpsmoused 0 0 0
126 aio/0 0 0 0
125 kswapd0 0 0 19210
67 kseriod 0 0 0
65 khubd 0 0 0
62 cqueue/0 0 0 0
11 kacpid 0 0 0
10 kblockd/0 0 0 23080
7 kthread 0 0 10
6 khelper 0 0 0
5 events/0 0 0 250
4 watchdog/0 0 0 0
3 ksoftirqd/0 0 0 160
2 migration/0 0 0 0
1 init 2113536 1090 6300
91 rows
}
Mass-closure of verified bugs against JON. |
rhqadmin@localhost:7080$ findResources('dowoods.fc10') id name version resourceType ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 10004 dowoods.fc10 JBossEAP 5.0.0.Branch default2 (0.0.0.0:1199) 5.0.0.Branch JBossAS Server 10003 dowoods.fc10 Jopr Server, JBossAS 4.2.3.GA default (0.0.0.0:2099) 4.2.3.GA JBossAS Server 10005 dowoods.fc10 JBossEAP 5.0.0.Branch default (0.0.0.0:1099) 5.0.0.Branch JBossAS Server 10013 dowoods.fc10 File System (local) / File System 10014 dowoods.fc10 File System (local) /boot File System 10084 dowoods.fc10 Embedded JBossWeb Server 2.0.1.GA (0.0.0.0) 2.0.1.GA Embedded Tomcat Server 10001 dowoods.fc10 Linux 2.6.27.30-170.2.82.fc10.i686 Linux 10579 dowoods.fc10 JBossEAP 4.3.0.GA default (0.0.0.0:1099) 4.3.0.GA JBossAS Server 10580 dowoods.fc10 Embedded JBossWeb Server 2.0.0.GA_CP05 (0.0.0.0) 2.0.0.GA_CP05 Embedded Tomcat Server 10002 dowoods.fc10 RHQ Agent 1.3.0-SNAPSHOT RHQ Agent 10 rows var platform = ProxyFactory.getResource(10001) platform.viewProcessList() Configuration [0] - null processList [208] { java.lang.ClassCastException: org.rhq.core.domain.configuration.PropertyMap cannot be cast to java.util.Map at org.rhq.enterprise.client.TabularWriter.consistentMaps(TabularWriter.java:372) at org.rhq.enterprise.client.TabularWriter.print(TabularWriter.java:420) at org.rhq.enterprise.client.TabularWriter.print(TabularWriter.java:405) at org.rhq.enterprise.client.TabularWriter.print(TabularWriter.java:127) at org.rhq.enterprise.client.commands.ScriptCommand.executeScriptFile(ScriptCommand.java:314) at org.rhq.enterprise.client.commands.ScriptCommand.execute(ScriptCommand.java:124) at org.rhq.enterprise.client.ClientMain.executePromptCommand(ClientMain.java:294) at org.rhq.enterprise.client.ClientMain$1.run(ClientMain.java:248) at java.lang.Thread.run(Thread.java:619) rhqadmin@localhost:7080$