Bug 1431100

Summary: "java.lang.IllegalArgumentException: NaN" is logged in the server.log file when trying to store BaseLine values in the database
Product: [Other] RHQ Project Reporter: bkramer <bkramer>
Component: DatabaseAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.12CC: hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
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:
Bug Depends On:    
Bug Blocks: 1431097    

Description bkramer 2017-03-10 11:59:23 UTC
Description of problem:

The following error is logged every time when RHQ tries to add NaN value in the database:
****************************
ERROR [org.jboss.as.ejb3.invocation] (RHQScheduler_Worker-1) JBAS014134: EJB Invocation failed on component MeasurementBaselineManagerBean for method public abstract long org.rhq.enterprise.server.measurement.MeasurementBaselineManagerLocal.calculateAutoBaselines(long,long): javax.ejb.EJBException: java.lang.RuntimeException: Auto-calculation failure
...
Caused by: java.lang.RuntimeException: Auto-calculation failure
...
Caused by: javax.ejb.EJBTransactionRolledbackException: Transaction rolled back
...
Caused by: javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction.
...
Caused by: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not insert: [org.rhq.core.domain.measurement.MeasurementBaseline]
...
Caused by: java.lang.IllegalArgumentException: NaN
****************************

Version-Release number of selected component (if applicable):
RHQ 4.12

How reproducible:
Sometimes (not clear in what situations NaN values are generated)

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info: