Hello,

I am using Gogo 0.8.0 and I run it with Equinox. I noticed that when Gogo 
starts, an exception is printed before the Gogo prompt becomes available. The 
exception is caused by the execution of the default gosh_profile script in 
org.apache.felix.gogo.shell bundle. Particularly the fragment ${.context} 
bundle 0 in addcommand system ((${.context} bundle 0) loadclass 
java.lang.System) is not evaluated correctly. The evaluation tries to call 
BundleContext.getBundle(String location) with argument 0, instead of 
BundleContext.getBundle(long id). The evaluation returns null, because there is 
no bundle with such location and the whole evaluation fails with the exception 
bundleresource://3.fwk25675100/gosh_profile: ERROR: java.lang.RuntimeException: 
Command name evaluates to null: ${.context} bundle 0.

Any workaround for this? However, it is not a big problem, since the shell is 
fully operational after that.

Regards,
Lazar


Reply via email to