Migrating Channels from Mirth 3.12 to Mirth 4.5 #6294
Replies: 8 comments 7 replies
-
Actually, best to use the Resources tab and associate jars there and then at the channel level. If you still get the error message, Mirth is not finding your class/jar. |
Beta Was this translation helpful? Give feedback.
-
ERROR (postprocessor:138): Error loading class 'Packages.SomeClass': JavaException: java.lang.ClassNotFoundException: Packages.SomeClass I have used the resources tab and added the jar files from there. Still getting the above, so it means my class/jar files are not being recognized by mirth? |
Beta Was this translation helpful? Give feedback.
-
Not sure why you are being obtuse about the actual code, but the syntax would normally be like in https://github.com/pacmano1/Mirth-Snippets/blob/main/JWTviaJose4jlib.js (just a code template that uses outside packages) |
Beta Was this translation helpful? Give feedback.
-
Hello Pacmano, Transformer error This is the error I'm seeing when I'm trying to run in channel. This time I have used a custom test package and its still showing the same kind of error.
I am also attaching the jar file & channel for the reference. |
Beta Was this translation helpful? Give feedback.
-
I'm receiving this error, I'm using 4.5.1 version of mirth connect. I'm using wrong version of mirth connect? |
Beta Was this translation helpful? Give feedback.
-
I apologize for the confusion. I was trying out the solutions you provided in the thread, but I encountered some errors and shared them in thread. This test jar file is working now, I have deleted the channel and reimported the channel without importing "MirthUtils". |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hello, Thanks for your help, I am able to resolve the logger issue. However I am still facing this error "TypeError: [JavaPackage monitoring.MVE_ACK] is not a function, it is object." Postprocessor Script error
|
Beta Was this translation helpful? Give feedback.
-
I am trying to migrate channels from an older version of Mirth Connect 3.12to a newer version 4.5. However, I am encountering errors such as,
DETAILS: TypeError: [JavaPackage SOMEPACKAGE.CLASSNAME(which Im using)] is not a function, it is an object.
As I am new to Mirth Connect, I researched and learned that I need to move the required packages or JAR files into the custom-lib folder located at \Mirth Connect\custom-lib. I have done that, but I am still facing errors when setting up the channel and sending messages.
This is how im using packages
var x = new Packages.SomeClass();
x.usingitscontains
Could you please provide guidance on what steps I need to take to resolve this issue or if there are additional configurations required?
Beta Was this translation helpful? Give feedback.
All reactions