My Oracle Support Banner

Batch SFTP Adapter fails to connect when "Authentication type" is set to PUBLICKEY (Doc ID 1408374.1)

Last updated on JULY 01, 2019

Applies to:

Oracle Java CAPS - Version 5.1.3 and later
Information in this document applies to any platform.
***Checked for relevance on 04-December-2013***

Symptoms

Batch SFTP Adapter fails to connect to SFTP server when "Authentication type" is set to PUBLICKEY.

The underlying error is "Authentication failed when connecting to the server".

FINEST level logging for the Batch Adapter ("STC.eWay.batch") shows :-

[#|2012-02-07T10:57:24.891+0000|FINE|IS5.1.3|STC.eWay.batch.com.stc.connector.ssh.ftp.client.impl.SFTPClientImpl|_ThreadID=111; ThreadName=JMS Async S93; Context=dpQuitManager-dev/qMapAdtToQuitManager_cmQuitManager_jcdMa_u002D_285114815_ejb;|attempt connection to external ...|#]

[#|2012-02-07T10:57:24.891+0000|FINE|IS5.1.3|STC.eWay.batch.com.stc.connector.ssh.ftp.client.impl.SFTPClientImpl|_ThreadID=111; ThreadName=JMS Async S93; Context=dpQuitManager-dev/qMapAdtToQuitManager_cmQuitManager_jcdMa_u002D_285114815_ejb;|connectWithAuthentication() enter|#]

[#|2012-02-07T10:57:25.529+0000|FINE|IS5.1.3|STC.eWay.batch.com.stc.connector.ssh.ftp.client.impl.SFTPClientImpl|_ThreadID=111; ThreadName=JMS Async S93; Context=dpQuitManager-dev/qMapAdtToQuitManager_cmQuitManager_jcdMa_u002D_285114815_ejb;|connect to SSH server host=<HOSTNAME>=22|#]

[#|2012-02-07T10:57:25.993+0000|FINE|IS5.1.3|STC.eWay.batch.com.stc.connector.ssh.ftp.client.impl.SFTPClientImpl|_ThreadID=111; ThreadName=JMS Async S93; Context=dpQuitManager-dev/qMapAdtToQuitManager_cmQuitManager_jcdMa_u002D_285114815_ejb;|SSH ver=2|#]

[#|2012-02-07T10:57:25.993+0000|FINE|IS5.1.3|STC.eWay.batch.com.stc.connector.ssh.ftp.client.impl.SFTPClientImpl|_ThreadID=111; ThreadName=JMS Async S93; Context=dpQuitManager-dev/qMapAdtToQuitManager_cmQuitManager_jcdMa_u002D_285114815_ejb;|do public key authentiation enter|#]

[#|2012-02-07T10:57:28.090+0000|FINE|IS5.1.3|STC.eWay.batch.com.stc.connector.ssh.ftp.client.impl.SFTPClientImpl|_ThreadID=111; ThreadName=JMS Async S93; Context=dpQuitManager-dev/qMapAdtToQuitManager_cmQuitManager_jcdMa_u002D_285114815_ejb;|User is NOT authenticated.... Authenticating now....|#]

[#|2012-02-07T10:57:28.110+0000|FINE|IS5.1.3|STC.eWay.batch.com.stc.connector.ssh.ftp.client.impl.SFTPClientImpl|_ThreadID=111; ThreadName=JMS Async S93; Context=dpQuitManager-dev/qMapAdtToQuitManager_cmQuitManager_jcdMa_u002D_285114815_ejb;|auth return: SshAuthentication.FAILED|#]

[#|2012-02-07T10:57:28.111+0000|FINE|IS5.1.3|STC.eWay.batch.com.stc.connector.ssh.ftp.client.impl.SFTPClientImpl|_ThreadID=111; ThreadName=JMS Async S93; Context=dpQuitManager-dev/qMapAdtToQuitManager_cmQuitManager_jcdMa_u002D_285114815_ejb;|do public key authentiation exit|#]

[#|2012-02-07T10:57:28.191+0000|SEVERE|IS5.1.3|STC.eWay.batch.sftp.ra.com.stc.connector.batchadapter.eway.sftp.SFTPEwayConnection|_ThreadID=111; ThreadName=JMS Async S93; Context=dpQuitManager-dev/qMapAdtToQuitManager_cmQuitManager_jcdMa_u002D_285114815_ejb;|Batch SFTP eWay connection initialization error, message=[Authentication failed when connecting to the server...]., Error message:Authentication failed when connecting to the server...|#]

[#|2012-02-07T10:57:28.191+0000|FINE|IS5.1.3|STC.eWay.batch.sftp.ra.com.stc.connector.batchadapter.eway.sftp.SFTPEwayConnection|_ThreadID=111; ThreadName=JMS Async S93; Context=dpQuitManager-dev/qMapAdtToQuitManager_cmQuitManager_jcdMa_u002D_285114815_ejb;|cleanup called.|#]

[#|2012-02-07T10:57:28.191+0000|INFO|IS5.1.3|STC.eWay.framework.management.com.stc.connector.management.util.Alerter|_ThreadID=111; ThreadName=JMS Async S93; Context=dpQuitManager-dev/qMapAdtToQuitManager_cmQuitManager_jcdMa_u002D_285114815_ejb;|sendAlert(), connection info: ConnectionInfo [ collaboration: cmQuitManager_jcdMapAdtToQuitManager1, project: NUHT-Gen | QuitManager, component: BatchSFTP1, deployment: dpQuitManager-dev, environment: NUHT-GenNUH-dev, logicalhost: <LOGICAL HOSTNAME> integration server: isGenNUH, project path: NUHT-Gen/QuitManager ], monitor: ObjectReference [ name: SeeBeyond:GUID={2D000000-C062FE56350100-AC1C0519-01},Name=dpQuitManager-dev|QuitManager|dpQuitManager-dev|cmQuitManager_jcdMapAdtToQuitManager1_BatchSFTP1 ], alert message: Batch SFTP eWay connection initialization error, message=[Authentication failed when connecting to the server...].|#]

[#|2012-02-07T10:57:28.193+0000|SEVERE|IS5.1.3|javax.enterprise.resource.resourceadapter|_ThreadID=111; ThreadName=JMS Async S93; Context=dpQuitManager-dev/qMapAdtToQuitManager_cmQuitManager_jcdMa_u002D_285114815_ejb;stacktrace-id=28;|RAR5038:Unexpected exception while creating resource
javax.resource.ResourceException: Failed to initialize the EwayConnection instance of type com.stc.connector.batchadapter.eway.sftp.SFTPEwayConnection; Exception : javax.resource.ResourceException: Batch SFTP eWay connection initialization error, message=[Authentication failed when connecting to the server...].
at com.stc.connector.framework.jca.system.STCManagedConnection.<init>(STCManagedConnection.java:149)
at com.stc.connector.framework.jca.system.STCManagedConnectionFactory.createManagedConnectionInternal(STCManagedConnectionFactory.java:252)
at com.stc.connector.framework.jca.system.STCManagedConnectionFactory.createManagedConnection(STCManagedConnectionFactory.java:302)
at com.sun.enterprise.resource.NoTxConnectorAllocator.createResource(NoTxConnectorAllocator.java:103)
at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyResources(IASNonSharedResourcePool.java:637)
at com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonSharedResourcePool.java:200)
at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResource(IASNonSharedResourcePool.java:357)
at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASNonSharedResourcePool.java:290)
at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:251)
at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:138)
at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:189)
at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:148)
at com.stc.connector.framework.client.appconn.STCApplicationConnectionFactory.getConnection(STCApplicationConnectionFactory.java:125)
at com.stc.connector.batchadapter.appconn.sftp.SFTP.createTarget4Proxy(SFTP.java:260)
at com.stc.connector.batchadapter.appconn.sftp.SFTP.getConfiguration(SFTP.java:148)
at NUHT_GenQuitManager.jcdMapAdtToQuitManager.receive(NUHT_GenQuitManager.jcdMapAdtToQuitManager:188)
at QuitManager.cmQuitManager_jcdMapAdtToQuitManager1.jcdMapAdtToQuitManager_Runtime_Handler.handleRequest(QuitManager.cmQuitManager_jcdMapAdtToQuitManager1.jcdMapAdtToQuitManager_Runtime_Handler:399)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:140)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:135)
at $Proxy50.handleRequest(Unknown Source)
at com.stc.codegen.JMSImpl.runtime.ejb.JMSEndPointListener.sendMessage(JMSEndPointListener.java:329)
at com.stc.codegen.JMSImpl.runtime.ejb.JMSEndPointListener.onContents(JMSEndPointListener.java:109)
at com.stc.codegen.JMSImpl.runtime.ejb.JMSEndPointListener.onMessage(JMSEndPointListener.java:170)
at sun.reflect.GeneratedMethodAccessor271.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:146)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:940)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:151)
at com.sun.ejb.containers.MessageBeanContainer.deliverMessage(MessageBeanContainer.java:948)
at com.sun.ejb.containers.MessageBeanListenerImpl.deliverMessage(MessageBeanListenerImpl.java:42)
at com.sun.enterprise.connectors.inflow.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:136)
at $Proxy63.onMessage(Unknown Source)
at com.stc.jmsjca.core.Delivery.deliverToEndpoint(Delivery.java:1309)
at com.stc.jmsjca.core.SerialDelivery.onMessage(SerialDelivery.java:231)
at com.stc.jms.client.SessionImpl.processAsyncDataAvailable(SessionImpl.java:1661)
at com.stc.jms.client.SessionImpl.processAsync(SessionImpl.java:1750)
at com.stc.jms.client.SessionImpl.asyncEnter(SessionImpl.java:1778)
at com.stc.jms.client.SessionImpl.access$500(SessionImpl.java:56)
at com.stc.jms.client.SessionImpl$1.run(SessionImpl.java:1556)
at com.stc.jms.client.SessionImpl$2.run(SessionImpl.java:1809)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.resource.ResourceException: Batch SFTP eWay connection initialization error, message=[Authentication failed when connecting to the server...].
at com.stc.connector.batchadapter.eway.sftp.SFTPEwayConnection.initialize(SFTPEwayConnection.java:163)
at com.stc.connector.framework.jca.system.STCManagedConnection.<init>(STCManagedConnection.java:142)
... 46 more
|#]

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.