Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Something Is Wrong Here(CommandProvider misbehaving)
Something Is Wrong Here [message #753581] Thu, 27 October 2011 20:51 Go to next message
Geoffry Roberts is currently offline Geoffry RobertsFriend
Messages: 29
Registered: March 2011
Junior Member
All,

Has anybody else had a similar experience?

Backgrond:

Two years ago I did a project based on OSGi, which ran oh so successfully in a standalone equinox container. One of my bundles was a set of commands that were implementations of the CommandProvider interface. It all just worked.

Today:

I tried something similar with Virgo. I implemented two commands one brutally simple and the other only bit more complex.

Here's what I found: The commands function intermittently. I type a command and it it throws an error, type it again no error, type it a third time it throws an error; and on and on.

What gives? I have never seen this before.

From the osgi console:

osgi> parse
_parse==>
/usr/local/virgo-jetty-server-3.0.1.RELEASE/.
<==_parse
osgi> parse
gogo: CommandNotFoundException: Command not found: parse
osgi> parse
_parse==>
/usr/local/virgo-jetty-server-3.0.1.RELEASE/.
<==_parse
osgi> parse
gogo: CommandNotFoundException: Command not found: parse
osgi>

The command:

public Object _parse(CommandInterpreter intp) {
intp.println("_parse==>");
File file = new File(".");
intp.println(file.getAbsolutePath());
intp.println("<==_parse");
return null;
}

I have another command simpler than the first. We're talking hello world stuff here:

public Object _run(CommandInterpreter intp) {
intp.println("_run==>");
intp.println("<==_run");
return null;
}

Look at what this does:

osgi> run
gogo: CommandNotFoundException: Command not found: run
osgi> run
osgi> run
gogo: CommandNotFoundException: Command not found: run
osgi> run
osgi>

This command is as intermittent as the previous but yields no output.

Why would one command give output and the other not?

Thanks
Re: Something Is Wrong Here [message #753642 is a reply to message #753581] Fri, 28 October 2011 07:39 Go to previous messageGo to next message
Lazar Kirchev is currently offline Lazar KirchevFriend
Messages: 30
Registered: July 2009
Location: Sofia, Bulgaria
Member
Hi,

Could you please provide the bundle with the exact commands, or a test bundle, which reproduces this? You could open a bug in the bugzilla and attach it there. I will investigate this issue.
Re: Something Is Wrong Here [message #753766 is a reply to message #753642] Fri, 28 October 2011 16:29 Go to previous messageGo to next message
Geoffry Roberts is currently offline Geoffry RobertsFriend
Messages: 29
Registered: March 2011
Junior Member
Lazar,

I filed a bug as you requested. I attached my bundle with the source included.
Re: Something Is Wrong Here [message #753999 is a reply to message #753766] Mon, 31 October 2011 11:34 Go to previous message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
For the record, bug 362334 was filed.
Previous Topic:Virgo Tooling + JRebel
Next Topic:Retrieving a Bundle Classpath
Goto Forum:
  


Current Time: Fri Apr 19 12:31:36 GMT 2024

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

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

Back to the top