web stats
Help in logging error from mirth.log file - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 08-29-2018, 11:56 AM
lovelate lovelate is offline
Mirth Newb
Join Date: Sep 2017
Posts: 11
lovelate is on a distinguished road
Exclamation 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.
Reply With Quote
Old 08-30-2018, 01:45 AM
siddharth siddharth is offline
Mirth Guru
Join Date: Feb 2013
Posts: 841
siddharth is on a distinguished road

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!
Reply With Quote

database, error logging, my sql

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 06:35 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation