Announcement

Collapse
No announcement yet.

Problem with custom .jar file and new method

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with custom .jar file and new method

    Hi,

    I've put a .jar package file in custom/lib. Everything worked fine until I added a method to a java file.
    The old functions still work but the new one seems to not be there. I get
    Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot find function fetchTranslation.
    No matter what I try.
    Has mirth some kind of cache in the database I could reset or clear?

    Best regards

    Manuel Silvoso

  • #2
    Re:Problem with custom .jar file and new method

    Did you restart the Mirth server once you updated the JAR in custom/lib?
    Chris Lang

    Comment


    • #3
      Re:Problem with custom .jar file and new method

      Yes I restarted the mirth server many times, redeployed the channels many times. I get this error nevertheless.
      I checked the .jar file and decompiled the files within it. The method is in there.
      I also cleared the java applet cache (you never know).
      Nothing helps.

      Manuel Silvoso

      Comment


      • #4
        Re:Problem with custom .jar file and new method

        I added an argument to an original method that worked. Mirth did not notice the change.
        There seems to be some kind of cache somewhere. I will try to find it. If someone knows where it is, please help.

        Manuel Silvoso

        Comment

        Working...
        X