Announcement

Collapse

Mirth Connect 3.12.0 Released!

Mirth Connect 3.12.0 is now available as an appliance update and on our GitHub page. This release includes database performance improvements, improves visual HL7 representation, message pruning, keystore handling, PDF generation, community contributions, and fixes several security vulnerabilities. This release also contains many improvements to commercial extensions. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

Connection failure with SFTP

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

  • Connection failure with SFTP

    We're getting the following "connection failure" message when attemping to use the "SFTP Reader" connector. Using an SFTP client (Core FTP) works just fine. Any insights would be greatly appreciated.
    ------------------

    org.mule.providers.FatalConnectException: ReconnectStrategy "org.mule.providers.SingleAttemptConnectionStrateg y" failed to reconnect receiver on endpoint "sftp://secureftp.myhost.com"
    at org.mule.providers.SingleAttemptConnectionStrategy .doConnect(SingleAttemptConnectionStrategy.java:34 )
    at org.mule.providers.AbstractConnectionStrategy.conn ect(AbstractConnectionStrategy.java:67)
    at org.mule.providers.AbstractMessageReceiver.start(A bstractMessageReceiver.java:396)
    at org.mule.providers.AbstractConnector.registerListe ner(AbstractConnector.java:518)
    at org.mule.impl.model.AbstractModel.registerListener s(AbstractModel.java:221)
    at org.mule.impl.model.AbstractModel.start(AbstractMo del.java:353)
    at org.mule.MuleManager.start(MuleManager.java:730)
    at org.mule.config.builders.MuleXmlConfigurationBuild er.configure(MuleXmlConfigurationBuilder.java:207)
    at org.mule.config.builders.MuleXmlConfigurationBuild er.configure(MuleXmlConfigurationBuilder.java:194)
    at com.webreach.mirth.server.Mirth.startMule(Mirth.ja va:229)
    at com.webreach.mirth.server.Mirth.restartMule(Mirth. java:186)
    at com.webreach.mirth.server.Mirth.run(Mirth.java:117 )
    Caused by: org.mule.providers.FatalConnectException: ReconnectStrategy "org.mule.providers.SingleAttemptConnectionStrateg y" failed to reconnect receiver on endpoint "sftp://secureftp.myhost.com"
    at org.mule.providers.SingleAttemptConnectionStrategy .doConnect(SingleAttemptConnectionStrategy.java:34 )
    at org.mule.providers.AbstractConnectionStrategy.conn ect(AbstractConnectionStrategy.java:67)
    at org.mule.providers.AbstractMessageReceiver.connect (AbstractMessageReceiver.java:353)
    at org.mule.providers.SingleAttemptConnectionStrategy .doConnect(SingleAttemptConnectionStrategy.java:32 )
    ... 11 more
    Caused by: org.mule.providers.ConnectException: Initialisation Failure:
    at org.mule.providers.AbstractMessageReceiver.connect (AbstractMessageReceiver.java:367)
    at org.mule.providers.SingleAttemptConnectionStrategy .doConnect(SingleAttemptConnectionStrategy.java:32 )
    ... 14 more
    Caused by: 4:
    at com.jcraft.jsch.ChannelSftp.cd(ChannelSftp.java:29 5)
    at com.webreach.mirth.connectors.sftp.SftpConnectionF actory.makeObject(SftpConnectionFactory.java:48)
    at org.apache.commons.pool.impl.GenericObjectPool.bor rowObject(GenericObjectPool.java:816)
    at com.webreach.mirth.connectors.sftp.SftpConnector.g etClient(SftpConnector.java:114)
    at com.webreach.mirth.connectors.sftp.SftpMessageRece iver.doConnect(SftpMessageReceiver.java:256)
    at org.mule.providers.AbstractMessageReceiver.connect (AbstractMessageReceiver.java:360)
    ... 15 more
    Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
    at java.lang.String.charAt(Unknown Source)
    at com.jcraft.jsch.ChannelSftp.remoteAbsolutePath(Cha nnelSftp.java:2156)
    at com.jcraft.jsch.ChannelSftp.cd(ChannelSftp.java:25 8)
    ... 20 more

    {}

  • #2
    Re:Connection failure with SFTP

    I've investigated a bit further and am wondering if there is something (undocumented) about the configuration, and specifically how Mirth creates the connection string for Mule (the open source library for SFTP, and others). Mule was a connection string that looks like, "sftp://user[email protected]/path/to/dir". The log file only shows "sftp://host", yet I have populated the Username, Password, and Move-to fields in Mirth.

    Am I missing something?

    Comment

    Working...
    X