[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Hi all
I finally had some time to try out the ECF4Felix set of bundles available on GitHub.
Although it starts up just fine on Felix, my small test fails to start correctly on Felix
I get the following error.
[Felix Shell TUI] ERROR org.eclipse.ecf.identity - org.eclipse.core.runtime.Status[plugin=org.eclipse.ecf.identity;code=2001;message=Namespace cannot be null;severity4;exception=org.eclipse.ecf.core.identity.IDCreateException: Namespace cannot be null;children=[]]
org.eclipse.ecf.core.identity.IDCreateException: Namespace cannot be null
at org.eclipse.ecf.core.identity.IDFactory.logAndThrow(IDFactory.java:186)
If however I instruct pax-runner to use "--platform=equinox", then it works fine and I get the following output
osgi> [Framework Event Dispatcher] DEBUG ecf.test - BundleEvent RESOLVED
[JMDNS Discovery Thread] INFO org.eclipse.ecf.osgi.services.discovery - org.eclipse.core.runtime.Status[plugin=org.eclipse.ecf.osgi.services.discovery;code=1;message=serviceDiscovered:ignoring loopback ServiceReference: ServiceID[type=ServiceTypeID[typeName=_osgiservices._tcp.default._iana];location=osgiservices://
172.17.5.91:3282/svc_ifwPx7sYN42zK5rsWvym8eR+3JU=;full=_osgiservices._tcp.default._iana@osgiservices://172.17.5.91:3282/svc_ifwPx7sYN42zK5rsWvym8eR+3JU=];severity1;exception=null;children=[]]
[Felix Shell TUI] DEBUG org.eclipse.ecf.osgi.services.distribution - ServiceEvent REGISTERED
[Felix Shell TUI] DEBUG ecf.test - ServiceEvent REGISTERED
[Framework Event Dispatcher] DEBUG ecf.test - BundleEvent STARTED
My test is really simple...Below is the start method of my test bundle
public void start(BundleContext context) throws Exception {
Hello hello = new HelloImpl();
Properties props = new Properties();
props.put(IDistributionConstants.SERVICE_EXPORTED_INTERFACES, "*");
props.put(IDistributionConstants.SERVICE_EXPORTED_CONFIGS, "ecf.r_osgi.peer");
context.registerService(Hello.class.getName(), hello, props);
}
Any input would be appreciated.
Ivanhoe