Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » IRemoteFile.exists() returns true but can't download file with following message(RSEG9999, Missing element for : '')
icon5.gif  IRemoteFile.exists() returns true but can't download file with following message [message #641328] Thu, 25 November 2010 02:50 Go to next message
Mark Anderson is currently offline Mark AndersonFriend
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()) 


In case of Korean file name, IRemoteFile's instance root was succesfully created and root.exists() returns true.
However, method throws Exception with following message. Missing element for : ''

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

Re: IRemoteFile.exists() returns true but can't download file with following message [message #641369 is a reply to message #641328] Thu, 25 November 2010 08:49 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
Hi Mark,

This seems to be an encoding problem. Apparently you use SSH on the
wire. Thus your issue could be related to this bug:

You could also try explicitly setting the encoding in your connection's
properties (Select connection, right-click properties, Host properties,
encoding; you can also do this programmatically). This feature request
is open for SSH to auto-detect the remote encoding:

As a workaround, you could also try using dstore which uses a
Java/XML/Unicode transfer mechanism and can thus better deal with
encodings. This requires that you can run a dstore server on the remote.

Even FTP file transfer might be able to better deal with encodings in
this particular case.

Previous Topic:using RSE in OSGi containers (Equinox)
Next Topic:Connection errors using RSE
Goto Forum:

Current Time: Sat Jul 31 10:15:18 GMT 2021

Powered by FUDForum. Page generated in 0.01254 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top