rbeckman-nextgen / test-mc3

0 stars 0 forks source link

"ORA-01000: maximum open cursors exceeded" on com.mirth.connect.server.migration.ServerMigrator #4185

Closed rbeckman-nextgen closed 4 years ago

rbeckman-nextgen commented 4 years ago

I report the following blocking error to the startup of MirthConnect 3.5.1, which occurs when a large number of codetemplates is installed (in my case 280 codetemplates), With this condition, the startup of the MirtConnect service crashes with the following oracle error: "ORA-01000: maximum open cursors exceeded"

The problem is caused by the failure to close the statement, inside a loop, on the migrateSerializedData method of the com.mirth.connect.server.migration.ServerMigrator class. We have made a fix, closing the statement that performs an update query inside the loop. After performing a test with the same critical conditions, the error has been solved I report the fixed method:

/**

Imported Issue. Original Details: Jira Issue Key: MIRTH-4329 Reporter: fabryforce Created: 2018-09-20T09:09:05.000-0700

rbeckman-nextgen commented 4 years ago

OS(s) and JRE version: virtual Window 7 with JRE version 1.8.0_173 Version(s)/Build(s) to reproduce failure: mirthconnect-3.6.1.b220-windows-x64.zip Version(s)/Build(s) to verify fixes: mirthconnect-3.6.1.b226-windows-x64 Version(s)/Build(s) to verify fixes: mirthconnect-3.7.0.b2363-windows-x64 How Tested:

Observed Failure:

Imported Comment. Original Details: Author: minht Created: 2018-11-08T14:01:30.000-0800