Project: aptanastudio
Issue APSTUD-4729: CoreException: Opening file for read failed
Unfortunately no repo case. At the very least, we should write out: [ERROR] Unable to read from file {0}. Connection timed out. We should write out a similar message if writing to a file fails. {code} !ENTRY com.aptana.ui 4 0 2012-04-19 11:58:57.804 !MESSAGE !STACK 1 org.eclipse.core.runtime.CoreException: Opening file for read failed com.aptana.filesystem.ftp.internal.FTPConnectionFileManager.readFile(FTPConnectionFileManager.java:809) com.aptana.core.io.vfs.BaseConnectionFileManager.openInputStream(BaseConnectionFileManager.java:215) com.aptana.core.io.efs.VirtualFile.openInputStream(VirtualFile.java:135) com.aptana.core.io.efs.SyncUtils.copy(SyncUtils.java:85) com.aptana.ide.ui.io.internal.UniformFileStoreEditorInputFactory.toLocalFileStore(UniformFileStoreEditorInputFactory.java:109) com.aptana.ide.ui.io.internal.UniformFileStoreEditorInputFactory.getUniformEditorInput(UniformFileStoreEditorInputFactory.java:68) com.aptana.ide.ui.io.navigator.actions.EditorUtils$1.run(EditorUtils.java:69) org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: java.net.SocketTimeoutException: connect timed out java.net.PlainSocketImpl.socketConnect(Native Method) java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432) java.net.Socket.connect(Socket.java:529) com.enterprisedt.util.proxy.PlainSocket.createPlainSocket(PlainSocket.java:112) com.enterprisedt.util.proxy.StreamSocketFactory.getConnectedSocket(StreamSocketFactory.java:60) com.enterprisedt.net.ftp.pro.ProFTPClient.connect(ProFTPClient.java:195) com.aptana.filesystem.ftp.internal.FTPConnectionFileManager.connectFTPClient(FTPConnectionFileManager.java:143) com.aptana.filesystem.ftp.internal.FTPConnectionFileManager.initAndAuthFTPClient(FTPConnectionFileManager.java:158) com.aptana.filesystem.ftp.internal.FTPConnectionFileManager.readFile(FTPConnectionFileManager.java:782)	... 7 more !SUBENTRY 1 com.aptana.filesystem.ftp 4 0 2012-04-19 11:58:57.805 !MESSAGE Opening file for read failed !STACK 0 java.net.SocketTimeoutException: connect timed out java.net.PlainSocketImpl.socketConnect(Native Method) java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432) java.net.Socket.connect(Socket.java:529) com.enterprisedt.util.proxy.PlainSocket.createPlainSocket(PlainSocket.java:112) com.enterprisedt.util.proxy.StreamSocketFactory.getConnectedSocket(StreamSocketFactory.java:60) com.enterprisedt.net.ftp.pro.ProFTPClient.connect(ProFTPClient.java:195) com.aptana.filesystem.ftp.internal.FTPConnectionFileManager.connectFTPClient(FTPConnectionFileManager.java:143) com.aptana.filesystem.ftp.internal.FTPConnectionFileManager.initAndAuthFTPClient(FTPConnectionFileManager.java:158) com.aptana.filesystem.ftp.internal.FTPConnectionFileManager.readFile(FTPConnectionFileManager.java:782) com.aptana.core.io.vfs.BaseConnectionFileManager.openInputStream(BaseConnectionFileManager.java:215) com.aptana.core.io.efs.VirtualFile.openInputStream(VirtualFile.java:135) com.aptana.core.io.efs.SyncUtils.copy(SyncUtils.java:85) com.aptana.ide.ui.io.internal.UniformFileStoreEditorInputFactory.toLocalFileStore(UniformFileStoreEditorInputFactory.java:109) com.aptana.ide.ui.io.internal.UniformFileStoreEditorInputFactory.getUniformEditorInput(UniformFileStoreEditorInputFactory.java:68) com.aptana.ide.ui.io.navigator.actions.EditorUtils$1.run(EditorUtils.java:69) org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {code}
Story points: 5