OpenSRP connector is the backend service that pushes form submissions from client to OpenMRS via OpenMRS REST module. Being a REST backend service that pushes data to external system there is possibility that due to number of reasons it fails to push data to OpenMRS. In that case Form Submission is saved as it is and also logged as Failed Submission in error tracker module (under progress). Below are various errors thrown found in stacktrace and their possible solutions.

1) java.lang.NullPointerException at org.opensrp.connector.OpenmrsConnector......

Possible Reason:

Solutions:

2) java.lang.RuntimeException: java.io.IOException: Server returned HTTP response code: 400 for URL: http://46.101.51.199:8080/openmrs/ws/rest/v1/patient
    at org.opensrp.connector.HttpUtil.post

 Possible Reason:

Solutions: