Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error polling in channel due to a bug in the JSch library #4080

Closed
rbeckman-nextgen opened this issue May 11, 2020 · 3 comments
Closed

Error polling in channel due to a bug in the JSch library #4080

rbeckman-nextgen opened this issue May 11, 2020 · 3 comments
Labels
Fix-Commited Issue fixed and will be available in milestone Internal-Issue-Created An issue has been created in NextGen's internal issue tracker RS-5527 RS-8545 triaged
Milestone

Comments

@rbeckman-nextgen
Copy link
Collaborator

There is an issue involving a channel that polls from a sftp server and Mirth Connect will throw an error in the server log:

[2017-05-16 01:07:00,276] ERROR (com.mirth.connect.connectors.file.FileReceiver:207): Error polling in channel: b34b5ec1-c36e-4407-9d98-02180d3a770e
com.jcraft.jsch.JSchException: Session.connect: java.security.SignatureException: Invalid encoding for signature
at com.jcraft.jsch.Session.connect(Session.java:565)
at com.mirth.connect.connectors.file.filesystems.SftpConnection.(SftpConnection.java:160)
at com.mirth.connect.connectors.file.filesystems.FileSystemConnectionFactory.makeObject(FileSystemConnectionFactory.java:140)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:861)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:435)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:363)
at com.mirth.connect.connectors.file.FileConnector.getConnection(FileConnector.java:174)
at com.mirth.connect.connectors.file.FileReceiver.listFiles(FileReceiver.java:552)
at com.mirth.connect.connectors.file.FileReceiver.poll(FileReceiver.java:203)
at com.mirth.connect.donkey.server.channel.PollConnectorJob.execute(PollConnectorJob.java:49)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)

Believe this issue may be caused by a bug in the JSch library that Mirth Connect uses: https://sourceforge.net/p/jsch/bugs/111/.

Imported Issue. Original Details:
Jira Issue Key: MIRTH-4203
Reporter: kgouw
Created: 2017-07-27T09:10:31.000-0700

@rbeckman-nextgen
Copy link
Collaborator Author

Looks like someone made an unofficial fix for it: [https://sourceforge.net/p/jsch/bugs/111/#b2eb]

As a workaround you might try including jsch-111-bugfix-1.0.0.jar (either directly in server-lib, or in custom-lib with includecustomlib enabled in mirth.properties).

Then in a global deploy script:

org.jurr.jsch.bugfix111.JSCH111BugFix.init();

It's unofficial and an "at your own risk" sort of thing though.

Imported Comment. Original Details:
Author: narupley
Created: 2017-09-20T16:19:41.000-0700

@cturczynskyj cturczynskyj added the closed-due-to-inactivity This is being closed due to age. If this is still an issue, comment and we can reopen. label Mar 1, 2021
@pladesma pladesma closed this as completed Mar 1, 2021
@Akatixxc
Copy link

Akatixxc commented Dec 8, 2021

They have fixed this issue in JSch 0.1.55: http://www.jcraft.com/jsch/ChangeLog. Can the package be updated?

@tonygermano tonygermano reopened this Jan 26, 2022
@tonygermano tonygermano removed the closed-due-to-inactivity This is being closed due to age. If this is still an issue, comment and we can reopen. label Jan 26, 2022
@pladesma pladesma added Internal-Issue-Created An issue has been created in NextGen's internal issue tracker RS-5527 triaged labels Feb 7, 2022
@joaryche joaryche added the Fix-Commited Issue fixed and will be available in milestone label Jul 5, 2022
@joaryche
Copy link
Collaborator

joaryche commented Jul 5, 2022

jsch library updated for MC version 4.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix-Commited Issue fixed and will be available in milestone Internal-Issue-Created An issue has been created in NextGen's internal issue tracker RS-5527 RS-8545 triaged
Projects
None yet
Development

No branches or pull requests

7 participants