web stats
java.lang.IllegalStateException: Connection is still allocated - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 01-02-2017, 03:20 AM
MirthRad MirthRad is offline
What's HL7?
 
Join Date: Sep 2016
Posts: 5
MirthRad is on a distinguished road
Default java.lang.IllegalStateException: Connection is still allocated

Hi All,

Currently i am working on a channel where i have 2 destination

1. First Destination invoke a web service call and fetch some information
2. The information from the first destination is used and a second web service is invoked.

Now this works smoothly but once it process 1000 + records i start facing the issue java.lang.IllegalStateException: Connection is still allocated. Not able to proceed further.

So 1 destination process successfully second destination fails but when i hit the second destination's web service from outside of mirth it work. Mirth fails to invoke the webservice.

I noticed one finding whenever there is error in the processing the errrored id stays in processing state is this how it is?

Regards
Reply With Quote
  #2  
Old 03-21-2017, 05:09 AM
rdejournett rdejournett is offline
OBX.2 Kenobi
 
Join Date: Jan 2013
Posts: 98
rdejournett is on a distinguished road
Default

I also encountered this with some speed testing. Same scenario, two channels, one is a REST call that retreives a huge list of patients. The first channel sends each patient one by one to the second channel, which performs a REST call and gets more info about the patient. Basically the error is saying there already is a connection, you are attempting to process messages faster than Mirth can tear down and re-establish the interface (i think). It looks like the error is from the Mirth side. If you enable message queuing on error it will retry the message and that solves the problem.
Reply With Quote
  #3  
Old 03-21-2017, 06:07 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,115
narupley is on a distinguished road
Default

If you're using multiple processing threads in 3.4 with the HTTP Sender, that is a known issue that should be fixed in 3.4.2: MIRTH-4006

Otherwise, you may be running into the more generic HTTP Sender issue, which also should have been fixed for 3.4.2: MIRTH-4051
__________________
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
Reply

Tags
illegalstateexception

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 10:23 PM.


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