web stats
mirth-cli-launcher returns exception - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 01-17-2020, 02:19 AM
nicovo nicovo is offline
What's HL7?
 
Join Date: Jan 2020
Posts: 3
nicovo is on a distinguished road
Default 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
Reply With Quote
  #2  
Old 01-22-2020, 03:14 AM
nicovo nicovo is offline
What's HL7?
 
Join Date: Jan 2020
Posts: 3
nicovo is on a distinguished road
Default 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
Reply With Quote
  #3  
Old 02-04-2020, 12:27 AM
nicovo nicovo is offline
What's HL7?
 
Join Date: Jan 2020
Posts: 3
nicovo is on a distinguished road
Default Cause found

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

Tags
cli, exception, mirth-cli-launcher

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


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