Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 45176 invoked from network); 21 Jun 2010 19:40:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Jun 2010 19:40:17 -0000 Received: (qmail 95815 invoked by uid 500); 21 Jun 2010 19:40:17 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 95756 invoked by uid 500); 21 Jun 2010 19:40:16 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 95748 invoked by uid 500); 21 Jun 2010 19:40:16 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 95745 invoked by uid 99); 21 Jun 2010 19:40:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jun 2010 19:40:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jun 2010 19:40:14 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5LJdq4b007937 for ; Mon, 21 Jun 2010 19:39:52 GMT Message-ID: <10910769.20541277149192088.JavaMail.jira@thor> Date: Mon, 21 Jun 2010 15:39:52 -0400 (EDT) From: "Bengt Rodehav (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-2829) "Unconnected sockets not implemented" exception in camel-ftp when using ftps In-Reply-To: <33270833.18491276864911781.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-2829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60197#action_60197 ] Bengt Rodehav commented on CAMEL-2829: -------------------------------------- Claus, I've tested your new re-connect logic and it works fine. So far I've only tested the producer side. Will try to test the consumer side as well. > "Unconnected sockets not implemented" exception in camel-ftp when using ftps > ---------------------------------------------------------------------------- > > Key: CAMEL-2829 > URL: https://issues.apache.org/activemq/browse/CAMEL-2829 > Project: Apache Camel > Issue Type: Bug > Components: camel-ftp > Affects Versions: 2.4.0 > Reporter: Bengt Rodehav > Assignee: Claus Ibsen > Attachments: FtpOperations.diff, FtpOperations.java, FtpsEndpoint.diff, FtpsEndpoint.java, FtpsOperations.diff, FtpsOperations.java > > > When using ftps with a secure data channel, camel-ftp cannot recover from a lost connection. This is due to a bug/flaw in the SFTPClient class in commons-net. Once a secure data channel has been established, SFTPClient replaces the connection factory with one that does not provide support for creating "unconnected sockets". > While waiting for a fix from the commons-net team (should they chosse to create one), a work-around in camel-ftp is to always create a new instance of SFTPClient for every connect attempt. > Attached are patches containing an attempt to implement the mentioned work-around. The classes, FtpsOperations, FtpsEndpoint and FtpOperations are involved. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.