You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context
Log4J2 supports SLF4J. This allows to write logging statements similar to the Java String.format() function and allows things like:
vartestValue='Test';logger.info('This is a {} of SLF4J',testValue);
which would result into This is a Test of SLF4J
Issue
This works flawlessly in the Mirth JavaScript context like deploy, connector, or filter scripts.
However, in the Mirth transformer context it throws the following error: Can't find method org.apache.log4j.Category.info(string,string). at d9bf574e-ad4b-4462-9923-87163a07c995_JavaScript_Filter_Transformer_4:5051 (doTransform) at d9bf574e-ad4b-4462-9923-87163a07c995_JavaScript_Filter_Transformer_4:5452 (doScript) at d9bf574e-ad4b-4462-9923-87163a07c995_JavaScript_Filter_Transformer_4:5454 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:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:842)
This seems quite strange to me, especially as it is working w/i filter scripts that run in the same context.
It very, very likely also affects all Mirth forks so far.
Is this a know issue (I did not find anything) or has anyone a clue what happens there?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Environment
Context
Log4J2 supports SLF4J. This allows to write logging statements similar to the Java String.format() function and allows things like:
which would result into
This is a Test of SLF4JIssue
This works flawlessly in the Mirth JavaScript context like deploy, connector, or filter scripts.
However, in the Mirth transformer context it throws the following error:
Can't find method org.apache.log4j.Category.info(string,string). at d9bf574e-ad4b-4462-9923-87163a07c995_JavaScript_Filter_Transformer_4:5051 (doTransform) at d9bf574e-ad4b-4462-9923-87163a07c995_JavaScript_Filter_Transformer_4:5452 (doScript) at d9bf574e-ad4b-4462-9923-87163a07c995_JavaScript_Filter_Transformer_4:5454 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:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:842)This seems quite strange to me, especially as it is working w/i filter scripts that run in the same context.
It very, very likely also affects all Mirth forks so far.
Is this a know issue (I did not find anything) or has anyone a clue what happens there?
Beta Was this translation helpful? Give feedback.
All reactions