A mysterious error I cant explain: TypeError: Element type "Request" must be followed by either attribute specifications, ">" or "/>". #5826
Replies: 1 comment 6 replies
-
This is the internal code from Mirth trying to parse something as XML and that XML has an error. What data types are you actually needing to process with your channel? What are the data types for the channel set to? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a very simple write-to-file channel.
As soon as I add even an empty transformer to the destination, I will get the following transformer error.
Transformer error
ERROR MESSAGE: Error evaluating transformer
com.mirth.connect.server.MirthJavascriptTransformerException:
CHANNEL: Simple channel
CONNECTOR: To file
SCRIPT SOURCE:
SOURCE CODE:
94: }
95: eval('importPackage(' + Packages.java.lang.Class.forName(className).getPackage().getName() + ')');
96: }
97: }
98: function doScript() {
99: msg = new XML(connectorMessage.getTransformedData());
100: if (msg.namespace('') != undefined) { default xml namespace = msg.namespace(''); } else { default xml namespace = ''; }
101: function doFilter() { phase[0] = 'filter'; return true; }function doTransform() { phase[0] = 'transformer'; logger = Packages.org.apache.log4j.Logger.getLogger(phase[0]);
102:
103:
LINE NUMBER: 99
DETAILS: TypeError: Element type "Request" must be followed by either attribute specifications, ">" or "/>".
at 55d46997-2f86-4181-bb37-5e608b15c934_JavaScript_Filter_Transformer_1:99 (doScript)
at 55d46997-2f86-4181-bb37-5e608b15c934_JavaScript_Filter_Transformer_1:128
at com.mirth.connect.server.transformers.JavaScriptFilterTransformer$FilterTransformerTask.doCall(JavaScriptFilterTransformer.java:235)
at com.mirth.connect.server.transformers.JavaScriptFilterTransformer$FilterTransformerTask.doCall(JavaScriptFilterTransformer.java:187)
at com.mirth.connect.server.util.javascript.JavaScriptTask.call(JavaScriptTask.java:114)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Beta Was this translation helpful? Give feedback.
All reactions