Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] problems with XMPPContainer and IRemoteServiceContainerAdapter

On 10/14/2010 05:17 PM, Eugen Reiswich wrote:
> Hi folks, 
> 
> I'm trying to use remote services over ECF with the XMPP provider. In
> order to register and retriever remote services I need to get the
> IRemoteServiceContainerAdapter: 
> IPresenceContainerAdapter adapter = (IPresenceContainerAdapter)
> this.container
> .getAdapter(IPresenceContainerAdapter.class);
> 
> I'm running in a NPE. Debugging the ECF-Code I found out that
> the XMPPContainer returns null
> providing org.eclipse.ecf.remoteservice.IRemoteServiceContainerAdapter as clazz
> parameter.
> 
> 
> public Object getAdapter(Class clazz) {
> if (clazz.equals(IPresenceContainerAdapter.class))
> return this;
> if (clazz.equals(ISendFileTransferContainerAdapter.class))
> return outgoingFileTransferContainerAdapter;
> else
> return super.getAdapter(clazz);
> }
> 
> Btw. the IPresenceContainerAdapter works fine. Any idea?

Has the org.eclipse.ecf.provider.xmpp.remoteservice bundle been deployed
and registered?

Markus


Back to the top