JBoss ON log contains "Auto-calculation failure" error messages caused by Underflow or NaN IllegalArgumentException
Issue
-
Server logs contain following error during calculation of metric baselines:
ERROR [org.rhq.enterprise.server.scheduler.jobs.DataCalcJob] (RHQScheduler_Worker-4) Failed to auto-calculate baselines. Cause: javax.ejb.EJBException: java.lang.RuntimeException: Auto-calculation failure: javax.ejb.EJBException: java.lang.RuntimeException: Auto-calculation failure Caused by: org.hibernate.exception.GenericJDBCException: could not insert: [org.rhq.core.domain.measurement.MeasurementBaseline] Caused by: java.lang.IllegalArgumentException: Underflow -
server.log contains error similar to:
ERROR [org.jboss.as.ejb3.invocation] (RHQScheduler_Worker-2) JBAS014134: EJB Invocation failed on component MeasurementBaselineManagerBean for method public abstract void org.rhq.enterprise.server.measurement.MeasurementBaselineManagerLocal.saveNewBaselines(java.util.Set,java.util.Map): 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: org.hibernate.exception.GenericJDBCException: could not insert: [org.rhq.core.domain.measurement.MeasurementBaseline] ... Caused by: java.sql.SQLException: Error ... Caused by: java.lang.IllegalArgumentException: NaN at oracle.jdbc.driver.OraclePreparedStatement.setDoubleInternal(OraclePreparedStatement.java:5621) [ojdbc6-12.1.0.1.0.jar:12.1.0.1.0] at oracle.jdbc.driver.OraclePreparedStatement.setDouble(OraclePreparedStatement.java:5596) [ojdbc6-12.1.0.1.0.jar:12.1.0.1.0] at oracle.jdbc.driver.OraclePreparedStatementWrapper.setDouble(OraclePreparedStatementWrapper.java:193) [ojdbc6-12.1.0.1.0.jar:12.1.0.1.0] at org.jboss.jca.adapters.jdbc.CachedPreparedStatement.setDouble(CachedPreparedStatement.java:179) at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.setDouble(WrappedPreparedStatement.java:287) ... 265 more
Environment
- Red Hat JBoss Operations Network (ON) 3.3
- Oracle Database
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
