Sonar metrics for OpenMRS Core Master

Build: #469 failed

Job: Sonar Full Analysis failed

Stages & jobs

  1. Sonar Analysis

Test results

  • 3,389 tests in total
  • 5 tests failed
  • 5 failures are new
  • 32 tests were quarantined / skipped
  • 10 minutes taken in total.

Build 469 has the following 5 errors: 5 new failure(s) occurred since the previous build.

New test failures 5
Status Test Duration
Collapse Failed SchedulerFormControllerTest onSubmit_shouldNotRescheduleAnExecutingTask History
< 1 sec
org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "CONSTRAINT_INDEX_24 ON PUBLIC.SCHEDULER_TASK_CONFIG(UUID) VALUES ('29754c38-6711-11e0-9d74-18a905e044dc', 22)"; SQL statement: insert into SCHEDULER_TASK_CONFIG (TASK_CONFIG_ID, NAME, DESCRIPTION, SCHEDULABLE_CLASS, REPEAT_INTERVAL, STARTED, START_ON_STARTUP, UUID, CREATED_BY, DATE_CREATED) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [23505-183]
org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "CONSTRAINT_INDEX_24 ON PUBLIC.SCHEDULER_TASK_CONFIG(UUID) VALUES ('29754c38-6711-11e0-9d74-18a905e044dc', 22)"; SQL statement:
insert into SCHEDULER_TASK_CONFIG (TASK_CONFIG_ID, NAME, DESCRIPTION, SCHEDULABLE_CLASS, REPEAT_INTERVAL, STARTED, START_ON_STARTUP, UUID, CREATED_BY, DATE_CREATED) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [23505-183]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
	at org.h2.message.DbException.get(DbException.java:179)
	at org.h2.message.DbException.get(DbException.java:155)
	at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:102)
	at org.h2.mvstore.db.MVSecondaryIndex.add(MVSecondaryIndex.java:203)
(49 more lines...)
Collapse Failed TaskHelperTest getScheduledTaskDefinition_shouldReturnATaskThatHasBeenStarted History
< 1 sec
org.hibernate.NonUniqueResultException: query did not return a unique result: 2
	at org.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:899)
	at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:369)
	at org.openmrs.scheduler.db.hibernate.HibernateSchedulerDAO.getTaskByName(HibernateSchedulerDAO.java:93)
	at org.openmrs.scheduler.timer.TimerSchedulerServiceImpl.getTaskByName(TimerSchedulerServiceImpl.java:390)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
(64 more lines...)
Collapse Failed TaskHelperTest getUnscheduledTaskDefinition_shouldReturnATaskThatHasNotBeenStarted History
< 1 sec
org.hibernate.NonUniqueResultException: query did not return a unique result: 2
	at org.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:899)
	at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:369)
	at org.openmrs.scheduler.db.hibernate.HibernateSchedulerDAO.getTaskByName(HibernateSchedulerDAO.java:93)
	at org.openmrs.scheduler.timer.TimerSchedulerServiceImpl.getTaskByName(TimerSchedulerServiceImpl.java:390)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
(64 more lines...)
Collapse Failed TaskHelperTest waitUntilTaskIsExecuting_shouldRaiseATimeoutExceptionWhenTheTimeoutIsExceeded History
< 1 sec
java.lang.Exception: Unexpected exception, expected<java.util.concurrent.TimeoutException> but was<org.hibernate.NonUniqueResultException>
	at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:28)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:73)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
	at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:73)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
(68 more lines...)
Collapse Failed TaskHelperTest waitUntilTaskIsExecuting_shouldWaitUntilTaskIsExecuting History
< 1 sec
org.hibernate.NonUniqueResultException: query did not return a unique result: 2
	at org.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:899)
	at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:369)
	at org.openmrs.scheduler.db.hibernate.HibernateSchedulerDAO.getTaskByName(HibernateSchedulerDAO.java:93)
	at org.openmrs.scheduler.timer.TimerSchedulerServiceImpl.getTaskByName(TimerSchedulerServiceImpl.java:390)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
(64 more lines...)