web stats
Channel too large Exception - Mirth Community

Go Back   Mirth Community > Mirth Connect > Development

Reply
 
Thread Tools Display Modes
  #1  
Old 11-08-2006, 06:25 PM
kenth kenth is offline
What's HL7?
 
Join Date: Oct 2006
Posts: 5
kenth
Default Channel too large Exception

Hi

I'm currently building a mirth channel to process both PID and PV1 segments from a message. I am using two transformers, one for PID and one for PV1. The transformers primarily use basic mappers, but a few use javascript to translate timestamps into SQL readable datetimes.

Unfortunately, capturing all PID & PV1 fields and then inserting these values into multiple sql tables requires a fair bit of code. And when I try to save the channel I get the following exception:

Code:
com.webreach.mirth.client.core.ClientException: method failed: HTTP/1.1 500 Form+too+large
com.webreach.mirth.client.core.ServerConnection.executePostMethod(ServerConnection.java:59)
com.webreach.mirth.client.core.Client.updateChannel(Client.java:128)
com.webreach.mirth.client.ui.Frame.updateChannel(Frame.java:1118)
com.webreach.mirth.client.ui.ChannelSetup.saveChanges(ChannelSetup.java:654)
com.webreach.mirth.client.ui.Frame.doSaveChanges(Frame.java:1644)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
sun.reflect.misc.Trampoline.invoke(Unknown Source)
sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
sun.reflect.misc.MethodUtil.invoke(Unknown Source)
java.beans.EventHandler.invokeInternal(Unknown Source)
java.beans.EventHandler.access$000(Unknown Source)
java.beans.EventHandler$1.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.beans.EventHandler.invoke(Unknown Source)
$Proxy0.actionPerformed(Unknown Source)
org.jdesktop.swingx.action.BoundAction.actionPerformed(Unknown Source)
javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
javax.swing.DefaultButtonModel.setPressed(Unknown Source)
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
java.awt.Component.processMouseEvent(Unknown Source)
javax.swing.JComponent.processMouseEvent(Unknown Source)
java.awt.Component.processEvent(Unknown Source)
java.awt.Container.processEvent(Unknown Source)
java.awt.Component.dispatchEventImpl(Unknown Source)
java.awt.Container.dispatchEventImpl(Unknown Source)
java.awt.Component.dispatchEvent(Unknown Source)
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
java.awt.Container.dispatchEventImpl(Unknown Source)
java.awt.Window.dispatchEventImpl(Unknown Source)
java.awt.Component.dispatchEvent(Unknown Source)
java.awt.EventQueue.dispatchEvent(Unknown Source)
java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.awt.EventDispatchThread.run(Unknown Source)
Removing comments from my code allowed me to get under the limit. But is there a better way to deal with this? Does 1.2 solve this already? (I'm yet to install 1.2)

Alternatively is there a 'better' way to do things? If I put two transformers in two separate channels, won't the first listener 'take' the message meaning the second channel doesn't get to capture the message?

This is worrying as I'm yet to add functionality for capturing PV2 segments and am not sure how I'll be able to.

Any thoughts/advice would be appreciated.

Thanks a lot.

-Kent.
Reply With Quote
  #2  
Old 11-08-2006, 07:13 PM
chrisl chrisl is offline
Mirth Employee
 
Join Date: Aug 2006
Posts: 967
chrisl is an unknown quantity at this point
Default Re: Channel too large Exception

You are going about this the correct way, and this has indeed been fixed in 1.2. There is a servlet setting that restricted the maximum size. We have removed this restriction and you should no longer have this issue.

Thanks!
-Chris
__________________
Chris Lang
Reply With Quote
  #3  
Old 11-14-2006, 05:06 PM
kenth kenth is offline
What's HL7?
 
Join Date: Oct 2006
Posts: 5
kenth
Default Re: Channel too large Exception

That's great! Will upgrade to 1.2 shortly. Looking forward to writing multi-multi-transformer channels. :wink

-Kent.
Reply With Quote
  #4  
Old 11-15-2006, 06:50 PM
chrisl chrisl is offline
Mirth Employee
 
Join Date: Aug 2006
Posts: 967
chrisl is an unknown quantity at this point
Default Re: Channel too large Exception

Excellent, please post your results!
-Chris
__________________
Chris Lang
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Having an issue reading in a large HL7 text file tsmith Support 7 08-02-2012 01:07 PM
Caught exception in Exception Strategy maqboolp Support 5 12-16-2008 08:02 AM
Exception in channel. kmthayil Support 0 10-05-2007 04:45 AM
channel Exception arunpriya Support 1 11-27-2006 11:51 AM
LLP to File Exception jobsoft Support 15 10-12-2006 01:23 PM


All times are GMT -8. The time now is 07:49 AM.


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