OpenEsb FTP Adapter - Not able to read file

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

OpenEsb FTP Adapter - Not able to read file

bsri81@gmail.com
This post has NOT been accepted by the mailing list yet.
Hi,

I am using FTP adapter to transfer file from open source "DriveHq" FTP to my local system.
Sometimes I get below error:
java.io.IOException: Asynchronous failure: General SSLEngine problem
        at org.apache.commons.net.ftp.ssl.channel.SecureChannel.validateChannel(SecureChannel.java:106)
        at org.apache.commons.net.ftp.ssl.channel.SecureChannel.read(SecureChannel.java:114)
        at org.apache.commons.net.ftp.ssl.channel.ControlChannelProcessor.processInbound(ControlChannelProcessor.java:48)
        at org.apache.commons.net.ftp.ssl.channel.SecureChannel.fireReadEvent(SecureChannel.java:315)
        at org.apache.commons.net.ftp.ssl.channel.SecureChannelManager.fireEvents(SecureChannelManager.java:25)
        at org.apache.commons.net.ftp.ssl.ChannelSelectorDispatcher.run(ChannelSelectorDispatcher.java:288)
        at java.lang.Thread.run(Thread.java:745)
Caused by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem
        at sun.security.ssl.Handshaker.checkThrown(Handshaker.java:1431)
        at sun.security.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:535)
        at sun.security.ssl.SSLEngineImpl.writeAppRecord(SSLEngineImpl.java:1214)
        at sun.security.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:1186)
        at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:469)
        at org.apache.commons.net.ftp.ssl.channel.SecureChannel.handshake(SecureChannel.java:406)
        at org.apache.commons.net.ftp.ssl.channel.SecureChannel.decrypt(SecureChannel.java:184)
        at org.apache.commons.net.ftp.ssl.channel.SecureChannel.handshake(SecureChannel.java:394)
        at org.apache.commons.net.ftp.ssl.channel.SecureChannel.handleRead(SecureChannel.java:429)
        at org.apache.commons.net.ftp.ssl.ChannelSelectorDispatcher.run(ChannelSelectorDispatcher.java:314)
        ... 1 more
Caused by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
        at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1728)
        at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:304)
        at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
        at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1509)
        at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
        at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
        at sun.security.ssl.Handshaker$1.run(Handshaker.java:919)
        at sun.security.ssl.Handshaker$1.run(Handshaker.java:916)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.security.ssl.Handshaker$DelegatedTask.run(Handshaker.java:1369)
        at org.apache.commons.net.ftp.ssl.channel.SecureChannel.doTasks(SecureChannel.java:519)
        at org.apache.commons.net.ftp.ssl.channel.SecureChannel.handshake(SecureChannel.java:390)
        ... 5 more
Caused by: sun.security.validator.ValidatorException: No trusted certificate found
        at sun.security.validator.SimpleValidator.buildTrustedChain(SimpleValidator.java:394)
        at sun.security.validator.SimpleValidator.engineValidate(SimpleValidator.java:133)
        at sun.security.validator.Validator.validate(Validator.java:260)
        at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
        at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:281)
        at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:136)
        at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1496)


Sometimes no error:
2017-02-09T15:08:26.354+0530 INFO [com.sun.jbi.management.DeploymentService] (RMI TCP Connection(109)-192.168.56.1) JBIMA0402: Service Assembly file:/D:/openESB/OpenESB-Quickstart-Standalone-v305/OpenESB-SE-3.0.5/OE-Instance/server/jbi/tmp/upload/1fc8160615a2218124e7d84/FTPTestRaviCA.zip has been deployed.
2017-02-09T15:08:26.370+0530 INFO [com.sun.jbi.management] (RMI TCP Connection(109)-192.168.56.1) Starting service assembly FTPTestRaviCA on target server.
2017-02-09T15:08:26.370+0530 INFO [com.sun.jbi.engine.bpel.BPELSEDeployer] (FTPTestRaviCA-FTPTestRavi) BPJBI-5009: SU.init for FTPTestRaviCA-FTPTestRavi is started, Business Process packaged in this SU will be deployed
2017-02-09T15:08:26.385+0530 INFO [com.sun.jbi.engine.bpel.EngineHelper] (FTPTestRaviCA-FTPTestRavi) BPJBI-4010: Loaded BPEL, WSDL and XSD documents for FTPTestRaviCA-FTPTestRavi.
2017-02-09T15:08:26.385+0530 INFO [com.sun.jbi.engine.bpel.BPELSEDeployer] (FTPTestRaviCA-FTPTestRavi) BPJBI-5008: Activated an endpoint. Service name {http://enterprise.netbeans.org/bpel/FTPTestRavi/FTPTestRavi}PartnerLink1, endpoint name InboundOneWayMessagingPortTypeRole_myRole
2017-02-09T15:08:26.385+0530 INFO [com.sun.jbi.engine.bpel.BPELSEDeployer] (FTPTestRaviCA-FTPTestRavi) BPJBI-5010: SU.init for FTPTestRaviCA-FTPTestRavi is completed, Business Process packaged in this SU are deployed
Cannot find CatalogManager.properties
2017-02-09T15:08:26.417+0530 INFO [sun-ftp-binding.com.sun.jbi.ftpbc.FTPBindingDeployer] (FTPTestRaviCA-sun-ftp-binding) FTPBC-R002002: Initializing service unit: FTPTestRaviCA-sun-ftp-binding from D:\openESB\OpenESB-Quickstart-Standalone-v305\OpenESB-SE-3.0.5\OE-Instance\server\jbi\service-assemblies\FTPTestRaviCA\FTPTestRaviCA-sun-ftp-binding\sun-ftp-binding.
2017-02-09T15:08:26.417+0530 INFO [sun-ftp-binding.com.sun.jbi.ftpbc.ServiceUnitImpl] (FTPTestRaviCA-sun-ftp-binding) FTPBC-R003001: ServiceUnit init method called.
Cannot find CatalogManager.properties
2017-02-09T15:08:26.432+0530 INFO [sun-ftp-binding.com.sun.jbi.ftpbc.FTPBindingDeployer] (FTPTestRaviCA-sun-ftp-binding) FTPBC-R002003: Successfully initialized service unit FTPTestRaviCA-sun-ftp-binding.
2017-02-09T15:08:26.432+0530 INFO [com.sun.jbi.engine.bpel.BPELSEDeployer] (FTPTestRaviCA-FTPTestRavi) BPJBI-5011: SU.start for FTPTestRaviCA-FTPTestRavi is started
2017-02-09T15:08:26.432+0530 INFO [com.sun.jbi.engine.bpel.BPELSEDeployer] (FTPTestRaviCA-FTPTestRavi) BPJBI-5012: SU.start for FTPTestRaviCA-FTPTestRavi is completed
2017-02-09T15:08:26.448+0530 INFO [sun-ftp-binding.com.sun.jbi.ftpbc.FTPBindingDeployer] (FTPTestRaviCA-sun-ftp-binding) FTPBC-R002004: Starting service unit: FTPTestRaviCA-sun-ftp-binding.
2017-02-09T15:08:26.448+0530 INFO [sun-ftp-binding.com.sun.jbi.ftpbc.ServiceUnitImpl] (FTPTestRaviCA-sun-ftp-binding) FTPBC-R003002: ServiceUnit start method called.
2017-02-09T15:08:26.448+0530 INFO [sun-ftp-binding.com.sun.jbi.ftpbc.ServiceUnitImpl] (FTPTestRaviCA-sun-ftp-binding) FTPBC-R003003: Successfully started service unit: FTPTestRaviCA-sun-ftp-binding.
2017-02-09T15:08:26.448+0530 INFO [sun-ftp-binding.com.sun.jbi.ftpbc.InboundMessageProcessor] (ftpbc-ib-Thread-880) FTPBC-R004001: Endpoint service name is [{http://j2ee.netbeans.org/wsdl/FTPTestRavi/src/FTPTest}InboundOneWayMessagingService] and endpoint name is [FTPTest_InboundOneWayMessagingPort].
2017-02-09T15:08:26.448+0530 INFO [sun-ftp-binding.com.sun.jbi.ftpbc.FTPBindingDeployer] (FTPTestRaviCA-sun-ftp-binding) FTPBC-R002005: Successfully started FTP BC.
2017-02-09T15:08:26.448+0530 INFO [sun-ftp-binding.com.sun.jbi.ftpbc.InboundMessageProcessor] (ftpbc-ib-Thread-880) ================ Start Recovery =======================
2017-02-09T15:08:26.448+0530 INFO [sun-ftp-binding.com.sun.jbi.ftpbc.InboundMessageProcessor] (ftpbc-ib-Thread-880) ================ End Recovery : no recovery log found =======================


I have imported certificates (reference: https://www.digicert.com/ssl-support/pem-ssl-creation.htm) and created keystore, used same in configuring the FTP Adapter.

Can you please suggest what could be the issue.


Regards,
Sri
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: OpenEsb FTP Adapter - Not able to read file

vishnu.piskala

Hi

 

Try importing the certificate in the truststore and specify the keystore, keystore password, truststore and truststore password using System properties.

 

-Djavax.net.ssl.keyStore= "<file location>"

-Djavax.net.ssl.keyStorePassword= "<password>"

-Djavax.net.ssl.trustStore=<some .jks file>

-Djavax.net.ssl.trustStorePassword= "<password>"

 

Set these values in JVM startup settings

 

Regards

Vishnu

www.logicoy.com

 

 

 

From: [hidden email] [via OpenESB Community Forum] [mailto:[hidden email]]
Sent: Thursday, February 9, 2017 3:20 PM
To: vishnu.piskala <[hidden email]>
Subject: OpenEsb FTP Adapter - Not able to read file

 

Hi,

I am using FTP adapter to transfer file from open source "DriveHq" FTP to my local system.
Sometimes I get below error:
java.io.IOException: Asynchronous failure: General SSLEngine problem
        at org.apache.commons.net.ftp.ssl.channel.SecureChannel.validateChannel(SecureChannel.java:106)
        at org.apache.commons.net.ftp.ssl.channel.SecureChannel.read(SecureChannel.java:114)
        at org.apache.commons.net.ftp.ssl.channel.ControlChannelProcessor.processInbound(ControlChannelProcessor.java:48)
        at org.apache.commons.net.ftp.ssl.channel.SecureChannel.fireReadEvent(SecureChannel.java:315)
        at org.apache.commons.net.ftp.ssl.channel.SecureChannelManager.fireEvents(SecureChannelManager.java:25)
        at org.apache.commons.net.ftp.ssl.ChannelSelectorDispatcher.run(ChannelSelectorDispatcher.java:288)
        at java.lang.Thread.run(Thread.java:745)
Caused by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem
        at sun.security.ssl.Handshaker.checkThrown(Handshaker.java:1431)
        at sun.security.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:535)
        at sun.security.ssl.SSLEngineImpl.writeAppRecord(SSLEngineImpl.java:1214)
        at sun.security.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:1186)
        at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:469)
        at org.apache.commons.net.ftp.ssl.channel.SecureChannel.handshake(SecureChannel.java:406)
        at org.apache.commons.net.ftp.ssl.channel.SecureChannel.decrypt(SecureChannel.java:184)
        at org.apache.commons.net.ftp.ssl.channel.SecureChannel.handshake(SecureChannel.java:394)
        at org.apache.commons.net.ftp.ssl.channel.SecureChannel.handleRead(SecureChannel.java:429)
        at org.apache.commons.net.ftp.ssl.ChannelSelectorDispatcher.run(ChannelSelectorDispatcher.java:314)
        ... 1 more
Caused by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
        at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1728)
        at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:304)
        at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
        at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1509)
        at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
        at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
        at sun.security.ssl.Handshaker$1.run(Handshaker.java:919)
        at sun.security.ssl.Handshaker$1.run(Handshaker.java:916)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.security.ssl.Handshaker$DelegatedTask.run(Handshaker.java:1369)
        at org.apache.commons.net.ftp.ssl.channel.SecureChannel.doTasks(SecureChannel.java:519)
        at org.apache.commons.net.ftp.ssl.channel.SecureChannel.handshake(SecureChannel.java:390)
        ... 5 more
Caused by: sun.security.validator.ValidatorException: No trusted certificate found
        at sun.security.validator.SimpleValidator.buildTrustedChain(SimpleValidator.java:394)
        at sun.security.validator.SimpleValidator.engineValidate(SimpleValidator.java:133)
        at sun.security.validator.Validator.validate(Validator.java:260)
        at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
        at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:281)
        at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:136)
        at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1496)


Sometimes no error:
2017-02-09T15:08:26.354+0530 INFO [com.sun.jbi.management.DeploymentService] (RMI TCP Connection(109)-192.168.56.1) JBIMA0402: Service Assembly file:/D:/openESB/OpenESB-Quickstart-Standalone-v305/OpenESB-SE-3.0.5/OE-Instance/server/jbi/tmp/upload/1fc8160615a2218124e7d84/FTPTestRaviCA.zip has been deployed.
2017-02-09T15:08:26.370+0530 INFO [com.sun.jbi.management] (RMI TCP Connection(109)-192.168.56.1) Starting service assembly FTPTestRaviCA on target server.
2017-02-09T15:08:26.370+0530 INFO [com.sun.jbi.engine.bpel.BPELSEDeployer] (FTPTestRaviCA-FTPTestRavi) BPJBI-5009: SU.init for FTPTestRaviCA-FTPTestRavi is started, Business Process packaged in this SU will be deployed
2017-02-09T15:08:26.385+0530 INFO [com.sun.jbi.engine.bpel.EngineHelper] (FTPTestRaviCA-FTPTestRavi) BPJBI-4010: Loaded BPEL, WSDL and XSD documents for FTPTestRaviCA-FTPTestRavi.
2017-02-09T15:08:26.385+0530 INFO [com.sun.jbi.engine.bpel.BPELSEDeployer] (FTPTestRaviCA-FTPTestRavi) BPJBI-5008: Activated an endpoint. Service name {http://enterprise.netbeans.org/bpel/FTPTestRavi/FTPTestRavi}PartnerLink1, endpoint name InboundOneWayMessagingPortTypeRole_myRole
2017-02-09T15:08:26.385+0530 INFO [com.sun.jbi.engine.bpel.BPELSEDeployer] (FTPTestRaviCA-FTPTestRavi) BPJBI-5010: SU.init for FTPTestRaviCA-FTPTestRavi is completed, Business Process packaged in this SU are deployed
Cannot find CatalogManager.properties
2017-02-09T15:08:26.417+0530 INFO [sun-ftp-binding.com.sun.jbi.ftpbc.FTPBindingDeployer] (FTPTestRaviCA-sun-ftp-binding) FTPBC-R002002: Initializing service unit: FTPTestRaviCA-sun-ftp-binding from D:\openESB\OpenESB-Quickstart-Standalone-v305\OpenESB-SE-3.0.5\OE-Instance\server\jbi\service-assemblies\FTPTestRaviCA\FTPTestRaviCA-sun-ftp-binding\sun-ftp-binding.
2017-02-09T15:08:26.417+0530 INFO [sun-ftp-binding.com.sun.jbi.ftpbc.ServiceUnitImpl] (FTPTestRaviCA-sun-ftp-binding) FTPBC-R003001: ServiceUnit init method called.
Cannot find CatalogManager.properties
2017-02-09T15:08:26.432+0530 INFO [sun-ftp-binding.com.sun.jbi.ftpbc.FTPBindingDeployer] (FTPTestRaviCA-sun-ftp-binding) FTPBC-R002003: Successfully initialized service unit FTPTestRaviCA-sun-ftp-binding.
2017-02-09T15:08:26.432+0530 INFO [com.sun.jbi.engine.bpel.BPELSEDeployer] (FTPTestRaviCA-FTPTestRavi) BPJBI-5011: SU.start for FTPTestRaviCA-FTPTestRavi is started
2017-02-09T15:08:26.432+0530 INFO [com.sun.jbi.engine.bpel.BPELSEDeployer] (FTPTestRaviCA-FTPTestRavi) BPJBI-5012: SU.start for FTPTestRaviCA-FTPTestRavi is completed
2017-02-09T15:08:26.448+0530 INFO [sun-ftp-binding.com.sun.jbi.ftpbc.FTPBindingDeployer] (FTPTestRaviCA-sun-ftp-binding) FTPBC-R002004: Starting service unit: FTPTestRaviCA-sun-ftp-binding.
2017-02-09T15:08:26.448+0530 INFO [sun-ftp-binding.com.sun.jbi.ftpbc.ServiceUnitImpl] (FTPTestRaviCA-sun-ftp-binding) FTPBC-R003002: ServiceUnit start method called.
2017-02-09T15:08:26.448+0530 INFO [sun-ftp-binding.com.sun.jbi.ftpbc.ServiceUnitImpl] (FTPTestRaviCA-sun-ftp-binding) FTPBC-R003003: Successfully started service unit: FTPTestRaviCA-sun-ftp-binding.
2017-02-09T15:08:26.448+0530 INFO [sun-ftp-binding.com.sun.jbi.ftpbc.InboundMessageProcessor] (ftpbc-ib-Thread-880) FTPBC-R004001: Endpoint service name is [{http://j2ee.netbeans.org/wsdl/FTPTestRavi/src/FTPTest}InboundOneWayMessagingService] and endpoint name is [FTPTest_InboundOneWayMessagingPort].
2017-02-09T15:08:26.448+0530 INFO [sun-ftp-binding.com.sun.jbi.ftpbc.FTPBindingDeployer] (FTPTestRaviCA-sun-ftp-binding) FTPBC-R002005: Successfully started FTP BC.
2017-02-09T15:08:26.448+0530 INFO [sun-ftp-binding.com.sun.jbi.ftpbc.InboundMessageProcessor] (ftpbc-ib-Thread-880) ================ Start Recovery =======================
2017-02-09T15:08:26.448+0530 INFO [sun-ftp-binding.com.sun.jbi.ftpbc.InboundMessageProcessor] (ftpbc-ib-Thread-880) ================ End Recovery : no recovery log found =======================


I have imported certificates (reference: https://www.digicert.com/ssl-support/pem-ssl-creation.htm) and created keystore, used same in configuring the FTP Adapter.

Can you please suggest what could be the issue.


Regards,
Sri


If you reply to this email, your message will be added to the discussion below:

http://openesb-community-forum.794670.n2.nabble.com/OpenEsb-FTP-Adapter-Not-able-to-read-file-tp7581501.html

To start a new topic under OpenESB Community Forum, email [hidden email]
To unsubscribe from OpenESB Community Forum, click here.
NAML

Loading...