Sun FTP Binding Component Connecting to SFTP Throws - javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection (Doc ID 1360639.1)

Last updated on NOVEMBER 02, 2016

Applies to:

Oracle Java CAPS Enterprise Service Bus - Version R6.2 and later
Information in this document applies to any platform.

Symptoms


When a FTP Binding Component (BC) configured with Implicit Secure Sockets Layer (SSL) attempts to connect to a given external service, the following exception error mesaage is logged in the server.log file:


javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:523)
at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:355)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:782)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1089)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:737)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReader.fill(BufferedReader.java:136)
at java.io.BufferedReader.readLine(BufferedReader.java:299)
at java.io.BufferedReader.readLine(BufferedReader.java:362)
at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:291)
at org.apache.commons.net.ftp.FTP._connectAction_(FTP.java:495)
at org.apache.commons.net.ftp.FTPClient._connectAction_(FTPClient.java:622)
at org.apache.commons.net.ftp.FTP.connect(FTP.java:395)
at com.sun.jbi.ftpbc.ftp.FtpFileProviderImpl.connect(FtpFileProviderImpl.java:966)


If the FTP-BC is configured for Explicit SSL, the server.log includes this exception:


FTPBC-E006001.Exception org.apache.commons.net.MalformedServerReplyException: Could not parse response code.
Server Reply: SSH-2.0-Sun_SSH_1.1.2 in open()
org.apache.commons.net.MalformedServerReplyException: Could not parse response code.
Server Reply: SSH-2.0-Sun_SSH_1.1.2
at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:308)
at org.apache.commons.net.ftp.FTP._connectAction_(FTP.java:424)
at org.apache.commons.net.ftp.FTPClient._connectAction_(FTPClient.java:622)
at org.apache.commons.net.ftp.FTP.connect(FTP.java:392)
at com.sun.jbi.ftpbc.ftp.FtpFileProviderImpl.connect(FtpFileProviderImpl.java:966)
at com.sun.jbi.ftpbc.ftp.FtpFileClientImpl.open(FtpFileClientImpl.java:348)
at com.sun.jbi.ftpbc.ftp.FtpFileClientImpl.connect(FtpFileClientImpl.java:590)
at com.sun.jbi.ftpbc.ftp.FtpFileClientImpl.connect(FtpFileClientImpl.java:578)
at com.sun.jbi.ftpbc.InboundMessageProcessor.run(InboundMessageProcessor.java:278)
at java.lang.Thread.run(Thread.java:595)





Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms