Skip to content

Instantly share code, notes, and snippets.

View kaweesi's full-sized avatar
🏠
Working from home

Kaweesi Joseph kaweesi

🏠
Working from home
View GitHub Profile
java.lang.RuntimeException: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'e4b44936-e6b7-40f6-a5d4-9e503d30083f' for key 'concept_set_uuid_index'
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)
Tests run: 9, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.655 sec <<< FAILURE!
saveAllergies_shouldCreateAllergies(org.openmrs.module.msfcore.api.FormActionServiceTest) Time elapsed: 0.341 sec <<< ERROR!
org.hibernate.AssertionFailure: null id in org.openmrs.AllergyReaction entry (don’t flush the Session after an exception occurs)
at org.hibernate.event.internal.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:77)
at org.hibernate.event.internal.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:192)
at org.hibernate.event.internal.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:152)
at org.hibernate.event.internal.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:231)
at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:102)
at org.hibernate.event.internal.DefaultAutoFlushEventListener.onAutoFlush(Defaul
[ {
"openMrsClass" : "org.openmrs.Obs",
"enabled" : false,
"title" : "Observation",
"category" : "observation",
"linkTemplates" : {
"rest" : "/ws/rest/v1/obs/{uuid}?v=full",
"fhir" : "/ws/fhir/Obs/{uuid}"
},
"feedWriter" : null
<htmlform
formUuid="06807e2b-ce97-4d65-8796-e955fcbe057d"
formEncounterType="fa6f3ff5-b784-43fb-ab35-a08ab7dbf074"
formName="Medical History"
formDescription="Personal and family history for NCD baseline consultation"
formVersion="1.1" formAddMetadata="yes"
formUILocation="patientDashboard.visitActions">
<!-- Autogenerated example form (template from 01-Nov-2010 -->
<macros>
paperFormId = (Fill this in)
2018-09-18T12:01:03.971Z - info: [worker1] stored primary response for 5ba0e8c330d100001185b524
2018-09-18T12:01:03.973Z - info: [worker1] Final status for transaction 5ba0e8c330d100001185b524 : Failed
2018-09-18T12:01:03.976Z - info: [worker1] All routes completed for transaction: 5ba0e8c330d100001185b524
2018-09-18T12:01:08.967Z - info: [worker1] HTTP socket timeout reached
2018-09-18T12:02:02.728Z - info: [worker1] starting job: generate transaction alerts, Last Ran at: Tue Sep 18 2018 12:02:02 GMT+0000 (UTC)
2018-09-18T12:02:02.741Z - info: [worker1] Job generate transaction alerts has completed
2018-09-18T12:02:02.828Z - info: [worker1] starting job: auto retry failed transactions, Last Ran at: Tue Sep 18 2018 12:02:02 GMT+0000 (UTC)
2018-09-18T12:02:02.832Z - info: [worker1] Job auto retry failed transactions has completed
2018-09-18T12:02:56.182Z - info: [worker1] starting job: transaction body culling, Last Ran at: Tue Sep 18 2018 12:02:56 GMT+0000 (UTC)
2018-09-18T12:02:56.187Z - info: [worker1] Job
AuditService.saveAuditLog. Arguments: AuditLog=AuditLog(id=null, date=Tue Sep 18 08:12:44 EAT 2018, detail=Patient: kirabo winnie - MSF-LB18.09.1, event=VIEW_PATIENT, user=admin, patient=Patient#170, provider=null, location=null, uuid=574003db-c6f6-4512-acbf-4cff2e02c7bd),
INFO - LoggingAdvice.invoke(156) |2018-09-18 08:12:44,590| Exiting method saveAuditLog
INFO - LoggingAdvice.invoke(116) |2018-09-18 08:12:48,306| In method UserService.saveUser. Arguments: User=admin,
INFO - LoggingAdvice.invoke(156) |2018-09-18 08:12:48,319| Exiting method saveUser
WARN - RestTemplate.handleResponseError(608) |2018-09-18 08:12:48,457| GET request for "http://192.168.1.100/openmrs/ws/rest/v1/encounter/0a791000-5d63-440c-8b8c-d127509dc5fa?v=full" resulted in 404 (Not Found); invoking error handler
WARN - RestTemplate.handleResponseError(608) |2018-09-18 08:12:49,805| POST request for "http://192.168.1.100/openmrs/ws/rest/v1/encounter" resulted in 500 (Internal Server Error); invoking error handler
ERROR - SyncPushServiceIm
* INFO 2018-09-12 14:23:34,174 Login attempt: admin (TwoFactorAuthenticationProvider.java [http-apr-8080-exec-7])
* INFO 2018-09-12 14:23:34,174 Login attempt: admin (TwoFactorAuthenticationProvider.java [http-apr-8080-exec-8])
* WARN 2018-09-12 14:23:34,334 Authentication event AuthenticationSuccessEvent: admin; details: org.springframework.security.web.authentication.WebAuthenticationDetails@ffff8868: RemoteIpAddress: 172.17.0.1; SessionId: null (LoggerListener.java [http-apr-8080-exec-7])
* WARN 2018-09-12 14:23:34,347 Authentication event AuthenticationSuccessEvent: admin; details: org.springframework.security.web.authentication.WebAuthenticationDetails@ffff8868: RemoteIpAddress: 172.17.0.1; SessionId: null (LoggerListener.java [http-apr-8080-exec-8])
* INFO 2018-09-12 14:23:34,386 Login attempt: admin (TwoFactorAuthenticationProvider.java [http-apr-8080-exec-3])
* WARN 2018-09-12 14:23:34,531 Authentication event AuthenticationSuccessEvent: admin; details: org.springframework.security.web.authentic
msf-postgres
root@MSF-Staging-DHIS2:~/openhim-common# docker logs openhim-core
warn: No config found for env production at path /usr/src/app/config/production.json
Needs latest SSL Root Certificate Authority data /usr/src/app/node_modules/ssl-root-cas/ssl-root-cas-latest.js
Loading latest certificates from https://mxr.mozilla.org/nss/source/lib/ckfw/builtins/certdata.txt?raw=1
2018-09-12T08:17:51.617Z - info: [master] Running OpenHIM Core JS version 4.0.5
2018-09-12T08:17:51.618Z - info: [master] Clustering the OpenHIM with 1 workers...
2018-09-12T08:17:52.009Z - info: [master] Completed database upgrade
2018-09-12T08:17:52.119Z - info: [master] worker with pid 17 is online
warn: No config found for env production at path /usr/src/app/config/production.json
root@MSF-Staging-Project:~# docker logs msf_web_1
+ DB_CREATE_TABLES=false
+ DB_AUTO_UPDATE=false
+ MODULE_WEB_ADMIN=true
+ DEBUG=true
+ cat
+ echo '------ Starting distribution -----'
+ cat /root/openmrs-distro.properties
------ Starting distribution -----
#Tue Sep 04 13:20:39 UTC 2018
ERROR - SqlExceptionHelper.logExceptions(146) |2018-09-06 10:05:31,256| Duplicate entry '9a504478-1701-49da-9d8b-3e1d12ab6c5z' for key 'idgen_identifier_source_unique_uuid'
WARN - ModuleUtil.refreshApplicationContext(935) |2018-09-06 10:05:31,264| Unable to invoke started() method on the module's activator
org.hibernate.exception.ConstraintViolationException: could not execute statement
at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:72)
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:126)
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:112)
at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:211)
at org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:96)
at org.hibernate.id.ins