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

Error with Synchronizing concepts on the PIH demo server

    XMLWordPrintable

    Details

      Description

      On the "Synchronize Concepts with Parent" page (http://demo.pih-emr.org:8080/openmrs/module/formimportexport/syncConceptsWithParent.form), check works, but not the synchronization.

      I have only seen this error on the demo.pih-emr.org server (Last Build: Apr 29 2008 02:31 AM Version: 1.2.04 Build 4047 Database Version: 1.2.04 Form Import/Export module 1.4.2) although it was a problem with the previous WAR and database versions 1.2.02 and 1.2.03).

      NOTE: Dave has added lots of concepts to the demo server to work around this problem. There are a total of 225 concepts that show up as "modified on this server more recently than on the parent!". I checked one of these concepts (ie. TRAC-2882) and the only difference appeared to be the date_created (one time was 2:44:26 PM EST and the other was 7:44:26 PM GMT).

      An Internal Error has Occured
      org.openmrs.api.APIException
      java.lang.RuntimeException: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update

      org.openmrs.module.formimportexport.impl.FormImportExportServiceImpl.syncWithParent(FormImportExportServiceImpl.java:315)
      org.openmrs.module.formimportexport.impl.FormImportExportServiceImpl.syncWithParent(FormImportExportServiceImpl.java:300)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:301)
      org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
      org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      $Proxy80.syncWithParent(Unknown Source)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:301)
      org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
      $Proxy80.syncWithParent(Unknown Source)
      org.openmrs.module.formimportexport.web.controller.SyncConceptsWithParentController.onSubmit(SyncConceptsWithParentController.java:86)
      org.springframework.web.servlet.mvc.SimpleFormController.processFormSubmission(SimpleFormController.java:267)
      org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:265)

        Attachments

          Activity

            People

            Assignee:
            darius Darius Jazayeri [X] (Inactive)
            Reporter:
            ball Ellen Ball
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: