Announcement

Collapse
No announcement yet.

mirth-cli-launcher returns exception

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

  • mirth-cli-launcher returns exception

    Dear support, I am having troubles starting the mirth-cli-launcher.

    When I enter on CentOS from folder Mirthconnect : java -jar mirth-cli-launcher.jar -a https://127.0.0.1:8443 -u user -p wachtwoord -v 0.0.0 an exception is shown:

    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Construc tor.java:526)
    at com.mirth.connect.cli.launcher.CommandLineLauncher .main(CommandLineLauncher.java:53)
    Caused by: java.lang.ExceptionInInitializerError
    at org.apache.commons.ssl.SSL.<init>(SSL.java:184)
    at org.apache.commons.ssl.SSLClient.<init>(SSLClient. java:59)
    at org.apache.commons.ssl.HttpSecureProtocol.<init>(H ttpSecureProtocol.java:55)
    at org.apache.commons.httpclient.contrib.ssl.EasySSLP rotocolSocketFactory.<init>(EasySSLProtocolSocketF actory.java:94)
    at com.mirth.connect.client.core.ServerConnection.<in it>(ServerConnection.java:70)
    at com.mirth.connect.client.core.ServerConnection.<in it>(ServerConnection.java:49)
    at com.mirth.connect.client.core.ServerConnectionFact ory.createServerConnection(ServerConnectionFactory .java:14)
    at com.mirth.connect.client.core.Client.<init>(Client .java:83)
    at com.mirth.connect.cli.CommandLineInterface.runShel l(CommandLineInterface.java:164)
    at com.mirth.connect.cli.CommandLineInterface.run(Com mandLineInterface.java:150)
    at com.mirth.connect.cli.CommandLineInterface.<init>( CommandLineInterface.java:92)
    ... 5 more
    Caused by: java.lang.NullPointerException
    at org.apache.commons.ssl.TrustMaterial.<init>(TrustM aterial.java:132)
    at org.apache.commons.ssl.TrustMaterial.<init>(TrustM aterial.java:123)
    at org.apache.commons.ssl.TrustMaterial.<clinit>(Trus tMaterial.java:113)


    It is most strange since the same command on another system is starting the CLI

    The configuration is:
    MirthConnect version 3.0.0.6931
    Java: 1.7.0_95
    OS: CentOS 7.2.1511 (Core)

    I checked if communication on the port is possible via telnet and it is ok
    I checked the folder Mirthconnect/cli-lib and found no changes to a system where it is working
    I checked the rights of the files and folders and found no differences
    I have found no logging in Mirth.log

    Can someone help me with this issue?

    Best regards, Nico

  • #2
    mccommand also returns exception

    Also the command ./mccommand -a https://127.0.0.1:8443 -u <user> -p <wachtwoord>

    returns the same exception:
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Construc tor.java:526)
    at com.mirth.connect.cli.launcher.CommandLineLauncher .main(CommandLineLauncher.java:53)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.install4j.runtime.launcher.Launcher.main(Unkno wn Source)
    Caused by: java.lang.ExceptionInInitializerError
    at org.apache.commons.ssl.SSL.<init>(SSL.java:184)
    at org.apache.commons.ssl.SSLClient.<init>(SSLClient. java:59)
    at org.apache.commons.ssl.HttpSecureProtocol.<init>(H ttpSecureProtocol.java:55)
    at org.apache.commons.httpclient.contrib.ssl.EasySSLP rotocolSocketFactory.<init>(EasySSLProtocolSocketF actory.java:94)
    at com.mirth.connect.client.core.ServerConnection.<in it>(ServerConnection.java:70)
    at com.mirth.connect.client.core.ServerConnection.<in it>(ServerConnection.java:49)
    at com.mirth.connect.client.core.ServerConnectionFact ory.createServerConnection(ServerConnectionFactory .java:14)
    at com.mirth.connect.client.core.Client.<init>(Client .java:83)
    at com.mirth.connect.cli.CommandLineInterface.runShel l(CommandLineInterface.java:164)
    at com.mirth.connect.cli.CommandLineInterface.run(Com mandLineInterface.java:150)
    at com.mirth.connect.cli.CommandLineInterface.<init>( CommandLineInterface.java:92)
    ... 11 more
    Caused by: java.lang.NullPointerException
    at org.apache.commons.ssl.TrustMaterial.<init>(TrustM aterial.java:132)
    at org.apache.commons.ssl.TrustMaterial.<init>(TrustM aterial.java:123)
    at org.apache.commons.ssl.TrustMaterial.<clinit>(Trus tMaterial.java:113)
    ... 22 more



    Any ideas of what might cause this?

    Br, Nico

    Comment


    • #3
      Cause found

      We found the cause. The file JAVA_HOME/lib/security/cacerts was missing.

      Comment

      Working...
      X