Announcement

Collapse
No announcement yet.

Unable to connect to REST API of Mirth from external server

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

  • Unable to connect to REST API of Mirth from external server

    https://<<server_name>>:8093/api/users

    I am using the following Mirth and Java Version:
    Mirth Connect Server 3.4.2.8129
    Built on September 9, 2016
    Server ID: a05fc723-452e-488b-b514-c13ab0e64333
    Java version: 1.7.0_51

    I am also trying to connect to REST API but getting the error below. What is causing this issue and how to resolve it? Will the above solution also work for my issue.

    javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocke tImpl.java:953)
    at sun.security.ssl.SSLSocketImpl.performInitialHands hake(SSLSocketImpl.java:1332)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLS ocketImpl.java:1359)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLS ocketImpl.java:1343)
    at com.linoma.httpclient.conn.ssl.SSLConnectionSocket Factory.createLayeredSocket(Unknown Source)
    at com.linoma.httpclient.conn.ssl.SSLConnectionSocket Factory.connectSocket(Unknown Source)
    at com.linoma.httpclient.impl.conn.DefaultHttpClientC onnectionOperator.connect(Unknown Source)
    at com.linoma.httpclient.impl.conn.PoolingHttpClientC onnectionManager.connect(Unknown Source)
    at com.linoma.httpclient.impl.execchain.MainClientExe c.establishRoute(Unknown Source)
    at com.linoma.httpclient.impl.execchain.MainClientExe c.execute(Unknown Source)
    at com.linoma.httpclient.impl.execchain.ProtocolExec. execute(Unknown Source)
    at com.linoma.httpclient.impl.execchain.RetryExec.exe cute(Unknown Source)
    at com.linoma.httpclient.impl.execchain.RedirectExec. execute(Unknown Source)
    at com.linoma.httpclient.impl.client.InternalHttpClie nt.doExecute(Unknown Source)
    at com.linoma.httpclient.impl.client.CloseableHttpCli ent.execute(Unknown Source)
    at com.linoma.httpclient.impl.client.CloseableHttpCli ent.execute(Unknown Source)
    at com.linoma.httpclient.impl.client.CloseableHttpCli ent.execute(Unknown Source)
    at com.linoma.ga.projects.resources.RESTResource.test (Unknown Source)
    at com.linoma.ga.projects.resources.ResourceTester.su bmitParameters(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor3097.invoke(Unk nown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.el.parser.AstValue.invoke(AstValue.java :278)
    at org.apache.el.MethodExpressionImpl.invoke(MethodEx pressionImpl.java:273)
    at org.apache.myfaces.view.facelets.el.ContextAwareTa gMethodExpression.invoke(ContextAwareTagMethodExpr ession.java:96)
    at org.apache.myfaces.application.ActionListenerImpl. processAction(ActionListenerImpl.java:74)
    at org.primefaces.application.DialogActionListener.pr ocessAction(DialogActionListener.java:45)
    at javax.faces.component.UICommand.broadcast(UIComman d.java:120)
    at javax.faces.component.UIViewRoot._broadcastAll(UIV iewRoot.java:1172)
    at javax.faces.component.UIViewRoot.broadcastEvents(U IViewRoot.java:365)
    at javax.faces.component.UIViewRoot._process(UIViewRo ot.java:1658)
    at javax.faces.component.UIViewRoot.processApplicatio n(UIViewRoot.java:862)
    at org.apache.myfaces.lifecycle.InvokeApplicationExec utor.execute(InvokeApplicationExecutor.java:42)
    at org.apache.myfaces.lifecycle.LifecycleImpl.execute Phase(LifecycleImpl.java:196)
    at org.apache.myfaces.lifecycle.LifecycleImpl.execute (LifecycleImpl.java:143)
    at javax.faces.webapp.FacesServlet.service(FacesServl et.java:198)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:303)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
    at com.linoma.ga.core.upload.FileUploadFilter.doFilte r(Unknown Source)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
    at org.apache.tomcat.websocket.server.WsFilter.doFilt er(WsFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
    at com.linoma.dpa.security.SecurityFilter.doFilter(Un known Source)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
    at com.linoma.ga.ui.core.filter.IFrameEmbeddingFilter .doFilter(Unknown Source)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
    at com.linoma.ga.ui.core.filter.NoCacheFilter.doFilte r(Unknown Source)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
    at com.linoma.ga.ui.core.filter.IECompatibilityModeFi lter.doFilter(Unknown Source)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
    at com.linoma.dpa.j2ee.AdminRedirectFilter.doFilter(U nknown Source)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:220)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:122)
    at org.apache.catalina.authenticator.AuthenticatorBas e.invoke(AuthenticatorBase.java:503)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:170)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:103)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:116)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:421)
    at org.apache.coyote.http11.AbstractHttp11Processor.p rocess(AbstractHttp11Processor.java:1070)
    at org.apache.coyote.AbstractProtocol$AbstractConnect ionHandler.process(AbstractProtocol.java:611)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProce ssor.run(JIoEndpoint.java:316)
    at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:615)
    at org.apache.tomcat.util.threads.TaskThread$Wrapping Runnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:745)
    Caused by: java.io.EOFException: SSL peer shut down incorrectly
    at sun.security.ssl.InputRecord.read(InputRecord.java :482)
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocke tImpl.java:934)
    ... 72 more
    Last edited by sabidi; 04-19-2017, 09:00 AM. Reason: forgot the mirth version

  • #2
    verify the port you are using is one that is in mirth connect. the default is 8443.

    you can try this:

    basically get the portecle utility and load up the keystore from appdata within the mirth connect directory. delete the mirthconnect alias. (ensure all apps using java have been shut down prior) then restart the Mirth Connect service and it should work.

    See this for details:
    http://www.mirthcorp.com/community/f...d.php?t=216729

    Comment


    • #3
      I downloaded the Portecle and deleted the MirthConnect alias and saved back the keystore in the appdata directory. Before doing that I had make sure all apps using keystore or java is down.

      Now I am getting this error message. What does this means?

      Date/Time Message
      4/21/17 11:58:11 AM Loading REST connection information.
      4/21/17 11:58:11 AM sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderE xception: unable to find valid certification path to requested target
      4/21/17 11:58:11 AM Closing the connection.

      Comment

      Working...
      X