web stats
Error when saving results from Mirth Connect - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 05-11-2015, 06:51 AM
rdejournett rdejournett is offline
OBX.2 Kenobi
 
Join Date: Jan 2013
Posts: 99
rdejournett is on a distinguished road
Default Error when saving results from Mirth Connect

(version 3.2.1)

I have a 1 MB file that I am running through a channel for the purpose of parsing it for batching. I am trying to extract the message for reprocessing on another server and the export fails. I have increased the max heap size to 2 GB on both client and server (and restarted the server), and it still fails. The file size is about 1 MB text. (15000 lines / 426k characters). So, it's not huge I don't think.

Anyway what is the root cause of the error, any idea? I am just trying to extract the raw source from one message.

Error is:

com.mirth.connect.client.core.PaginatedMessageList .getItems(PaginatedMessageList.java:68)
com.mirth.connect.util.PaginatedList.loadPageNumbe r(PaginatedList.java:73)
com.mirth.connect.util.MessageExporter.exportMessa ges(MessageExporter.java:52)
com.mirth.connect.client.ui.MessageExportDialog.ex port(MessageExportDialog.java:153)
com.mirth.connect.client.ui.MessageExportDialog.ac cess$000(MessageExportDialog.java:42)
com.mirth.connect.client.ui.MessageExportDialog$1. actionPerformed(MessageExportDialog.java:89)
javax.swing.AbstractButton.fireActionPerformed(Abs tractButton.java:2018)
javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.java:2341)
javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:402)
javax.swing.DefaultButtonModel.setPressed(DefaultB uttonModel.java:259)
javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(BasicButtonListener.java:252)
java.awt.Component.processMouseEvent(Component.jav a:6516)
javax.swing.JComponent.processMouseEvent(JComponen t.java:3320)
java.awt.Component.processEvent(Component.java:628 1)
java.awt.Container.processEvent(Container.java:222 9)
java.awt.Component.dispatchEventImpl(Component.jav a:4872)
java.awt.Container.dispatchEventImpl(Container.jav a:2287)
java.awt.Component.dispatchEvent(Component.java:46 98)
java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:4832)
java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:4492)
java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:4422)
java.awt.Container.dispatchEventImpl(Container.jav a:2273)
java.awt.Window.dispatchEventImpl(Window.java:2719 )
java.awt.Component.dispatchEvent(Component.java:46 98)
java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:735)
java.awt.EventQueue.access$200(EventQueue.java:103 )
java.awt.EventQueue$3.run(EventQueue.java:694)
java.awt.EventQueue$3.run(EventQueue.java:692)
java.security.AccessController.doPrivileged(Native Method)
java.security.ProtectionDomain$1.doIntersectionPri vilege(ProtectionDomain.java:76)
java.security.ProtectionDomain$1.doIntersectionPri vilege(ProtectionDomain.java:87)
java.awt.EventQueue$4.run(EventQueue.java:708)
java.awt.EventQueue$4.run(EventQueue.java:706)
java.security.AccessController.doPrivileged(Native Method)
java.security.ProtectionDomain$1.doIntersectionPri vilege(ProtectionDomain.java:76)
java.awt.EventQueue.dispatchEvent(EventQueue.java: 705)
java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:242)
java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:161)
java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:154)
java.awt.WaitDispatchSupport$2.run(WaitDispatchSup port.java:182)
java.awt.WaitDispatchSupport$4.run(WaitDispatchSup port.java:221)
java.security.AccessController.doPrivileged(Native Method)
java.awt.WaitDispatchSupport.enter(WaitDispatchSup port.java:219)
java.awt.Dialog.show(Dialog.java:1082)
java.awt.Component.show(Component.java:1655)
java.awt.Component.setVisible(Component.java:1607)
java.awt.Window.setVisible(Window.java:1014)
java.awt.Dialog.setVisible(Dialog.java:1005)
com.mirth.connect.client.ui.MirthDialog.setVisible (MirthDialog.java:56)
com.mirth.connect.client.ui.Frame.doExportMessages (Frame.java:3782)
sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:606)
sun.reflect.misc.Trampoline.invoke(MethodUtil.java :75)
sun.reflect.GeneratedMethodAccessor2.invoke(Unknow n Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:606)
sun.reflect.misc.MethodUtil.invoke(MethodUtil.java :279)
java.beans.EventHandler.invokeInternal(EventHandle r.java:481)
java.beans.EventHandler.access$000(EventHandler.ja va:278)
java.beans.EventHandler$1.run(EventHandler.java:42 9)
java.security.AccessController.doPrivileged(Native Method)
java.beans.EventHandler.invoke(EventHandler.java:4 27)
com.sun.proxy.$Proxy10.actionPerformed(Unknown Source)
org.jdesktop.swingx.action.BoundAction.actionPerfo rmed(BoundAction.java:231)
javax.swing.AbstractButton.fireActionPerformed(Abs tractButton.java:2018)
org.jdesktop.swingx.JXHyperlink.fireActionPerforme d(JXHyperlink.java:264)
javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.java:2341)
javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:402)
javax.swing.DefaultButtonModel.setPressed(DefaultB uttonModel.java:259)
javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(BasicButtonListener.java:252)
java.awt.AWTEventMulticaster.mouseReleased(AWTEven tMulticaster.java:289)
java.awt.Component.processMouseEvent(Component.jav a:6516)
javax.swing.JComponent.processMouseEvent(JComponen t.java:3320)
java.awt.Component.processEvent(Component.java:628 1)
java.awt.Container.processEvent(Container.java:222 9)
java.awt.Component.dispatchEventImpl(Component.jav a:4872)
java.awt.Container.dispatchEventImpl(Container.jav a:2287)
java.awt.Component.dispatchEvent(Component.java:46 98)
java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:4832)
java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:4492)
java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:4422)
java.awt.Container.dispatchEventImpl(Container.jav a:2273)
java.awt.Window.dispatchEventImpl(Window.java:2719 )
java.awt.Component.dispatchEvent(Component.java:46 98)
java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:735)
java.awt.EventQueue.access$200(EventQueue.java:103 )
java.awt.EventQueue$3.run(EventQueue.java:694)
java.awt.EventQueue$3.run(EventQueue.java:692)
java.security.AccessController.doPrivileged(Native Method)
java.security.ProtectionDomain$1.doIntersectionPri vilege(ProtectionDomain.java:76)
java.security.ProtectionDomain$1.doIntersectionPri vilege(ProtectionDomain.java:87)
java.awt.EventQueue$4.run(EventQueue.java:708)
java.awt.EventQueue$4.run(EventQueue.java:706)
java.security.AccessController.doPrivileged(Native Method)
java.security.ProtectionDomain$1.doIntersectionPri vilege(ProtectionDomain.java:76)
java.awt.EventQueue.dispatchEvent(EventQueue.java: 705)
java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:242)
java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:161)
java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:150)
java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:146)
java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:138)
java.awt.EventDispatchThread.run(EventDispatchThre ad.java:91)
Reply With Quote
  #2  
Old 05-11-2015, 08:07 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,126
narupley is on a distinguished road
Default

That doesn't look like the entire stacktrace; it looks like you've cut off part of it. Regardless, it's probably a heap size issue, but on the client side, not the server side. So increase the client's max heap size instead. You can do that from the launch page in a browser.
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #3  
Old 05-11-2015, 10:18 AM
rdejournett rdejournett is offline
OBX.2 Kenobi
 
Join Date: Jan 2013
Posts: 99
rdejournett is on a distinguished road
Default

Thanks, it must have gotten cropped at the top.

The client is already set to the max, 2 GB. So, given that, any other idea? There aren't many messages on this (development) box. I am running on Mac OSX and the Activity Monitor shows Mirth Connect using 1.2 GB, no indication I am running low on memory.


com.mirth.connect.client.core.ClientException: method failed: HTTP/1.1 500 Java heap space
com.mirth.connect.client.core.ServerConnection.exe cutePostMethod(ServerConnection.java:140)
com.mirth.connect.client.core.Client.getMessages(C lient.java:1087)
com.mirth.connect.client.core.PaginatedMessageList .getItems(PaginatedMessageList.java:68)
com.mirth.connect.util.PaginatedList.loadPageNumbe r(PaginatedList.java:73)
com.mirth.connect.util.MessageExporter.exportMessa ges(MessageExporter.java:52)
com.mirth.connect.client.ui.MessageExportDialog.ex port(MessageExportDialog.java:153)
com.mirth.connect.client.ui.MessageExportDialog.ac cess$000(MessageExportDialog.java:42)
com.mirth.connect.client.ui.MessageExportDialog$1. actionPerformed(MessageExportDialog.java:89)
javax.swing.AbstractButton.fireActionPerformed(Abs tractButton.java:2018)
javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.java:2341)
javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:402)
javax.swing.DefaultButtonModel.setPressed(DefaultB uttonModel.java:259)
javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(BasicButtonListener.java:252)
java.awt.Component.processMouseEvent(Component.jav a:6516)
javax.swing.JComponent.processMouseEvent(JComponen t.java:3320)
java.awt.Component.processEvent(Component.java:628 1)
java.awt.Container.processEvent(Container.java:222 9)
java.awt.Component.dispatchEventImpl(Component.jav a:4872)
java.awt.Container.dispatchEventImpl(Container.jav a:2287)
java.awt.Component.dispatchEvent(Component.java:46 98)
java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:4832)
java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:4492)
java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:4422)
java.awt.Container.dispatchEventImpl(Container.jav a:2273)
java.awt.Window.dispatchEventImpl(Window.java:2719 )
java.awt.Component.dispatchEvent(Component.java:46 98)
java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:735)
java.awt.EventQueue.access$200(EventQueue.java:103 )
java.awt.EventQueue$3.run(EventQueue.java:694)
java.awt.EventQueue$3.run(EventQueue.java:692)
java.security.AccessController.doPrivileged(Native Method)
java.security.ProtectionDomain$1.doIntersectionPri vilege(ProtectionDomain.java:76)
java.security.ProtectionDomain$1.doIntersectionPri vilege(ProtectionDomain.java:87)
java.awt.EventQueue$4.run(EventQueue.java:708)
java.awt.EventQueue$4.run(EventQueue.java:706)
java.security.AccessController.doPrivileged(Native Method)
java.security.ProtectionDomain$1.doIntersectionPri vilege(ProtectionDomain.java:76)
java.awt.EventQueue.dispatchEvent(EventQueue.java: 705)
java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:242)
java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:161)
java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:154)
java.awt.WaitDispatchSupport$2.run(WaitDispatchSup port.java:182)
java.awt.WaitDispatchSupport$4.run(WaitDispatchSup port.java:221)
java.security.AccessController.doPrivileged(Native Method)
java.awt.WaitDispatchSupport.enter(WaitDispatchSup port.java:219)
java.awt.Dialog.show(Dialog.java:1082)
java.awt.Component.show(Component.java:1655)
java.awt.Component.setVisible(Component.java:1607)
java.awt.Window.setVisible(Window.java:1014)
java.awt.Dialog.setVisible(Dialog.java:1005)
com.mirth.connect.client.ui.MirthDialog.setVisible (MirthDialog.java:56)
com.mirth.connect.client.ui.Frame.doExportMessages (Frame.java:3782)
sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:606)
sun.reflect.misc.Trampoline.invoke(MethodUtil.java :75)
sun.reflect.GeneratedMethodAccessor2.invoke(Unknow n Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:606)
sun.reflect.misc.MethodUtil.invoke(MethodUtil.java :279)
java.beans.EventHandler.invokeInternal(EventHandle r.java:481)
java.beans.EventHandler.access$000(EventHandler.ja va:278)
java.beans.EventHandler$1.run(EventHandler.java:42 9)
java.security.AccessController.doPrivileged(Native Method)
java.beans.EventHandler.invoke(EventHandler.java:4 27)
com.sun.proxy.$Proxy10.actionPerformed(Unknown Source)
org.jdesktop.swingx.action.BoundAction.actionPerfo rmed(BoundAction.java:231)
javax.swing.AbstractButton.fireActionPerformed(Abs tractButton.java:2018)
org.jdesktop.swingx.JXHyperlink.fireActionPerforme d(JXHyperlink.java:264)
javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.java:2341)
javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:402)
javax.swing.DefaultButtonModel.setPressed(DefaultB uttonModel.java:259)
javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(BasicButtonListener.java:252)
java.awt.AWTEventMulticaster.mouseReleased(AWTEven tMulticaster.java:289)
java.awt.Component.processMouseEvent(Component.jav a:6516)
javax.swing.JComponent.processMouseEvent(JComponen t.java:3320)
java.awt.Component.processEvent(Component.java:628 1)
java.awt.Container.processEvent(Container.java:222 9)
java.awt.Component.dispatchEventImpl(Component.jav a:4872)
java.awt.Container.dispatchEventImpl(Container.jav a:2287)
java.awt.Component.dispatchEvent(Component.java:46 98)
java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:4832)
java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:4492)
java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:4422)
java.awt.Container.dispatchEventImpl(Container.jav a:2273)
java.awt.Window.dispatchEventImpl(Window.java:2719 )
java.awt.Component.dispatchEvent(Component.java:46 98)
java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:735)
java.awt.EventQueue.access$200(EventQueue.java:103 )
java.awt.EventQueue$3.run(EventQueue.java:694)
java.awt.EventQueue$3.run(EventQueue.java:692)
java.security.AccessController.doPrivileged(Native Method)
java.security.ProtectionDomain$1.doIntersectionPri vilege(ProtectionDomain.java:76)
java.security.ProtectionDomain$1.doIntersectionPri vilege(ProtectionDomain.java:87)
java.awt.EventQueue$4.run(EventQueue.java:708)
java.awt.EventQueue$4.run(EventQueue.java:706)
java.security.AccessController.doPrivileged(Native Method)
java.security.ProtectionDomain$1.doIntersectionPri vilege(ProtectionDomain.java:76)
java.awt.EventQueue.dispatchEvent(EventQueue.java: 705)
java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:242)
java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:161)
java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:150)
java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:146)
java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:138)
java.awt.EventDispatchThread.run(EventDispatchThre ad.java:91)
Reply With Quote
  #4  
Old 05-11-2015, 10:47 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,126
narupley is on a distinguished road
Default

Now that we have the entire stacktrace, I can see that the server is actually returning a 500, which indicates to me that it's actually the server running out of memory, not the client (so the opposite of what I said previously).

If the file size is 1 MB, are you using attachments? If not, why? If you don't use attachments, then the raw message will be copied for each content type (like source transformed/encoded, destination transformed/encoded, etc.). So the actual data stored will be several times the size of the original raw data.

One thing you can try is reducing the page size in the message browser. That way when you export messages, fewer of them need to be loaded into memory at once (though the overall export may take longer because more requests need to be made).
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #5  
Old 05-11-2015, 11:05 AM
rdejournett rdejournett is offline
OBX.2 Kenobi
 
Join Date: Jan 2013
Posts: 99
rdejournett is on a distinguished road
Default

I am not using attachments, honestly I'm not sure how they work. This is basically a HL7 batch file that is split in the channel, then sent downstream for processing. I'm not sure what an attachement would do in this case.

I increased the server heap size to 4GB and same effect. So, I am guessing there is something that is causing an infinite loop and crashing the process (since increasing heap size had no effect).

I tried 1 message per page size and same effect. I tried all different export options like raw message, transformed message, etc, same effect. I only want one message, but the problem I was having is that it's a windows file with CRLF and I am having trouble figuring out how to preserve that on a Mac (my desktop). I can get around this, but it's wierd that i can't export the file.



Quote:
Originally Posted by narupley View Post
Now that we have the entire stacktrace, I can see that the server is actually returning a 500, which indicates to me that it's actually the server running out of memory, not the client (so the opposite of what I said previously).

If the file size is 1 MB, are you using attachments? If not, why? If you don't use attachments, then the raw message will be copied for each content type (like source transformed/encoded, destination transformed/encoded, etc.). So the actual data stored will be several times the size of the original raw data.

One thing you can try is reducing the page size in the message browser. That way when you export messages, fewer of them need to be loaded into memory at once (though the overall export may take longer because more requests need to be made).
Reply With Quote
Reply

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 02:53 AM.


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