web stats
Queue a HTTPSender on 500 (or other error) - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 03-23-2017, 06:04 AM
arronramsey arronramsey is offline
Mirth Newb
 
Join Date: Sep 2007
Posts: 13
arronramsey
Default Queue a HTTPSender on 500 (or other error)

Good Morning. I'm continuing to test HTTP senders, and attempting queuing by placing my API project in an errant state, which returns a 500 when i hit it with PostMan.

Mirth throws an error before i can handle anything in the response transformer.

Is there a way to queue instances like this?

Error is below.
Version is 3.4.1.8057
Channel is attached.
Thank you so much!


2017-03-23 08:40:23,440] ERROR (com.mirth.connect.connectors.http.HttpDispatcher: 840): Error executing response transformer for channel Vendor ADT In Port 6661 (24ddf73d-9d07-4dd6-9707-8a0e743fb94f) on destination Map Message For Nurse Call / Send to Nurse Call.
com.mirth.connect.donkey.server.channel.components .ResponseTransformerException: CHANNEL:
Vendor ADT In Port 6661CONNECTOR:
Map Message For Nurse Call / Send to Nurse CallSCRIPT SOURCE:
responseSOURCE CODE:
39: }40: eval('importPackage(' + Packages.java.lang.Class.forName(className).getPac kage().getName() + ')');41: }42: }43: function doScript() {44: msg = new XML(connectorMessage.getResponseTransformedData()) ;45: if (msg.namespace('') != undefined) { default xml namespace = msg.namespace(''); } else { default xml namespace = ''; }46: function doTransform() {47: 48: LINE NUMBER:
44DETAILS:
TypeError: The content of elements must consist of well-formed character data or markup.
at 447265cf-a05f-4195-b5aa-a331696ee1d2:44 (doScript)
at 447265cf-a05f-4195-b5aa-a331696ee1d2:93
at com.mirth.connect.server.transformers.JavaScriptRe sponseTransformer$ResponseTransformerTask.doCall(J avaScriptResponseTransformer.java:167)
at com.mirth.connect.server.transformers.JavaScriptRe sponseTransformer$ResponseTransformerTask.doCall(J avaScriptResponseTransformer.java:118)
at com.mirth.connect.server.util.javascript.JavaScrip tTask.call(JavaScriptTask.java:113)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker( Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
at java.lang.Thread.run(Unknown Source)Caused by: com.mirth.connect.server.MirthJavascriptTransforme rException: CHANNEL:
Vendor ADT In Port 6661CONNECTOR:
Map Message For Nurse Call / Send to Nurse CallSCRIPT SOURCE:
responseSOURCE CODE:
39: }40: eval('importPackage(' + Packages.java.lang.Class.forName(className).getPac kage().getName() + ')');41: }42: }43: function doScript() {44: msg = new XML(connectorMessage.getResponseTransformedData()) ;45: if (msg.namespace('') != undefined) { default xml namespace = msg.namespace(''); } else { default xml namespace = ''; }46: function doTransform() {47: 48: LINE NUMBER:
44DETAILS:
TypeError: The content of elements must consist of well-formed character data or markup.
at 447265cf-a05f-4195-b5aa-a331696ee1d2:44 (doScript)
at 447265cf-a05f-4195-b5aa-a331696ee1d2:93
at com.mirth.connect.server.transformers.JavaScriptRe sponseTransformer$ResponseTransformerTask.doCall(J avaScriptResponseTransformer.java:160)
... 6 more
Attached Files
File Type: xml Vendor ADT In Port 6661.xml (24.3 KB, 0 views)
Reply With Quote
  #2  
Old 03-23-2017, 06:50 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,116
narupley is on a distinguished road
Default

Sounds like you need to change your data types.
__________________
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

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 08:09 PM.


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