SAP Knowledge Base Article - Preview

3193758 - PO/PI - File/FTP Adapter - Thread hangs for long time

Symptom

You encounter same connection issue which causes File/FTP channels hanging and some long-running threads in PI/PO system.

Default traces:
Channel Channel_Name: Error connecting to ftp server 'X.X.X.X': java.net.SocketException: Connection timed out (Read failed) (local port XX to address X.X.X.X (), remote host unknown)#
Channel Channel_Name: Error connecting to ftp server 'X.X.X.X': java.net.SocketException: Socket closed#
Error during disconnect from ftp server X.X.X.X, ignored: java.net.SocketException: Broken pipe (Write failed) (local port XX to address X.X.X.X (), remote host unknown)#

Thread dumps:
   java.lang.Thread.State: RUNNABLE
 at java.net.SocketInputStream.socketRead0(Ljava/io/FileDescriptor;[BIII)I(Native Method)
 at java.net.SocketInputStream.socketRead(Ljava/io/FileDescriptor;[BIII)I(SocketInputStream.java:116)
 at java.net.SocketInputStream.read([BIII)I(SocketInputStream.java:171)
 - additional info (remote: X.X.X.X, local: localhost/X.X.X.X)
 at java.net.SocketInputStream.read([BII)I(SocketInputStream.java:141)
 - additional info (remote: X.X.X.X, local: localhost/X.X.X.X)
 at sun.nio.cs.StreamDecoder.readBytes()I(StreamDecoder.java:284)
 at sun.nio.cs.StreamDecoder.implRead([CII)I(StreamDecoder.java:326)
 at sun.nio.cs.StreamDecoder.read([CII)I(StreamDecoder.java:178)
 - locked <0x000000077b8a1e78> (a java.io.InputStreamReader)
 at java.io.InputStreamReader.read([CII)I(InputStreamReader.java:184)
 at java.io.BufferedReader.fill()V(BufferedReader.java:161)
 at java.io.BufferedReader.readLine(Z)Ljava/lang/String;(BufferedReader.java:324)
 - locked <0x000000077b8a1e78> (a java.io.InputStreamReader)
 at java.io.BufferedReader.readLine()Ljava/lang/String;(BufferedReader.java:389)
 at com.sap.aii.adapter.file.ftp.FTPCtrl.readReply()Ljava/lang/String;(FTPCtrl.java:485)
 at com.sap.aii.adapter.file.ftp.FTPCtrl.sendCommand(Ljava/lang/String;)Ljava/lang/String;(FTPCtrl.java:603)
 at com.sap.aii.adapter.file.ftp.FTPCl.password(Ljava/lang/String;)V(FTPCl.java:341)
 at com.sap.aii.adapter.file.ftp.FTPCl.authenticate(Ljava/lang/String;Ljava/lang/String;J)V(FTPCl.java:1807)
 at com.sap.aii.adapter.file.File2XI.createFtpClient()Lcom/sap/aii/adapter/file/ftp/FTPCl;(File2XI.java:4433)
 at com.sap.aii.adapter.file.File2XI.reconnect2FTPServer(Lcom/sap/engine/interfaces/messaging/api/MessageKey;)V(File2XI.java:4340)
 at com.sap.aii.adapter.file.File2XI.invoke()V(File2XI.java:717)
 at com.sap.aii.af.lib.scheduler.JobBroker$Worker.run()V(JobBroker.java:529)
 at com.sap.engine.core.thread.impl3.ActionObject.run()Ljava/lang/Object;(ActionObject.java:37)
 at java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;(Native Method)
 at com.sap.engine.core.thread.impl3.SingleThread.execute(Lcom/sap/engine/core/thread/ThreadContextImpl;)V(SingleThread.java:185)
 at com.sap.engine.core.thread.impl3.SingleThread.run()V(SingleThread.java:302)

   Locked ownable synchronizers:
 - None

You have referred to Note 821267 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 / PI 7.3 File Adapter --> Solution --> 26. FTP Connection Problems but still cannot get this issue resolved.


Read more...

Environment

  • SAP NetWeaver
  • SAP Process Integration

Product

SAP NetWeaver all versions ; SAP Process Integration all versions

Keywords

Connection timed out, remote host unknown, Error connecting to ftp server, java.net.SocketException, Socket closed, Error during disconnect from ftp server, Broken pipe, Write failed, File Adapter, FTP Adapter, Process Integration, PI, Process Orchestration, PO, NetWeaver, XI, AEX , KBA , BC-XI-CON-FIL , File Adapter , BC-XI-CON-AFW , J2EE Adapter Framework , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.