Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » SystemStartHere.getSystemRegistry() returns null
SystemStartHere.getSystemRegistry() returns null [message #13247] Fri, 27 July 2007 11:54 Go to next message
Eclipse UserFriend
Originally posted by: nchan.cisco.com

Hi,

Iam trying to use Eclipse RSE 2.0 API to connect to an SSH server.

The first step of getting the ISystemRegistry itself fails :(

What am I doing wrong ?

My Eclipse version is 3.3.0.

My project is an eclipse plugin project and I have added the RSE plugins
to my plugin dependancies.

Iam able to get the RSE System details from RSECorePlugin.

RSECorePlugin rsep = RSECorePlugin.getDefault();
IRSECoreRegistry registry = rsep.getCoreRegistry();
IRSESystemType[] sysTypes = registry.getSystemTypes();

for (IRSESystemType sysType : sysTypes) {

System.out.println("System Name : " + sysType.getName());
System.out.println("System Desc : " + sysType.getDescription());
System.out.println("System ID : " + sysType.getId());
}


output :

RSECORE PLUGIN:org.eclipse.rse.core
registry.getSystemType()class org.eclipse.rse.internal.core.RSECoreRegistry
System Name : SSH Only
System Desc : Connection for SSH access to remote systems
System ID : org.eclipse.rse.systemtype.ssh
System Name : FTP Only
System Desc : Connection for FTP access to remote systems
System ID : org.eclipse.rse.systemtype.ftp
System Name : Windows
System Desc : Any version of Microsoft Windows
System ID : org.eclipse.rse.systemtype.windows
System Name : Linux
System Desc : Any distribution of Linux
System ID : org.eclipse.rse.systemtype.linux
System Name : Unix
System Desc : Any distribution of Unix
System ID : org.eclipse.rse.systemtype.unix
System Name : Local
System Desc : Local file system on this computer
System ID : org.eclipse.rse.systemtype.local

.....
.....


What am I missing ?

Any help in this regard is much appreciated.

Thanks,
Chandran Narasimhan.l
Re: SystemStartHere.getSystemRegistry() returns null [message #13274 is a reply to message #13247] Fri, 27 July 2007 18:13 Go to previous messageGo to next message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
Hello Chandran,

unfortunately RSE does not really work headless yet.
The interfaces have been moved to non-UI but it still
requires the UI to get booted :-(

In other words, what you need is activating RSEUIPlugin
which will then instanciate the SystemRegistry and make
it available for others:

//Start RSE initialization
RSEUIPlugin.getDefault();
//Wait until initialization complete
final IRSEPersistenceManager pm =
RSECorePlugin.getThePersistenceManager();
try {
while (!pm.isRestoreComplete() || pm.isBusy()) Thread.sleep(100);
} catch(InterruptedException e) {
/*bail out or ignore*/
}


I know it's not pretty at all, but unfortunately it is what you have to
do right now. The RSEUIPlugin instantiates the SystemRegistry and
schedules the InitRSEJob, which initializes the SystemProfileManager,
which leads to doing
RSECorePlugin.getThePersistenceManager().restoreProfiles(500 0).
You'll need to wait for that to be complete before you can do anything
useful.

This code should work although problems have been reported with it
(intermittent NullPointerExceptions, see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=194802
). I'd be interested in getting feeback from you whether it works OK for
you. At any rate you should CC and/or comment on that bug.

For improving the situation as such, we already have a bug filed for a
better API to get a callback when RSE is up and the model is fully restored:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=197167
and for being able to do all this in non-UI we have
https://bugs.eclipse.org/bugs/show_bug.cgi?id=190231
for moving the SystemRegistry itself into non-UI we do not currently
have a bug, but it's kind of obvious and part of improving UI/non-UI
splitting as discussed in
http://wiki.eclipse.org/index.php/TM_Future_Planning

Thanks,
--
Martin Oberhuber
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm


Chandran Narasimhan wrote:
> Hi,
>
> Iam trying to use Eclipse RSE 2.0 API to connect to an SSH server.
>
> The first step of getting the ISystemRegistry itself fails :(
>
> What am I doing wrong ?
>
> My Eclipse version is 3.3.0.
>
> My project is an eclipse plugin project and I have added the RSE plugins
> to my plugin dependancies.
>
> Iam able to get the RSE System details from RSECorePlugin.
>
> RSECorePlugin rsep = RSECorePlugin.getDefault();
> IRSECoreRegistry registry = rsep.getCoreRegistry();
> IRSESystemType[] sysTypes = registry.getSystemTypes();
>
> for (IRSESystemType sysType : sysTypes) {
>
> System.out.println("System Name : " + sysType.getName());
> System.out.println("System Desc : " + sysType.getDescription());
> System.out.println("System ID : " + sysType.getId());
> }
>
>
> output :
>
> RSECORE PLUGIN:org.eclipse.rse.core
> registry.getSystemType()class org.eclipse.rse.internal.core.RSECoreRegistry
> System Name : SSH Only
> System Desc : Connection for SSH access to remote systems
> System ID : org.eclipse.rse.systemtype.ssh
> System Name : FTP Only
> System Desc : Connection for FTP access to remote systems
> System ID : org.eclipse.rse.systemtype.ftp
> System Name : Windows
> System Desc : Any version of Microsoft Windows
> System ID : org.eclipse.rse.systemtype.windows
> System Name : Linux
> System Desc : Any distribution of Linux
> System ID : org.eclipse.rse.systemtype.linux
> System Name : Unix
> System Desc : Any distribution of Unix
> System ID : org.eclipse.rse.systemtype.unix
> System Name : Local
> System Desc : Local file system on this computer
> System ID : org.eclipse.rse.systemtype.local
>
> ....
> ....
>
>
> What am I missing ?
>
> Any help in this regard is much appreciated.
>
> Thanks,
> Chandran Narasimhan.l
Re: SystemStartHere.getSystemRegistry() returns null [message #13302 is a reply to message #13274] Mon, 30 July 2007 16:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nchan.cisco.com

Hi Martin,

Thanks a lot for your prompt response.

Yes, using RSEUIPlugin to get the RSE System registry works ! Am able to
execute commands using SSH !

I spent 2 full days debugging the RSECorePlugin before I sent the mail
to eclipse.dsdp.tm newsgroup :)

Anyway these 2 days I have learned lots of technical stuff about the
Eclipse TM and RSE Architecture.

I have got the registry from RSEUIPlugin :

ISystemRegistry isr = RSEUIPlugin.getTheSystemRegistry();

I have ran it couple of times and I didn't got any NULLPointer exception.

Btw, since Iam using RSEUIPlugin I have included the RSE UI Plugin as
dependencies to my application. Following are the RSE plugins which I
have added as dependencies :

1 - org.eclipse.rse.core
2 - org.eclipse.rse.services
3 - org.eclipse.rse.services.ssh
4 - org.eclipse.rse.ui
5 - org.eclipse.rse.subsystems.shells.core

This adds the following functionality that we don't need in our application.

1 - The 'Remote System Explorer' perspective is added to my workbench.

2 - Getting an 'Info' popup with an empty message when I connect to the
SSH system before command execution.

3 - Iam getting a 'Project Explorer' View that contains an UI Tree of
various services properties.

- RemoteSystemsConnection
- dom.properties
- PRF.<mypcname>_0
- FP.daytime.tcp_0
node.properties
- FP.dstore.files_0
node.properties
....
....
....

Any workarounds to solve the 3 issues listed above ?

Should I vote for the bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=197167 ?

Thanks,
Chandran Narasimhan.



Martin Oberhuber wrote:
> Hello Chandran,
>
> unfortunately RSE does not really work headless yet.
> The interfaces have been moved to non-UI but it still
> requires the UI to get booted :-(
>
> In other words, what you need is activating RSEUIPlugin
> which will then instanciate the SystemRegistry and make
> it available for others:
>
> //Start RSE initialization
> RSEUIPlugin.getDefault();
> //Wait until initialization complete
> final IRSEPersistenceManager pm =
> RSECorePlugin.getThePersistenceManager();
> try {
> while (!pm.isRestoreComplete() || pm.isBusy()) Thread.sleep(100);
> } catch(InterruptedException e) {
> /*bail out or ignore*/
> }
>
>
> I know it's not pretty at all, but unfortunately it is what you have to
> do right now. The RSEUIPlugin instantiates the SystemRegistry and
> schedules the InitRSEJob, which initializes the SystemProfileManager,
> which leads to doing
> RSECorePlugin.getThePersistenceManager().restoreProfiles(500 0).
> You'll need to wait for that to be complete before you can do anything
> useful.
>
> This code should work although problems have been reported with it
> (intermittent NullPointerExceptions, see
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=194802
> ). I'd be interested in getting feeback from you whether it works OK for
> you. At any rate you should CC and/or comment on that bug.
>
> For improving the situation as such, we already have a bug filed for a
> better API to get a callback when RSE is up and the model is fully
> restored:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=197167
> and for being able to do all this in non-UI we have
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=190231
> for moving the SystemRegistry itself into non-UI we do not currently
> have a bug, but it's kind of obvious and part of improving UI/non-UI
> splitting as discussed in
> http://wiki.eclipse.org/index.php/TM_Future_Planning
>
> Thanks,
> --
> Martin Oberhuber
> Target Management Project Lead, DSDP PMC Member
> http://www.eclipse.org/dsdp/tm
>
>
> Chandran Narasimhan wrote:
>> Hi,
>>
>> Iam trying to use Eclipse RSE 2.0 API to connect to an SSH server.
>>
>> The first step of getting the ISystemRegistry itself fails :(
>>
>> What am I doing wrong ?
>>
>> My Eclipse version is 3.3.0.
>>
>> My project is an eclipse plugin project and I have added the RSE
>> plugins to my plugin dependancies.
>>
>> Iam able to get the RSE System details from RSECorePlugin.
>>
>> RSECorePlugin rsep = RSECorePlugin.getDefault();
>> IRSECoreRegistry registry = rsep.getCoreRegistry();
>> IRSESystemType[] sysTypes = registry.getSystemTypes();
>> for (IRSESystemType sysType : sysTypes) {
>> System.out.println("System Name : " +
>> sysType.getName());
>> System.out.println("System Desc : " + sysType.getDescription());
>> System.out.println("System ID : " + sysType.getId()); }
>>
>>
>> output :
>>
>> RSECORE PLUGIN:org.eclipse.rse.core
>> registry.getSystemType()class
>> org.eclipse.rse.internal.core.RSECoreRegistry
>> System Name : SSH Only
>> System Desc : Connection for SSH access to remote systems
>> System ID : org.eclipse.rse.systemtype.ssh
>> System Name : FTP Only
>> System Desc : Connection for FTP access to remote systems
>> System ID : org.eclipse.rse.systemtype.ftp
>> System Name : Windows
>> System Desc : Any version of Microsoft Windows
>> System ID : org.eclipse.rse.systemtype.windows
>> System Name : Linux
>> System Desc : Any distribution of Linux
>> System ID : org.eclipse.rse.systemtype.linux
>> System Name : Unix
>> System Desc : Any distribution of Unix
>> System ID : org.eclipse.rse.systemtype.unix
>> System Name : Local
>> System Desc : Local file system on this computer
>> System ID : org.eclipse.rse.systemtype.local
>>
>> ....
>> ....
>>
>>
>> What am I missing ?
>>
>> Any help in this regard is much appreciated.
>>
>> Thanks,
>> Chandran Narasimhan.l
Re: SystemStartHere.getSystemRegistry() returns null [message #13329 is a reply to message #13302] Tue, 31 July 2007 14:32 Go to previous messageGo to next message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
Hello Chandran,

Your dependencies look good. If you really only want SSH
access and nothing else you could perhaps also just use
the Platform plugin:
org.eclipse.jsch.core
org.eclipse.jsch.ui,
com.jcraft.jsch
or you just use the RSE Services layer but not the subsystems:
org.eclipse.rse.services.
org.eclipse.rse.services.ssh

Regarding the other questions:

> 1 - The 'Remote System Explorer' perspective is added to my workbench.

I think this can be suppressed by defining an Activity extension
with a pattern to match the ID of the RSE perspective. It will be
hidden by default. I've never tried this myself but I think it
should work. For details, see
http://help.eclipse.org/help33/topic/org.eclipse.platform.do c.isv/reference/extension-points/org_eclipse_ui_activities.h tml

> 2 - Getting an 'Info' popup with an empty message when I connect
to the SSH system before command execution.

That's odd. Can you launch your app in the debugger, then suspend
the "main" thread at the time the info is shown, and file a bug
report attaching the stack backtrace you see in the debugger.

> 3 - Iam getting a 'Project Explorer' View that contains an UI Tree of
> various services properties.
>
> - RemoteSystemsConnection
> - dom.properties

Looks like you have a Workspace with a RemoteSystemsConnections project
in it. This should only happen if the workspace was created with a
version of RSE before 2.0 -- after 2.0, this project should not be there
but in .metadata instead.

Try starting with a fresh clean workspace.


Thanks,
--
Martin Oberhuber
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
Re: SystemStartHere.getSystemRegistry() returns null [message #14040 is a reply to message #13302] Mon, 06 August 2007 17:06 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
alHello,

By doing unit tests, I found that the method I previously announced for
waiting for RSE to initialize, is not quite correct. Correct code (which
we now also use in our usint tests) is as follows:

Job[] jobs = Job.getJobManager().find(null);
for(int i=0; i<jobs.length; i++) {
if ("Initialize RSE".equals(jobs[i].getName())) { //$NON-NLS-1$
jobs[i].join();
break;
}
}

See also https://bugs.eclipse.org/bugs/show_bug.cgi?id=194802#c11


Thanks,
--
Martin Oberhuber
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
Re: SystemStartHere.getSystemRegistry() returns null [message #569356 is a reply to message #13247] Fri, 27 July 2007 18:13 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
Hello Chandran,

unfortunately RSE does not really work headless yet.
The interfaces have been moved to non-UI but it still
requires the UI to get booted :-(

In other words, what you need is activating RSEUIPlugin
which will then instanciate the SystemRegistry and make
it available for others:

//Start RSE initialization
RSEUIPlugin.getDefault();
//Wait until initialization complete
final IRSEPersistenceManager pm =
RSECorePlugin.getThePersistenceManager();
try {
while (!pm.isRestoreComplete() || pm.isBusy()) Thread.sleep(100);
} catch(InterruptedException e) {
/*bail out or ignore*/
}


I know it's not pretty at all, but unfortunately it is what you have to
do right now. The RSEUIPlugin instantiates the SystemRegistry and
schedules the InitRSEJob, which initializes the SystemProfileManager,
which leads to doing
RSECorePlugin.getThePersistenceManager().restoreProfiles(500 0).
You'll need to wait for that to be complete before you can do anything
useful.

This code should work although problems have been reported with it
(intermittent NullPointerExceptions, see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=194802
). I'd be interested in getting feeback from you whether it works OK for
you. At any rate you should CC and/or comment on that bug.

For improving the situation as such, we already have a bug filed for a
better API to get a callback when RSE is up and the model is fully restored:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=197167
and for being able to do all this in non-UI we have
https://bugs.eclipse.org/bugs/show_bug.cgi?id=190231
for moving the SystemRegistry itself into non-UI we do not currently
have a bug, but it's kind of obvious and part of improving UI/non-UI
splitting as discussed in
http://wiki.eclipse.org/index.php/TM_Future_Planning

Thanks,
--
Martin Oberhuber
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm


Chandran Narasimhan wrote:
> Hi,
>
> Iam trying to use Eclipse RSE 2.0 API to connect to an SSH server.
>
> The first step of getting the ISystemRegistry itself fails :(
>
> What am I doing wrong ?
>
> My Eclipse version is 3.3.0.
>
> My project is an eclipse plugin project and I have added the RSE plugins
> to my plugin dependancies.
>
> Iam able to get the RSE System details from RSECorePlugin.
>
> RSECorePlugin rsep = RSECorePlugin.getDefault();
> IRSECoreRegistry registry = rsep.getCoreRegistry();
> IRSESystemType[] sysTypes = registry.getSystemTypes();
>
> for (IRSESystemType sysType : sysTypes) {
>
> System.out.println("System Name : " + sysType.getName());
> System.out.println("System Desc : " + sysType.getDescription());
> System.out.println("System ID : " + sysType.getId());
> }
>
>
> output :
>
> RSECORE PLUGIN:org.eclipse.rse.core
> registry.getSystemType()class org.eclipse.rse.internal.core.RSECoreRegistry
> System Name : SSH Only
> System Desc : Connection for SSH access to remote systems
> System ID : org.eclipse.rse.systemtype.ssh
> System Name : FTP Only
> System Desc : Connection for FTP access to remote systems
> System ID : org.eclipse.rse.systemtype.ftp
> System Name : Windows
> System Desc : Any version of Microsoft Windows
> System ID : org.eclipse.rse.systemtype.windows
> System Name : Linux
> System Desc : Any distribution of Linux
> System ID : org.eclipse.rse.systemtype.linux
> System Name : Unix
> System Desc : Any distribution of Unix
> System ID : org.eclipse.rse.systemtype.unix
> System Name : Local
> System Desc : Local file system on this computer
> System ID : org.eclipse.rse.systemtype.local
>
> ....
> ....
>
>
> What am I missing ?
>
> Any help in this regard is much appreciated.
>
> Thanks,
> Chandran Narasimhan.l
Re: SystemStartHere.getSystemRegistry() returns null [message #569419 is a reply to message #13274] Mon, 30 July 2007 16:36 Go to previous message
Eclipse UserFriend
Originally posted by: nchan.cisco.com

Hi Martin,

Thanks a lot for your prompt response.

Yes, using RSEUIPlugin to get the RSE System registry works ! Am able to
execute commands using SSH !

I spent 2 full days debugging the RSECorePlugin before I sent the mail
to eclipse.dsdp.tm newsgroup :)

Anyway these 2 days I have learned lots of technical stuff about the
Eclipse TM and RSE Architecture.

I have got the registry from RSEUIPlugin :

ISystemRegistry isr = RSEUIPlugin.getTheSystemRegistry();

I have ran it couple of times and I didn't got any NULLPointer exception.

Btw, since Iam using RSEUIPlugin I have included the RSE UI Plugin as
dependencies to my application. Following are the RSE plugins which I
have added as dependencies :

1 - org.eclipse.rse.core
2 - org.eclipse.rse.services
3 - org.eclipse.rse.services.ssh
4 - org.eclipse.rse.ui
5 - org.eclipse.rse.subsystems.shells.core

This adds the following functionality that we don't need in our application.

1 - The 'Remote System Explorer' perspective is added to my workbench.

2 - Getting an 'Info' popup with an empty message when I connect to the
SSH system before command execution.

3 - Iam getting a 'Project Explorer' View that contains an UI Tree of
various services properties.

- RemoteSystemsConnection
- dom.properties
- PRF.<mypcname>_0
- FP.daytime.tcp_0
node.properties
- FP.dstore.files_0
node.properties
....
....
....

Any workarounds to solve the 3 issues listed above ?

Should I vote for the bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=197167 ?

Thanks,
Chandran Narasimhan.



Martin Oberhuber wrote:
> Hello Chandran,
>
> unfortunately RSE does not really work headless yet.
> The interfaces have been moved to non-UI but it still
> requires the UI to get booted :-(
>
> In other words, what you need is activating RSEUIPlugin
> which will then instanciate the SystemRegistry and make
> it available for others:
>
> //Start RSE initialization
> RSEUIPlugin.getDefault();
> //Wait until initialization complete
> final IRSEPersistenceManager pm =
> RSECorePlugin.getThePersistenceManager();
> try {
> while (!pm.isRestoreComplete() || pm.isBusy()) Thread.sleep(100);
> } catch(InterruptedException e) {
> /*bail out or ignore*/
> }
>
>
> I know it's not pretty at all, but unfortunately it is what you have to
> do right now. The RSEUIPlugin instantiates the SystemRegistry and
> schedules the InitRSEJob, which initializes the SystemProfileManager,
> which leads to doing
> RSECorePlugin.getThePersistenceManager().restoreProfiles(500 0).
> You'll need to wait for that to be complete before you can do anything
> useful.
>
> This code should work although problems have been reported with it
> (intermittent NullPointerExceptions, see
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=194802
> ). I'd be interested in getting feeback from you whether it works OK for
> you. At any rate you should CC and/or comment on that bug.
>
> For improving the situation as such, we already have a bug filed for a
> better API to get a callback when RSE is up and the model is fully
> restored:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=197167
> and for being able to do all this in non-UI we have
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=190231
> for moving the SystemRegistry itself into non-UI we do not currently
> have a bug, but it's kind of obvious and part of improving UI/non-UI
> splitting as discussed in
> http://wiki.eclipse.org/index.php/TM_Future_Planning
>
> Thanks,
> --
> Martin Oberhuber
> Target Management Project Lead, DSDP PMC Member
> http://www.eclipse.org/dsdp/tm
>
>
> Chandran Narasimhan wrote:
>> Hi,
>>
>> Iam trying to use Eclipse RSE 2.0 API to connect to an SSH server.
>>
>> The first step of getting the ISystemRegistry itself fails :(
>>
>> What am I doing wrong ?
>>
>> My Eclipse version is 3.3.0.
>>
>> My project is an eclipse plugin project and I have added the RSE
>> plugins to my plugin dependancies.
>>
>> Iam able to get the RSE System details from RSECorePlugin.
>>
>> RSECorePlugin rsep = RSECorePlugin.getDefault();
>> IRSECoreRegistry registry = rsep.getCoreRegistry();
>> IRSESystemType[] sysTypes = registry.getSystemTypes();
>> for (IRSESystemType sysType : sysTypes) {
>> System.out.println("System Name : " +
>> sysType.getName());
>> System.out.println("System Desc : " + sysType.getDescription());
>> System.out.println("System ID : " + sysType.getId()); }
>>
>>
>> output :
>>
>> RSECORE PLUGIN:org.eclipse.rse.core
>> registry.getSystemType()class
>> org.eclipse.rse.internal.core.RSECoreRegistry
>> System Name : SSH Only
>> System Desc : Connection for SSH access to remote systems
>> System ID : org.eclipse.rse.systemtype.ssh
>> System Name : FTP Only
>> System Desc : Connection for FTP access to remote systems
>> System ID : org.eclipse.rse.systemtype.ftp
>> System Name : Windows
>> System Desc : Any version of Microsoft Windows
>> System ID : org.eclipse.rse.systemtype.windows
>> System Name : Linux
>> System Desc : Any distribution of Linux
>> System ID : org.eclipse.rse.systemtype.linux
>> System Name : Unix
>> System Desc : Any distribution of Unix
>> System ID : org.eclipse.rse.systemtype.unix
>> System Name : Local
>> System Desc : Local file system on this computer
>> System ID : org.eclipse.rse.systemtype.local
>>
>> ....
>> ....
>>
>>
>> What am I missing ?
>>
>> Any help in this regard is much appreciated.
>>
>> Thanks,
>> Chandran Narasimhan.l
Re: SystemStartHere.getSystemRegistry() returns null [message #569445 is a reply to message #13302] Tue, 31 July 2007 14:32 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
Hello Chandran,

Your dependencies look good. If you really only want SSH
access and nothing else you could perhaps also just use
the Platform plugin:
org.eclipse.jsch.core
org.eclipse.jsch.ui,
com.jcraft.jsch
or you just use the RSE Services layer but not the subsystems:
org.eclipse.rse.services.
org.eclipse.rse.services.ssh

Regarding the other questions:

> 1 - The 'Remote System Explorer' perspective is added to my workbench.

I think this can be suppressed by defining an Activity extension
with a pattern to match the ID of the RSE perspective. It will be
hidden by default. I've never tried this myself but I think it
should work. For details, see
http://help.eclipse.org/help33/topic/org.eclipse.platform.do c.isv/reference/extension-points/org_eclipse_ui_activities.h tml

> 2 - Getting an 'Info' popup with an empty message when I connect
to the SSH system before command execution.

That's odd. Can you launch your app in the debugger, then suspend
the "main" thread at the time the info is shown, and file a bug
report attaching the stack backtrace you see in the debugger.

> 3 - Iam getting a 'Project Explorer' View that contains an UI Tree of
> various services properties.
>
> - RemoteSystemsConnection
> - dom.properties

Looks like you have a Workspace with a RemoteSystemsConnections project
in it. This should only happen if the workspace was created with a
version of RSE before 2.0 -- after 2.0, this project should not be there
but in .metadata instead.

Try starting with a fresh clean workspace.


Thanks,
--
Martin Oberhuber
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
Re: SystemStartHere.getSystemRegistry() returns null [message #569598 is a reply to message #13302] Mon, 06 August 2007 17:06 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
alHello,

By doing unit tests, I found that the method I previously announced for
waiting for RSE to initialize, is not quite correct. Correct code (which
we now also use in our usint tests) is as follows:

Job[] jobs = Job.getJobManager().find(null);
for(int i=0; i<jobs.length; i++) {
if ("Initialize RSE".equals(jobs[i].getName())) { //$NON-NLS-1$
jobs[i].join();
break;
}
}

See also https://bugs.eclipse.org/bugs/show_bug.cgi?id=194802#c11


Thanks,
--
Martin Oberhuber
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
Previous Topic:SSH on another port
Next Topic:TM Monthly Phone Call 1-Aug -- Meeting Notes
Goto Forum:
  


Current Time: Thu Apr 18 15:35:38 GMT 2024

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

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

Back to the top