This service will be undergoing maintenance at 00:00 UTC, 2016-08-01. It is expected to last about 1 hours
Bug 728965 - CLI: Division by zero in TabularWriter.print()
CLI: Division by zero in TabularWriter.print()
Status: NEW
Product: RHQ Project
Classification: Other
Component: CLI (Show other bugs)
Unspecified Unspecified
medium Severity unspecified (vote)
: ---
: ---
Assigned To: RHQ Project Maintainer
Mike Foley
Depends On:
  Show dependency treegraph
Reported: 2011-08-08 09:58 EDT by Ondřej Žižka
Modified: 2011-10-06 14:45 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:

Attachments (Terms of Use)

  None (edit)
Description Ondřej Žižka 2011-08-08 09:58:42 EDT$ var criteria = new ResourceCriteria();$ criteria.addFilterInventoryStatus( InventoryStatus.COMMITTED );$ criteria.addFilterResourceCategory( ResourceCategory.PLATFORM );$ criteria.addFilterResourceTypeName("Linux");$ var linuxesList = ResourceManager.findResourcesByCriteria(criteria);$ println("Uninventorizing Linux: " + linuxesList.get(0) );
Uninventorizing Linux: Resource[id=10701, type=Linux,,, parent=<null>, version=Linux 2.6.32-131.0.15.el6.i686]$$ ResourceManager.uninventoryResources( [linuxesList.get(0)] ); Cannot convert to int[]
ResourceManager.uninventoryResources( [linuxesList.get(0)] );
^$ ResourceManager.uninventoryResources( [linuxesList.get(0).id] );
java.lang.ArithmeticException: / by zero
        at org.rhq.enterprise.client.TabularWriter.print(
        at org.rhq.enterprise.client.TabularWriter.print(
        at org.rhq.enterprise.client.TabularWriter.print(
        at org.rhq.enterprise.client.commands.ScriptCommand.execute(
        at org.rhq.enterprise.client.ClientMain.executePromptCommand(
        at org.rhq.enterprise.client.ClientMain$

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