Skip to content

Instantly share code, notes, and snippets.

View ssmusoke's full-sized avatar
♻️
In search of green builds

Stephen Senkomago Musoke ssmusoke

♻️
In search of green builds
View GitHub Profile
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.openmrs.module.htmlformentry.MetadataSharingExportTest
log4j:WARN No appenders could be found for logger (org.springframework.test.context.junit4.SpringJUnit4ClassRunner).
log4j:WARN Please initialize the log4j system properly.
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.438 sec <<< FAILURE!
Running org.openmrs.module.htmlformentry.HtmlFormEntryUtilTest
Exception in thread "Thread-10" Exception in thread "Thread-8" org.openmrs.module.ModuleException: Unable to run onStartup() method as Daemon
at org.openmrs.api.context.Daemon.runStartupForService(Daemon.java:231)
Caused by: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase.xml::ugandaemr-01-10-2018-1200::slubwama:
Reason: liquibase.exception.DatabaseException: Error executing SQL INSERT INTO patient_program (patient_id, program_id, date_enrolled, location_id, creator, date_created, voided, uuid)
SELECT patient_id,(SELECT program.program_id FROM program WHERE program.uuid='de5d54ae-c304-11e8-9ad0-529269fb1459') AS program,encounter_datetime AS date_enrolled,location_id,encounter.creator,NOW(),0,UUID() AS uuid FROM encounter INNER JOIN encounter_type ON(encounter_type.encounter_type_id=encounter.encounter_type) WHERE encounter_type.uuid='8d5b27bc-c2cc-11de-8d13-0010c6dffd0f' GROUP BY patient_id: Cannot add or update a child row: a foreign key constraint fails (`kamccc`.`patient_program`, CONSTRAINT `patient_in_program` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON UPDATE CASCADE):
Caused By: Error executing SQL INSERT INTO patient_program (pati
This file has been truncated, but you can view the full file.
WARN - AbstractApplicationContext.refresh(487) |2020-02-24 21:50:00,045| Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSourceServiceTarget' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'mutableResourceBundleMessageSource' while setting bean property 'activeMessageSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mutableResourceBundleMessageSource' defined in class path resource [applicationContext-service.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor#0' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'transactionInterceptor' while setting be
Caused by: java.lang.RuntimeException: org.dbunit.dataset.NoSuchColumnException: patient_identifier_type.SEARCHABLE - (Non-uppercase input column: searchable) in ColumnNameToIndexes cache map. Note that the map's column names are NOT case sensitive.
at org.openmrs.module.dataexchange.DataImporter.importData(DataImporter.java:71)
at org.openmrs.module.dataexchange.DataImporter$1.execute(DataImporter.java:44)
at org.hibernate.jdbc.WorkExecutor.executeWork(WorkExecutor.java:54)
at org.hibernate.internal.SessionImpl$2.accept(SessionImpl.java:2076)
at org.hibernate.internal.SessionImpl$2.accept(SessionImpl.java:2073)
at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.coordinateWork(JdbcCoordinatorImpl.java:313)
at org.hibernate.internal.SessionImpl.doWork(SessionImpl.java:2095)
at org.hibernate.internal.SessionImpl.doWork(SessionImpl.java:2080)
at org.openmrs.api.db.hibernate.DbSession.doWork(DbSession.java:1005)
/*!40101 SET @OLD_CHARACTER_SET_CLIENT = @@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS = @@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION = @@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE = @@TIME_ZONE */;
/*!40103 SET TIME_ZONE = '+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS = @@UNIQUE_CHECKS, UNIQUE_CHECKS = 0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS = @@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS = 0 */;
/*!40101 SET @OLD_SQL_MODE = @@SQL_MODE, SQL_MODE = 'NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES = @@SQL_NOTES, SQL_NOTES = 0 */;
HTTP Status 500 – Internal Server Error
Type Exception Report
Message Handler processing failed; nested exception is java.lang.NoClassDefFoundError: org/openmrs/module/prisonemr/fragment/controller/PrisonemrHeaderFragmentController (wrong name: org/openmrs/module/prisonemr/fragment/controller/PrisonEMRHeaderFragmentController)
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
WARN - AbstractApplicationContext.refresh(487) |2020-01-16 11:12:56,964| Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceContext$child#9' defined in URL [jar:file:/Users/ssmusoke/openmrs/prisonemr/.openmrs-lib-cache/prisonemr/prisonemr.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'prisonemr.PrisonEMRService' of type [org.springframework.transaction.interceptor.TransactionProxyFactoryBean] while setting bean property 'moduleService' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'prisonemr.PrisonEMRService' defined in URL [jar:file:/Users/ssmusoke/openmrs/prisonemr/.openmrs-lib-cache/prisonemr/prisonemr.jar!/moduleApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/openmrs/util/OpenmrsClassLoad
Process: Tinkerwell [46892]
Path: /Applications/Tinkerwell.app/Contents/MacOS/Tinkerwell
Identifier: Tinkerwell
Version: 1.2.0 (5)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Tinkerwell [46892]
User ID: 501
Date/Time: 2020-01-02 15:31:02.847 +0300
@ssmusoke
ssmusoke / FingerPrintError
Created November 1, 2019 07:38
Error starting the FIngerprint Module - new server from ugandaemrpoc:LATEST-SNAPSHOT
WARN - AbstractApplicationContext.refresh(487) |2019-11-01 10:32:08,920| Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceContext$child#9' defined in URL [jar:file:/Users/ssmusoke/openmrs/recency/.openmrs-lib-cache/ugandaemrfingerprint/ugandaemrfingerprint.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.springframework.transaction.interceptor.TransactionProxyFactoryBean#6db904fc' of type [org.springframework.transaction.interceptor.TransactionProxyFactoryBean] while setting bean property 'moduleService' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionProxyFactoryBean#6db904fc' defined in URL [jar:file:/Users/ssmusoke/openmrs/recency/.openmrs-lib-cache/ugandaemrfingerprint/ugandaemrfingerprint.jar!/moduleApplicationContext.xml]: Cannot creat
@ssmusoke
ssmusoke / ugandaemr-hackathon-2019
Created October 30, 2019 06:29
UgandaEMR 2019 Hackathon Forms Validation Rules
# SMC
# Antenatal
# Postnatal
# Maternity
# Missed Appointment and Followup FOrm