[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [ecf-dev] problems with XMPPContainer and IRemoteServiceContainerAdapter
|
- From: Markus Alexander Kuppe <ecf-dev_eclipse.org@xxxxxxxxxxx>
- Date: Thu, 14 Oct 2010 17:25:23 +0200
- Delivered-to: ecf-dev@eclipse.org
- User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100922 Lightning/1.0b2 Thunderbird/3.1.4
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