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

Attempting to update HAPI from 0.5 to 2.0 via an OMRS module results in a ClassCastException exception

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • TBD
    • Resolution: Won't Fix
    • None
    • None
    • HL7
    • None
    • Undetermined

    Description

      I'm trying to use OpenMRS 1.9.0 (which uses HAPI version 0.5), and upgrade this to HAPI 2.0 via a module.
      For this, i'm introducing the dependency

      <dependency>
      <groupId>ca.uhn.hapi</groupId>
      <artifactId>hapi-base</artifactId>
      <version>2.0</version>

      to the module pom.xml, so that the newer version of the module will be loaded into OpenMRS. However, when I try to start this module using OpenMRS 190, the following exception is thrown,

      org.openmrs.module.ModuleException: Error parsing diff sqldiff.xml file Module: Regenstrief Hl7 Adapter Module
      at org.openmrs.module.SqlDiffFileParser.getSqlDiffs(SqlDiffFileParser.java:103)
      at org.openmrs.module.ModuleFactory.startModuleInternal(ModuleFactory.java:526)
      at org.openmrs.api.context.Daemon$1.run(Daemon.java:57)
      Caused by: java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory
      at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:121)
      at org.openmrs.module.SqlDiffFileParser.getSqlDiffs(SqlDiffFileParser.java:90)
      ... 2 more

      Gliffy Diagrams

        Attachments

          Activity

            People

              Unassigned Unassigned
              surangak Suranga Kasthurirathne
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: