Announcement

Collapse

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

org.mozilla.javascript.Undefined error using pg

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • org.mozilla.javascript.Undefined error using pg

    I'm stuck on what is probably something very simple - configuring a database reader. I'm using a Postgresql backend.

    Code:
    var dbConn = DatabaseConnectionFactory.createDatabaseConnection('org.postgresql.Driver','jdbc:«»postgresql://x.x.x.x:5432/MEDPLUS','postgres','****');
    
    
    var result = dbConn.executeCachedQuery("select 1 as patientid"«»);
    // YOUR CODE GOES HERE 
    
    dbConn.close();
    
    // You may access this result with $('column_name')
    return result;
    I get:

    [2008-04-28 12:33:17,958] ERROR (com.webreach.mirth.connectors.jdbc.JdbcMessageRec eiver:240): Got a result of: [email protected]


    I'm sure the database connection parameters are correct. I've even tried updating to the JDBC4 postgresql driver.

    Any tips would be greatly appreciated.

    Thanks,
    --
    James

  • #2
    Rerg.mozilla.javascript.Undefined error using pg

    Sorry to post and then solve once again.. I did spend quite some time on this before posting though.
    After disabling the channel, redeploying it, then re-enabling the channel and redeploying again it began working.

    Comment

    Working...
    X