Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-2716

Cannot submit an encounter form

    XMLWordPrintable

    Details

    • Complexity:
      Medium

      Description

      When i try to submit an encounter form, (i tested only using the xforms module)
      I get an exception with the stack trace as below:

      org.hibernate.exception.GenericJDBCException: could not insert: [org.openmrs.Encounter]
      <snip>
      	at org.openmrs.api.db.hibernate.HibernateEncounterDAO.saveEncounter(HibernateEncounterDAO.java:80)
      	at org.openmrs.api.impl.EncounterServiceImpl.saveEncounter(EncounterServiceImpl.java:198)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      <snip>
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      	at $Proxy109.saveEncounter(Unknown Source)
      	at org.openmrs.hl7.handler.ORUR01Handler.processORU_R01(ORUR01Handler.java:349)
      	at org.openmrs.hl7.handler.ORUR01Handler.processMessage(ORUR01Handler.java:141)
      	at ca.uhn.hl7v2.app.MessageTypeRouter.processMessage(MessageTypeRouter.java:52)
      	at org.openmrs.module.xforms.formentry.HL7Receiver.processMessage(HL7Receiver.java:68)
      	at org.openmrs.module.xforms.formentry.HL7InQueueProcessor.processHL7InQueue(HL7InQueueProcessor.java:63)
      	at org.openmrs.module.xforms.XformsQueueProcessor.processDoc(XformsQueueProcessor.java:314)
      	at org.openmrs.module.xforms.XformsQueueProcessor.submitXForm(XformsQueueProcessor.java:289)
      	at org.openmrs.module.xforms.XformsQueueProcessor.processXForm(XformsQueueProcessor.java:177)
      	at org.openmrs.module.xforms.download.XformDataUploadManager.queueForm(XformDataUploadManager.java:227)
      	at org.openmrs.module.xforms.download.XformDataUploadManager.processXform(XformDataUploadManager.java:90)
      	at org.openmrs.module.xforms.web.controller.XformDataUploadController.onSubmit(XformDataUploadController.java:98)
      	at org.springframework.web.servlet.mvc.SimpleFormController.processFormSubmission(SimpleFormController.java:272)
      <snip>
      	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
      Caused by: java.sql.SQLException: Field 'provider_id' doesn't have a default value
      	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)
      <snip>
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              wyclif Wyclif Luyima
              Reporter:
              dkayiwa Daniel Kayiwa
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: