web stats
Error sending ACK: java.lang.StringIndexOutOfBoundsException - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 12-01-2011, 12:36 PM
rsaok rsaok is offline
Mirth Newb
 
Join Date: Dec 2011
Posts: 6
rsaok is on a distinguished road
Smile Error sending ACK: java.lang.StringIndexOutOfBoundsException

I have set up an LLP Listener channel which receives the message(s), stores them, and sends and ACK.

Here is the test message I am receiving:

MSH|^~\&|PARAGON|1|Radiology_Services||21111149141 9.487||ADT^A5|211111419|P|2.40EVN|A5|211111491415. 593|||u1140PID|1|68^^^1|68^^^1^MR||ONE^TRAIN^^^^^D ||192811|F||3^Black^HL75|||||ENGLISH^English|W|OTH |43^^^1|111-11-111|||2^Not Of Hispanic Origin or Latino^HL7189|||||N0PD1||||""||||U|||N|N0PV1|1|I|M S^^^1|9||^^^1||||MS||||2||N||I|43|P||||||||||||||| ||||1|||||2111114914|||||||V0PV2|||^Pneumonia||||| |||||||||||||N|N||PRE-REG||||||||||||N||5^WALK IN0OBX|1|ST|11449-6^Pregnancy Status^LN||N||||||

The Server Log file gives the following entry:

[2011-12-01 12:52:31,686] ERROR (org.mule.impl.DefaultComponentExceptionStrategy:9 5): Caught exception in Exception Strategy for: 5592250c-42ff-4a00-9533-c6efc745ab52: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
at com.mirth.connect.connectors.mllp.MllpMessageRecei ver$TcpWorker.generateACK(MllpMessageReceiver.java :575)
at com.mirth.connect.connectors.mllp.MllpMessageRecei ver$TcpWorker.processHL7Data(MllpMessageReceiver.j ava:509)
at com.mirth.connect.connectors.mllp.MllpMessageRecei ver$TcpWorker.processData(MllpMessageReceiver.java :428)
at com.mirth.connect.connectors.mllp.MllpMessageRecei ver$TcpWorker.run(MllpMessageReceiver.java:348)
at org.mule.impl.work.WorkerContext.run(WorkerContext .java:290)
at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor.runWorker(ThreadPoolExecutor.java: 1061)
at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.run(ThreadPoolExecutor.java :575)
at java.lang.Thread.run(Unknown Source)

The sender tells me that they receive no ACK.

Can anyone tell me what is going on here?

Thanks,

-Rusty
Reply With Quote
  #2  
Old 12-02-2011, 07:12 AM
nelson.wells nelson.wells is offline
OBX.1 Kenobi
 
Join Date: Sep 2010
Posts: 26
nelson.wells is on a distinguished road
Default

Check that the incoming and outgoing data types are HL7. I've seen that error when sending an HL7 message that expects an XML message. The parser can't parse the format so it throws the error.
Reply With Quote
  #3  
Old 12-03-2011, 10:04 PM
rsaok rsaok is offline
Mirth Newb
 
Join Date: Dec 2011
Posts: 6
rsaok is on a distinguished road
Default

Quote:
Originally Posted by rsaok View Post
I have set up an LLP Listener channel which receives the message(s), stores them, and sends and ACK.

Here is the test message I am receiving:

MSH|^~\&|PARAGON|1|Radiology_Services||21111149141 9.487||ADT^A5|211111419|P|2.40EVN|A5|211111491415. 593|||u1140PID|1|68^^^1|68^^^1^MR||ONE^TRAIN^^^^^D ||192811|F||3^Black^HL75|||||ENGLISH^English|W|OTH |43^^^1|111-11-111|||2^Not Of Hispanic Origin or Latino^HL7189|||||N0PD1||||""||||U|||N|N0PV1|1|I|M S^^^1|9||^^^1||||MS||||2||N||I|43|P||||||||||||||| ||||1|||||2111114914|||||||V0PV2|||^Pneumonia||||| |||||||||||||N|N||PRE-REG||||||||||||N||5^WALK IN0OBX|1|ST|11449-6^Pregnancy Status^LN||N||||||

The Server Log file gives the following entry:

[2011-12-01 12:52:31,686] ERROR (org.mule.impl.DefaultComponentExceptionStrategy:9 5): Caught exception in Exception Strategy for: 5592250c-42ff-4a00-9533-c6efc745ab52: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
at com.mirth.connect.connectors.mllp.MllpMessageRecei ver$TcpWorker.generateACK(MllpMessageReceiver.java :575)
at com.mirth.connect.connectors.mllp.MllpMessageRecei ver$TcpWorker.processHL7Data(MllpMessageReceiver.j ava:509)
at com.mirth.connect.connectors.mllp.MllpMessageRecei ver$TcpWorker.processData(MllpMessageReceiver.java :428)
at com.mirth.connect.connectors.mllp.MllpMessageRecei ver$TcpWorker.run(MllpMessageReceiver.java:348)
at org.mule.impl.work.WorkerContext.run(WorkerContext .java:290)
at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor.runWorker(ThreadPoolExecutor.java: 1061)
at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.run(ThreadPoolExecutor.java :575)
at java.lang.Thread.run(Unknown Source)

The sender tells me that they receive no ACK.

Can anyone tell me what is going on here?

Thanks,

-Rusty
Thanks, but that isn't it. The data types are both set to HL7 v2.x.
Reply With Quote
  #4  
Old 01-19-2012, 12:27 PM
rsaok rsaok is offline
Mirth Newb
 
Join Date: Dec 2011
Posts: 6
rsaok is on a distinguished road
Default Problem solved.

The default setting for Received timeout under LLP Listener is 0.

After setting it to 5000, their are no more errors.

Go figure.

-Rusty
Reply With Quote
Reply

Tags
string outofbounds on ack

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 -7. The time now is 07:35 PM.


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