Announcement

Collapse
No announcement yet.

Help in logging error from mirth.log file

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

  • Help in logging error from mirth.log file

    Hello Guys,

    I have a code template where in i have code defined to open my sql connection.
    While inserting data to my sql mirth didnt updated the DB and neither it showed any error in the dasboard.
    When i checked mirth.log file I found out

    'Unable to write errors to DB: JavaException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientC onnectionException: No operations allowed after connection close'

    it clearly states it was an issue with my sql. I wanted to know if i want to store this error in one of the other application table how to go about it?

    Your help is highly apppreciated.

    Need direction to go about it.

  • #2
    Wrap your code in try/catch block to capture these errors and act upon them as necessary. Like, you can again initiate a db call to insert the errors occurred in a separate table.
    HL7v2.7 Certified Control Specialist!

    Comment

    Working...
    X