Mirth Connect 3.12.0 Released!

Mirth Connect 3.12.0 is now available as an appliance update and on our GitHub page. This release includes database performance improvements, improves visual HL7 representation, message pruning, keystore handling, PDF generation, community contributions, and fixes several security vulnerabilities. This release also contains many improvements to commercial extensions. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

issue with the loading of custom jar

  • Filter
  • Time
  • Show
Clear All
new posts

  • issue with the loading of custom jar

    I have an issue with the loading of custom jar placed in <<MyMirth>>\lib on Windows 2003.
    We created a jar (MyCustom.jar) containing all our custom java classes and placed it in <<MyMirth>>\lib folder and restarted Mirth service.
    The Mirth Channel has a call to one of the custom Java class and its throwing following error.


    ERROR 2008-11-14 08:14:23,
    390 [c2eada2c-ac01-45ec-b92d-4019927a5453_source_connector._jdbcEndpoint#-1109189276.receiver.1]
    com.webreach.mirth.connectors.jdbc.JdbcMessageRece iver:
    org.mozilla.javascript.EcmaError: TypeError: loadMasterConfig is not a function,
    it is org.mozilla.javascript.NativeJavaPackage. (4884d05e-34da-458a-ac3e-09161ba6a499#2).


    This works fine on my local machine (Windows XP) but is failing on the Production machine (Windows 2003).

    Does any other services or process effects the Mirth from accessing the custom jar?

    Appreciate any help on this.


  • #2
    Re:issue with the loading of custom jar

    can you post the javascript that is using the jar ?


    • #3
      Re:issue with the loading of custom jar

      var prop = terConfig();
      var constants;
      var vaProfile = prop.getProperty(constants.VA_PROFILE);
      var driver = prop.getProperty(vaProfile + constants.DRIVER);
      var url = prop.getProperty(vaProfile + constants.URL);
      var userName = prop.getProperty(vaProfile + constants.USER);
      var password = prop.getProperty(vaProfile + constants.PASSWORD);
      var mapper = new'1');
      var query= mapper.getQuery();
      var dbConn = DatabaseConnectionFactory.createDatabaseConnection (driver,url,userName,password);
      var result = dbConn.executeCachedQuery(query);
      return result;

      Post edited by: star123, at: 11/16/2008 22:13