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
ERROR - SyncPushServiceImpl.readDataAndPushToParent(73) |2018-09-04 19:59:06,856| Problem with pushing to parent
java.lang.ClassCastException
INFO - LoggingAdvice.invoke(116) |2018-09-04 19:59:06,858| In method SyncAuditService.saveAuditMessageDuringSync. Arguments: AuditMessage=AuditMessage{uuid='55e87b7f-cba9-4ee7-8675-6fd0c1669184', id=null, success=false, timestamp=Tue Sep 04 19:59:06 EAT 2018, resourceName='audit_message', usedResourceUrl='http://192.168.1.100/openmrs/ws/rest/sync2/messages', availableResourceUrls='{
"rest" : "/ws/rest/sync2/messages/17ebbb99-5eb2-4a07-851b-d6183a1249bd"
}', parentUrl='http://192.168.1.100/openmrs', localUrl='http://192.168.1.100:8070/openmrs-standalone', details='java.lang.ClassCastException
', action='CREATED', operation='PUSH', linkType='rest', nextMessageUuid='null', creatorInstanceId='standalone', voided='false'},
INFO - LoggingAdvice.invoke(156) |2018-09-04 19:59:06,869| Exiting method saveAuditMessageDuringSync
INFO - LoggingAdvice.invoke(116) |2018-09-04 19:5
root@8c2eb78e50cb:/usr/local/tomcat# cat logs/catalina.2018-09-03.log
Sep 03, 2018 7:20:18 AM org.apache.coyote.http11.AbstractHttp11Processor process
INFO: Error parsing HTTP request header
Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
at org.apache.coyote.http11.InternalAprInputBuffer.parseRequestLine(InternalAprInputBuffer.java:240)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1049)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2555)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2544)
WARN - RestTemplate.handleResponseError(608) |2018-08-29 17:34:01,246| GET request for "http://192.168.1.100:8070/openmrs-standalone/ws/rest/v1/encounter/7401d096-c3bc-4bfe-9cce-2e8e6e9544ec?v=full" resulted in 404 (Not Found); invoking error handler
WARN - RestTemplate.handleResponseError(608) |2018-08-29 17:34:03,218| POST request for "http://192.168.1.100:8070/openmrs-standalone/ws/rest/v1/encounter" resulted in 400 (Bad Request); invoking error handler
ERROR - SyncPullServiceImpl.pullDataFromParentAndSave(78) |2018-08-29 17:34:03,223| Problem with pulling from parent
org.openmrs.module.sync2.api.exceptions.SyncException: Object posting error. Code: 400. Details:
{"error":{"message":"Invalid Submission","code":"webservices.rest.error.invalid.submission","globalErrors":[],"fieldErrors":{"encounterDatetime":[{"code":"Encounter.datetimeShouldBeBeforeCurrent","message":"The encounter datetime should be before the current date."}]}}}
at org.openmrs.module.sync2.api.sync.SyncClient.pushData(SyncClient.java:70)
Caused by: org.springframework.web.client.HttpClientErrorException: 400 Bad Request
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:91)
at org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:615)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:573)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:529)
at org.springframework.web.client.RestTemplate.postForEntity(RestTemplate.java:356)
at org.openmrs.module.sync2.client.rest.RestClient.createObject(RestClient.java:42)
at org.openmrs.module.sync2.api.sync.SyncClient.pushData(SyncClient.java:68)
... 88 more
INFO - LoggingAdvice.invoke(116) |2018-08-29 09:41:00,285| In method SyncAuditService.saveAuditMessageDuringSync. Arguments: AuditMessage=AuditMessage{uuid='81d3079b-7146-4f0a-8eff-77ddbbb48b76', id=null, success=false, timestamp=Wed Aug 29 09:40:59 EAT 2018, resourceName='patient', usedResourceUrl='http://192.168.
INFO - LoggingAdvice.invoke(156) |2018-08-28 17:29:50,275| Exiting method updateGlobalProperty
INFO - LoggingAdvice.invoke(116) |2018-08-28 17:29:50,284| In method AdministrationService.saveGlobalProperty. Arguments: GlobalProperty=property: msfcore.started value: false,
INFO - LoggingAdvice.invoke(156) |2018-08-28 17:29:50,299| Exiting method saveGlobalProperty
INFO - LoggingAdvice.invoke(116) |2018-08-28 17:29:50,779| In method AdministrationService.saveGlobalProperty. Arguments: GlobalProperty=property: referencedemodata.started value: false,
INFO - LoggingAdvice.invoke(156) |2018-08-28 17:29:50,787| Exiting method saveGlobalProperty
INFO - LoggingAdvice.invoke(116) |2018-08-28 17:29:50,957| In method AdministrationService.saveGlobalProperty. Arguments: GlobalProperty=property: referencemetadata.started value: false,
INFO - LoggingAdvice.invoke(156) |2018-08-28 17:29:50,971| Exiting method saveGlobalProperty
INFO - LoggingAdvice.invoke(116) |2018-08-28 17:29:51,080| In method AdministrationService.saveG
Marker - 28 Aug 2018, 15:52:06
WARN - RestTemplate.handleResponseError(608) |2018-08-28 15:56:02,618| GET request for "http://192.168.1.100:8070/openmrs-standalone/ws/rest/v1/patient/9b3acf5a-d803-4830-87ca-5fdeb01eb254?v=full" resulted in 404 (Not Found); invoking error handler
WARN - RestTemplate.handleResponseError(608) |2018-08-28 15:56:02,706| POST request for "http://192.168.1.100:8070/openmrs-standalone/ws/rest/v1/patient" resulted in 400 (Bad Request); invoking error handler
ERROR - SyncPullServiceImpl.pullDataFromParentAndSave(78) |2018-08-28 15:56:02,712| Problem with pulling from parent
org.openmrs.module.sync2.api.exceptions.SyncException: Object posting error. Code: 400. Details:
{"error":{"message":"[The person property is missing]","code":"org.openmrs.module.webservices.rest.web.v1_0.resource.openmrs1_8.PatientResource1_8:233","detail":"org.openmrs.module.webservices.rest.web.response.ConversionException: The person property is missing\n\tat org.openmrs.module.webservices.rest.web.v1_0.resour
Marker - 26 Aug 2018, 15:35:25
WARN - RestTemplate.handleResponseError(608) |2018-08-26 15:35:50,830| GET request for "http://192.168.1.100:8070/openmrs-standalone/ws/rest/v1/visit/9f4600b1-5930-4d42-969d-6e6e0edee531?v=full" resulted in 404 (Not Found); invoking error handler
WARN - RestTemplate.handleResponseError(608) |2018-08-26 15:36:04,087| POST request for "http://192.168.1.100:8070/openmrs-standalone/ws/rest/v1/visit/9f4600b1-5930-4d42-969d-6e6e0edee531" resulted in 404 (Not Found); invoking error handler
ERROR - SyncPullServiceImpl.pullDataFromParentAndSave(78) |2018-08-26 15:36:04,100| Problem with pulling from parent
org.openmrs.module.sync2.api.exceptions.SyncException: Object posting error. Code: 404. Details:
{"error":{"message":"Object with given uuid doesn't exist [null]","code":"org.openmrs.module.webservices.rest.web.resource.impl.DelegatingCrudResource:117","detail":"org.openmrs.module.webservices.rest.web.response.ObjectNotFoundException\n\tat org.openmrs.module.webservices.rest.web.reso
INFO - LoggingAdvice.invoke(116) |2018-08-26 12:44:50,847| In method VisitService.saveVisit. Arguments: Visit=Visit #null,
ERROR - SqlExceptionHelper.logExceptions(146) |2018-08-26 12:44:50,858| Duplicate entry '79efeded-bcf1-469b-a9b9-6e239c2ae2ec' for key 'uuid'
INFO - LoggingAdvice.invoke(156) |2018-08-26 12:44:50,869| Exiting method saveVisit
ERROR - BaseRestController.handleException(115) |2018-08-26 12:44:50,873| could not execute statement
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
web_1 | ERROR - SyncPullTask.execute(30) |2018-08-24 04:56:03,024| Error while Sync 2.0 Pulling from parent:
web_1 | org.openmrs.module.sync2.api.exceptions.SyncException: Error during processing atomfeeds for category location:
web_1 | at org.openmrs.module.sync2.api.utils.SyncUtils.readFeedByCategory(SyncUtils.java:158)
web_1 | at org.openmrs.module.sync2.client.reader.impl.ParentFeedReaderImpl.readAllFeedsForPull(ParentFeedReaderImpl.java:39)
web_1 | at org.openmrs.module.sync2.api.scheduler.SyncPullTask.execute(SyncPullTask.java:27)
web_1 | at org.openmrs.scheduler.tasks.TaskThreadedInitializationWrapper.execute(TaskThreadedInitializationWrapper.java:68)
web_1 | at org.openmrs.scheduler.timer.TimerSchedulerTask.execute(TimerSchedulerTask.java:94)
web_1 | at org.openmrs.api.context.Daemon$2.run(Daemon.java:132)
web_1 | Caused by: org.ict4h.atomfeed.client.exceptions.AtomFeedClientException: org.ict4h.atomfeed.client.exceptions.AtomFeedClientException: java.lang.IllegalArgumentException: URI
org.openmrs.module.webservices.rest.web.response.ConversionException: patient on class org.openmrs.Visit
at org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingResource.setProperty(BaseDelegatingResource.java:801)
at org.openmrs.module.webservices.rest.web.v1_0.resource.openmrs1_9.VisitResource1_9Test.setProperty_shouldConvertPropertyWell(VisitResource1_9Test.java:91)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)