Skip to content

Duplicate and unusable Gogo Shell #2

@frankgerhardt

Description

@frankgerhardt

Times have changed and I'm not able to the examples in ch. 3.


Welcome to Apache Felix Gogo


Welcome to Apache Felix Gogo

g! g!
gogo: CommandNotFoundException: Command not found: llb
g! lb
gogo: CommandNotFoundException: Command not found: l
g! lb
gogo: CommandNotFoundException: Command not found: b
g! lb
gogo: CommandNotFoundException: Command not found: b
g!

The shell is running twice, I get two welcome messages. It does not accept input. E.g. the lb command is taken as an l or as a b.

My bnd.bnd file look like this and I can see that there is a strange resolution in there:

Bundle-Version: 0.0.0.${tstamp}
-sub:
*.bnd
-buildpath:
osgi.core,
org.apache.felix.dependencymanager
-runfw: org.apache.felix.framework;version='[4.4.1,4.4.1]'
-runee: JavaSE-1.8
-runrequires:
osgi.identity;filter:='(osgi.identity=osgi.cmpn)',
osgi.identity;filter:='(osgi.identity=org.apache.felix.dependencymanager.shell)',
osgi.identity;filter:='(osgi.identity=org.apache.felix.dependencymanager)',
osgi.identity;filter:='(osgi.identity=org.apache.felix.gogo.command)',
osgi.identity;filter:='(osgi.identity=org.apache.felix.gogo.runtime)',
osgi.identity;filter:='(osgi.identity=org.apache.felix.gogo.shell)'
-runbundles:
org.apache.felix.dependencymanager;version='[3.2.0,3.2.1)',
org.apache.felix.dependencymanager.shell;version='[3.2.0,3.2.1)',
org.apache.felix.gogo.command;version='[0.14.0,0.14.1)',
org.apache.felix.gogo.runtime;version='[0.10.0,0.10.1)',
org.apache.felix.gogo.runtime;version='[0.12.1,0.12.2)',
org.apache.felix.gogo.shell;version='[0.10.0,0.10.1)',
osgi.cmpn;version='[5.0.0,5.0.1)'
-resolve: auto

org.apache.felix.gogo.runtime is listed twice with differenct versions.

How can I run the example with a good console?

I am stuck on page 32, "After saving your code changes, take a look at the console. What does it say?"
Well, nothing. I don't see any output when I edit and save the Activator.
I would expect to see the output from
System.out.println("Added " + conferences.size() + " conferences");
but I don't.

What to do about that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions