Build: #141 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

Job result summary

Completed
Duration
7 minutes
Revision
9f8c0163ef0d9b923b6f89333ae31b74e5bccc23 9f8c0163ef0d9b923b6f89333ae31b74e5bccc23
Total tests
2184
Fixed in
#142 (Code changes detected)

Tests

  • 2,184 tests in total
  • 4 tests failed
  • 4 failures are new
  • 7 minutes taken in total.
New test failures 4
Status Test Duration
Collapse Failed ProgramWorkflowServiceTest saveProgram_shouldUpdateDetachedProgram History
< 1 sec
org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [org.openmrs.Program#1]
	at org.hibernate.engine.StatefulPersistenceContext.checkUniqueness(StatefulPersistenceContext.java:638)
	at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performUpdate(DefaultSaveOrUpdateEventListener.java:305)
	at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsDetached(DefaultSaveOrUpdateEventListener.java:246)
	at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:112)
	at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)
	at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:685)
	at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:677)
(78 more lines...)
Collapse Failed ProgramValidatorTest validate_shouldFailValidationIfDescriptionIsNullOrEmptyOrWhitespace History
< 1 sec
java.lang.NullPointerException
	at org.openmrs.Concept.isNamed(Concept.java:1033)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
	at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
	at org.openmrs.Concept_$$_javassist_16.isNamed(Concept_$$_javassist_16.java)
(77 more lines...)
Collapse Failed ProgramValidatorTest validate_shouldFailValidationIfNameIsNullOrEmptyOrWhitespace History
< 1 sec
java.lang.NullPointerException
	at org.openmrs.Concept.isNamed(Concept.java:1033)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
	at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
	at org.openmrs.Concept_$$_javassist_16.isNamed(Concept_$$_javassist_16.java)
(77 more lines...)
Collapse Failed ProgramValidatorTest validate_shouldFailValidationIfProgramNameAlreadyInUse History
< 1 sec
java.lang.AssertionError
	at org.junit.Assert.fail(Assert.java:86)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.junit.Assert.assertTrue(Assert.java:52)
	at org.openmrs.validator.ProgramValidatorTest.validate_shouldFailValidationIfProgramNameAlreadyInUse(ProgramValidatorTest.java:59)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
(32 more lines...)

Error summary

The build generated some errors. See the full build log for more details.

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to /opt/bamboo-agent/agent2-home/xml-data/build-dir/TRUNK-LATEST-JOB1/api/target/surefire-reports for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch