web stats
Mirth Stack Size Bug - Mirth Community

Go Back   Mirth Community > Mirth Connect > Development

Thread Tools Display Modes
Old 12-08-2017, 07:48 AM
odo odo is offline
OBX.3 Kenobi
Join Date: Feb 2017
Location: Luxembourg
Posts: 144
odo is on a distinguished road
Default Mirth Stack Size Bug

When a code template is imported to mirth (via the webservice interface), wich contains a lot of formatting in the header section (Javascript-Doc), Mirth server and also administrator are throwing a java.lang.StackOverflowError. Please find a sample code template attached (and also a screenshot of the JavascriptDoc). Same effect occurs if such a template is created in Mirth Administrator and saved.

Please see also: https://www.mirthcorp.com/community/...wse/MIRTH-3828

If a code template library contains such a code template, the no code template library is accessible anymore. The StackOverflowError is thrown in the backend and the codetemplate library view never finishs loading.

This is just a guess: I assume that this is caused by a recursive call to a regex matching function (Please also see attached stack trace).

When the stacksize is increased in the vm-options, this issue does not appear anymore.

For the mirth service add the following line to the config file "mcservice.vmoptions":
For the mirth Administrator add the following option in the "Mirth Administrator.jnlp" file:

		<j2se href="http://java.sun.com/products/autodl/j2se" max-heap-size="2048m" version="1.6+" java-vm-args="-Xss2M"/>
Infos about the jvm stack-size can be found here.

It would be great if either the stack-size could be increased or the parsing function could be rewritten for the next release.
Attached Images
File Type: jpg SampleFunctionJavascriptDocOutput.jpg (176.1 KB, 3 views)
Attached Files
File Type: xml SampleFunctionCausingStackOverflow.xml (5.7 KB, 3 views)
File Type: xml StackOverflowErrorStacktrace.xml (79.4 KB, 2 views)

Last edited by odo; 12-08-2017 at 09:43 AM.
Reply With Quote

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 04:21 AM.

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