IRemoteFile.exists() returns true but can't download file with following message [message #641328] |
Thu, 25 November 2010 02:50 |
Mark Anderson Messages: 8 Registered: October 2010 |
Junior Member |
|
|
There are some files which reperesented by multi-byte(korean) language in remote server.
Before I download it programatically , I made IRemoteFile instance 'root' by following code;
IRemoteFileSubSystem s = RemoteFileUtility.getFileSubSystem(host);
s.setConnectorService(conService); // connector service from pre-created host
IRemoteFile root = s.getRemoteFileObject("/home/myusr/테스트.txt", monitor); // file name contains korean language
IRemoteFileSubSystem srcFS = root.getParentRemoteFileSubSystem();
if (!srcFS.isConnected() || !root.exists())
return false;
if (root.isFile())
srcFS.dowload(.......);
...
In case of Korean file name, IRemoteFile's instance root was succesfully created and root.exists() returns true.
However, srcFS.download() method throws Exception with following message.
org.eclipse.rse.services.clientserver.messages.SystemElementNotFoundException: Missing element for : ''
at org.eclipse.rse.internal.services.ssh.files.SftpFileService.makeSystemMessageException(SftpFileService.java:447)
at org.eclipse.rse.internal.services.ssh.files.SftpFileService.download(SftpFileService.java:876)
at org.eclipse.rse.subsystems.files.core.servicesubsystem.FileServiceSubSystem.download(FileServiceSubSystem.java:807)
So I double checked how RSE work in the Remote Systems view from Remote Systems Explorer perspective.
I've got an error dialog "RSEG9999, Missing element for : ''"
I think that is is same with my situation.
In order to work correctly what can I do next.
I would appreciate any comments.
Have a nice day~
[Updated on: Thu, 25 November 2010 02:55] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02406 seconds