web stats
TypeError: is not a function, it is object - Page 2 - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 08-17-2011, 04:38 AM
AlexToft AlexToft is offline
OBX.3 Kenobi
Join Date: Sep 2010
Location: Leeds, UK
Posts: 160
AlexToft is on a distinguished road

Ok. Attached is: a channel, a jar file, the java source.

It's a delimited text channel and all it does it echo msg to the logger, so I get something like this:

[2011-08-17 13:26:50,665]  INFO  (transformer:?): You said... <delimited><row><column1>blah</column1></row></delimited>
Attached Files
File Type: xml Channel.xml (6.8 KB, 62 views)
File Type: zip myjar.zip (16.0 KB, 42 views)
File Type: jar myjar.jar (1.1 KB, 27 views)
Reply With Quote
Old 08-17-2011, 06:34 AM
Mr.T Mr.T is offline
OBX.1 Kenobi
Join Date: Aug 2011
Posts: 39
Mr.T is on a distinguished road

thank you so much!
looks like it is working now

i guess the problem was that just closing mirth was not enough. i needed a reboot of the system to get it started. always such stupid things take the most time

really appreciate your help, thanks for your time and have a nice day!
Reply With Quote
Old 05-02-2019, 07:13 AM
ashishshetty1992 ashishshetty1992 is offline
Mirth Newb
Join Date: Jan 2018
Location: Boston
Posts: 17
ashishshetty1992 is on a distinguished road

Originally Posted by AlexToft View Post
Posting your Java source might help...

There is no problem calling external classes in Mirth, here's a simple example:

In Mirth transformer:
var myVar = new Packages.com.alex.test();

In Java:
package com.alex;
public class test {
    public String execute(String something) {
        return "You said... " + something;

In logger:
"You said... Hello"
Eight years later, this helped me solve my problem.
Reply With Quote

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 03:24 AM.

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