java.io.IOException

Appcelerator JIRA | Shawn Ostermann | 5 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    After upgrading to the newest release (Aptana Studio 3, build: 3.0.7.201112151935), I am now constantly getting this error message when saving a file to a remote SFTP server. What's even worse is that the original file on the server is then removed! ***** The message is "Error saving the remote file FILENAME has encountered a problem. Unable to close output stream. java.io.IOException **** NOTE: After some more experimenting, it seems that this error only happens when I have more the one instance of the the page open. For example: If I click 'New Editor' and create a copy of the file to work with, when I save it then the errors appear: From the log: !SUBENTRY 1 com.aptana.core.io 4 0 2011-12-27 16:22:13.234 !MESSAGE Unable to close output stream. !STACK 0 java.io.IOException at com.aptana.filesystem.secureftp.internal.SFTPFileUploadOutputStream.close(SFTPFileUploadOutputStream.java:115) at com.aptana.core.io.efs.SyncUtils.safeClose(SyncUtils.java:165) at com.aptana.core.io.efs.SyncUtils.copy(SyncUtils.java:116) at com.aptana.ide.ui.io.IOUIPlugin$6$1.run(IOUIPlugin.java:483) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: com.enterprisedt.net.ftp.FTPException: 2 No such file at com.enterprisedt.net.j2ssh.sftp.SftpSubsystemClient.getOKRequestStatus(SftpSubsystemClient.java:1127) at com.enterprisedt.net.j2ssh.sftp.SftpSubsystemClient.renameFile(SftpSubsystemClient.java:795) at com.enterprisedt.net.j2ssh.SftpClient.rename(SftpClient.java:1378) at com.enterprisedt.net.ftp.ssh.SSHFTPClient.rename(SSHFTPClient.java:1403) at com.aptana.filesystem.secureftp.internal.SFTPFileUploadOutputStream.close(SFTPFileUploadOutputStream.java:98) ... 4 more h1. Steps for Testing # Create a new web project # Create a new connection to an SFTP server and select a directory with write access # Create a new file in the project # Move or sync this file over to the SFTP server # Close all documents # Open the file on the SFTP server # Right-click the editor's tab and select "New Editor" # Make some edits to one of the editors containing the remote file # Save the document You should see no error dialog, the file should still exist on the remote server, and the content of the remote file should have been updated.

    Appcelerator JIRA | 5 years ago | Shawn Ostermann
    java.io.IOException
  2. 0

    After upgrading to the newest release (Aptana Studio 3, build: 3.0.7.201112151935), I am now constantly getting this error message when saving a file to a remote SFTP server. What's even worse is that the original file on the server is then removed! ***** The message is "Error saving the remote file FILENAME has encountered a problem. Unable to close output stream. java.io.IOException **** NOTE: After some more experimenting, it seems that this error only happens when I have more the one instance of the the page open. For example: If I click 'New Editor' and create a copy of the file to work with, when I save it then the errors appear: From the log: !SUBENTRY 1 com.aptana.core.io 4 0 2011-12-27 16:22:13.234 !MESSAGE Unable to close output stream. !STACK 0 java.io.IOException at com.aptana.filesystem.secureftp.internal.SFTPFileUploadOutputStream.close(SFTPFileUploadOutputStream.java:115) at com.aptana.core.io.efs.SyncUtils.safeClose(SyncUtils.java:165) at com.aptana.core.io.efs.SyncUtils.copy(SyncUtils.java:116) at com.aptana.ide.ui.io.IOUIPlugin$6$1.run(IOUIPlugin.java:483) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: com.enterprisedt.net.ftp.FTPException: 2 No such file at com.enterprisedt.net.j2ssh.sftp.SftpSubsystemClient.getOKRequestStatus(SftpSubsystemClient.java:1127) at com.enterprisedt.net.j2ssh.sftp.SftpSubsystemClient.renameFile(SftpSubsystemClient.java:795) at com.enterprisedt.net.j2ssh.SftpClient.rename(SftpClient.java:1378) at com.enterprisedt.net.ftp.ssh.SSHFTPClient.rename(SSHFTPClient.java:1403) at com.aptana.filesystem.secureftp.internal.SFTPFileUploadOutputStream.close(SFTPFileUploadOutputStream.java:98) ... 4 more h1. Steps for Testing # Create a new web project # Create a new connection to an SFTP server and select a directory with write access # Create a new file in the project # Move or sync this file over to the SFTP server # Close all documents # Open the file on the SFTP server # Right-click the editor's tab and select "New Editor" # Make some edits to one of the editors containing the remote file # Save the document You should see no error dialog, the file should still exist on the remote server, and the content of the remote file should have been updated.

    Appcelerator JIRA | 5 years ago | Shawn Ostermann
    java.io.IOException

    Root Cause Analysis

    1. com.enterprisedt.net.ftp.FTPException

      2 No such file

      at com.enterprisedt.net.j2ssh.sftp.SftpSubsystemClient.getOKRequestStatus()
    2. com.enterprisedt.net
      SSHFTPClient.rename
      1. com.enterprisedt.net.j2ssh.sftp.SftpSubsystemClient.getOKRequestStatus(SftpSubsystemClient.java:1127)
      2. com.enterprisedt.net.j2ssh.sftp.SftpSubsystemClient.renameFile(SftpSubsystemClient.java:795)
      3. com.enterprisedt.net.j2ssh.SftpClient.rename(SftpClient.java:1378)
      4. com.enterprisedt.net.ftp.ssh.SSHFTPClient.rename(SSHFTPClient.java:1403)
      4 frames
    3. com.aptana.filesystem
      SFTPFileUploadOutputStream.close
      1. com.aptana.filesystem.secureftp.internal.SFTPFileUploadOutputStream.close(SFTPFileUploadOutputStream.java:98)
      1 frame
    4. com.aptana.core
      SyncUtils.copy
      1. com.aptana.core.io.efs.SyncUtils.safeClose(SyncUtils.java:165)
      2. com.aptana.core.io.efs.SyncUtils.copy(SyncUtils.java:116)
      2 frames
    5. com.aptana.ide
      IOUIPlugin$6$1.run
      1. com.aptana.ide.ui.io.IOUIPlugin$6$1.run(IOUIPlugin.java:483)
      1 frame
    6. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      1 frame