web stats
Mirth Community - View Single Post - Queue on Failure
View Single Post
  #3  
Old 09-15-2016, 08:05 AM
hnouh hnouh is offline
OBX.1 Kenobi
 
Join Date: Aug 2015
Posts: 31
hnouh is on a distinguished road
Default Queue on Failure

When a message that I'm sending to the server errors out. the statistics shows that there is an error (with red). The error is actually from the server and it is java FileNOtFound error (please see bellow). The problem is that how come even with the current settings that I have, the failed or error messages do not queue? My goal is for them to queue and to send them again after 20 seconds. Maybe the server wont be busy and the message will go throw successfully.
---------------------------------------------------------------------------
Transformer error
ERROR MESSAGE: Error evaluating transformer
com.mirth.connect.server.MirthJavascriptTransforme rException:
CHANNEL: RAPI proj-add agent Trans
CONNECTOR: sourceConnector
SCRIPT SOURCE: TRANSFORMER
SOURCE CODE:
77: outWriter.close();
78:
79: //At this point you've called the service
80: //Now you have to get the response in a stream
81:
82: var inputStream = conn.getInputStream();
83:
84: var streamRead = new java.io.InputStreamReader(inputStream);
85:
86: var resp = new java.io.BufferedReader(streamRead);
LINE NUMBER: 82
DETAILS: Wrapped java.io.FileNotFoundException: https://register.staging.drfirst.com/ws/wsAddUser
at f739e74b-961c-4517-acfa-95cb438b0cf2:82 (doTransform)
at f739e74b-961c-4517-acfa-95cb438b0cf2:127 (doScript)
at f739e74b-961c-4517-acfa-95cb438b0cf2:129
at com.mirth.connect.server.transformers.JavaScriptFi lterTransformer$FilterTransformerTask.doCall(JavaS criptFilterTransformer.java:154)
at com.mirth.connect.server.transformers.JavaScriptFi lterTransformer$FilterTransformerTask.doCall(JavaS criptFilterTransformer.java:119)
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: java.io.FileNotFoundException: https://register.staging.drfirst.com/ws/wsAddUser
at sun.net.http://www.protocol.http.HttpURLConn...Stream(Unknown Source)
at sun.net.http://www.protocol.https.HttpsURLCo...Stream(Unknown Source)
at sun.reflect.GeneratedMethodAccessor149.invoke(Unkn own Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox. java:126)
at org.mozilla.javascript.NativeJavaMethod.call(Nativ eJavaMethod.java:225)
at org.mozilla.javascript.Interpreter.interpretLoop(I nterpreter.java:1479)
at org.mozilla.javascript.Interpreter.interpret(Inter preter.java:815)
at org.mozilla.javascript.InterpretedFunction.call(In terpretedFunction.java:109)
at org.mozilla.javascript.ContextFactory.doTopCall(Co ntextFactory.java:393)
at org.mozilla.javascript.ScriptRuntime.doTopCall(Scr iptRuntime.java:3280)
at org.mozilla.javascript.InterpretedFunction.exec(In terpretedFunction.java:120)
at com.mirth.connect.server.util.javascript.JavaScrip tTask.executeScript(JavaScriptTask.java:142)
at com.mirth.connect.server.transformers.JavaScriptFi lterTransformer$FilterTransformerTask.doCall(JavaS criptFilterTransformer.java:143)
... 6 more
------------------------------------------------------------------------------------
Reply With Quote