[jitsi-users] Jitsi Retrieve call history and meta contacts


#1

Hi Jitsi Users,

my problem might be for you at least obvious, but I think that this is good
place to get help due to my issue related with Jitsi.

So, I would like to receive some information from Jitsi including call
history and meta contacts. I have created my own classes which use
CallHistoryServiceImpl and MetaContactListServiceImpl. I will put first one
below as a example.

import java.util.Date;
import java.util.Collection;
import net.java.sip.communicator.impl.callhistory.CallHistoryServiceImpl;
import net.java.sip.communicator.service.callhistory.CallHistoryService;
import net.java.sip.communicator.service.callhistory.CallRecord;

public class RetrieveCallHistory
{
    private final CallHistoryService callhistory;

    public RetrieveCallHistory() {
        callhistory = new CallHistoryServiceImpl();
    }

    public Collection<CallRecord> getCallHistoryByStartDate(Date date) {
        return this.callhistory.findByStartDate(date);
    }

    public Collection<CallRecord> getCallHistoryByEndDate(Date date) {
        return this.callhistory.findByEndDate(date);
    }

    public Collection<CallRecord> getCallHistoryFromPerdion(Date start,
Date end) {
        return this.callhistory.findByPeriod(start, end);
    }
}

My problem is that during initialization of callhistory object using class
CallHistoryServiceImpl is not possible. I receive this exception :

java.lang.NoClassDefFoundError:
net/java/sip/communicator/impl/callhistory/CallHistoryServiceImpl

I tried to add my classes as a bundle in build.xml and other places, but I
did not succeed. Thanks in advance for your help.

Regards,
Łukasz Cieśluk


#2

Hi,

check the archives, NoClassDefFoundError problems have been asked many
times. You can check the Developer documentation on our site and check
how to write new services/plugins and the felix tutorials.

Regards
damencho

···

On Fri, Apr 25, 2014 at 12:18 PM, Lukasz Ciesluk <lukaszciesluk@gmail.com> wrote:

Hi Jitsi Users,

my problem might be for you at least obvious, but I think that this is good
place to get help due to my issue related with Jitsi.

So, I would like to receive some information from Jitsi including call
history and meta contacts. I have created my own classes which use
CallHistoryServiceImpl and MetaContactListServiceImpl. I will put first one
below as a example.

import java.util.Date;
import java.util.Collection;
import net.java.sip.communicator.impl.callhistory.CallHistoryServiceImpl;
import net.java.sip.communicator.service.callhistory.CallHistoryService;
import net.java.sip.communicator.service.callhistory.CallRecord;

public class RetrieveCallHistory
{
    private final CallHistoryService callhistory;

    public RetrieveCallHistory() {
        callhistory = new CallHistoryServiceImpl();
    }

    public Collection<CallRecord> getCallHistoryByStartDate(Date date) {
        return this.callhistory.findByStartDate(date);
    }

    public Collection<CallRecord> getCallHistoryByEndDate(Date date) {
        return this.callhistory.findByEndDate(date);
    }

    public Collection<CallRecord> getCallHistoryFromPerdion(Date start, Date
end) {
        return this.callhistory.findByPeriod(start, end);
    }
}

My problem is that during initialization of callhistory object using class
CallHistoryServiceImpl is not possible. I receive this exception :

java.lang.NoClassDefFoundError:
net/java/sip/communicator/impl/callhistory/CallHistoryServiceImpl

I tried to add my classes as a bundle in build.xml and other places, but I
did not succeed. Thanks in advance for your help.

Regards,
Łukasz Cieśluk

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users


#3

Hi,

thank you very much for advice. After I have checked Developer
documentation and read some tutorials how to write plugins in Jitsi, I
created new plugin with manifest file, but I had issue with one particular
import (the others were imported)
- net/java/sip/communicator/impl/callhistory/CallHistoryServiceImpl. I
would like to ask if those classes which belong to package whose names
contain word 'impl' are not intended to import or should I use another
package to achieve those functionalities which are provided for example
CallHistoryServiceImpl.

Pozdrawiam serdecznie,
Łukasz Cieśluk

···

2014-04-25 11:26 GMT+02:00 Damian Minkov <damencho@jitsi.org>:

Hi,

check the archives, NoClassDefFoundError problems have been asked many
times. You can check the Developer documentation on our site and check
how to write new services/plugins and the felix tutorials.

Regards
damencho

On Fri, Apr 25, 2014 at 12:18 PM, Lukasz Ciesluk > <lukaszciesluk@gmail.com> wrote:
> Hi Jitsi Users,
>
> my problem might be for you at least obvious, but I think that this is
good
> place to get help due to my issue related with Jitsi.
>
> So, I would like to receive some information from Jitsi including call
> history and meta contacts. I have created my own classes which use
> CallHistoryServiceImpl and MetaContactListServiceImpl. I will put first
one
> below as a example.
>
> import java.util.Date;
> import java.util.Collection;
> import net.java.sip.communicator.impl.callhistory.CallHistoryServiceImpl;
> import net.java.sip.communicator.service.callhistory.CallHistoryService;
> import net.java.sip.communicator.service.callhistory.CallRecord;
>
> public class RetrieveCallHistory
> {
> private final CallHistoryService callhistory;
>
> public RetrieveCallHistory() {
> callhistory = new CallHistoryServiceImpl();
> }
>
> public Collection<CallRecord> getCallHistoryByStartDate(Date date) {
> return this.callhistory.findByStartDate(date);
> }
>
> public Collection<CallRecord> getCallHistoryByEndDate(Date date) {
> return this.callhistory.findByEndDate(date);
> }
>
> public Collection<CallRecord> getCallHistoryFromPerdion(Date start,
Date
> end) {
> return this.callhistory.findByPeriod(start, end);
> }
> }
>
> My problem is that during initialization of callhistory object using
class
> CallHistoryServiceImpl is not possible. I receive this exception :
>
> java.lang.NoClassDefFoundError:
> net/java/sip/communicator/impl/callhistory/CallHistoryServiceImpl
>
> I tried to add my classes as a bundle in build.xml and other places, but
I
> did not succeed. Thanks in advance for your help.
>
> Regards,
> Łukasz Cieśluk
>
> _______________________________________________
> users mailing list
> users@jitsi.org
> Unsubscribe instructions and other list options:
> http://lists.jitsi.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users


#4

Hi,

thank you very much for advice. After I have checked Developer
documentation and read some tutorials how to write plugins in Jitsi, I
created new plugin with manifest file, but I had issue with one particular
import (the others were imported)
- net/java/sip/communicator/impl/callhistory/CallHistoryServiceImpl. I
would like to ask if those classes which belong to package whose names
contain word 'impl' are not intended to import or should I use another
package to achieve those functionalities which are provided for example
CallHistoryServiceImpl.

Pozdrawiam serdecznie,
Łukasz Cieśluk

···

2014-04-25 11:26 GMT+02:00 Damian Minkov <damencho@jitsi.org>:

Hi,

check the archives, NoClassDefFoundError problems have been asked many
times. You can check the Developer documentation on our site and check
how to write new services/plugins and the felix tutorials.

Regards
damencho

On Fri, Apr 25, 2014 at 12:18 PM, Lukasz Ciesluk > <lukaszciesluk@gmail.com> wrote:
> Hi Jitsi Users,
>
> my problem might be for you at least obvious, but I think that this is
good
> place to get help due to my issue related with Jitsi.
>
> So, I would like to receive some information from Jitsi including call
> history and meta contacts. I have created my own classes which use
> CallHistoryServiceImpl and MetaContactListServiceImpl. I will put first
one
> below as a example.
>
> import java.util.Date;
> import java.util.Collection;
> import net.java.sip.communicator.impl.callhistory.CallHistoryServiceImpl;
> import net.java.sip.communicator.service.callhistory.CallHistoryService;
> import net.java.sip.communicator.service.callhistory.CallRecord;
>
> public class RetrieveCallHistory
> {
> private final CallHistoryService callhistory;
>
> public RetrieveCallHistory() {
> callhistory = new CallHistoryServiceImpl();
> }
>
> public Collection<CallRecord> getCallHistoryByStartDate(Date date) {
> return this.callhistory.findByStartDate(date);
> }
>
> public Collection<CallRecord> getCallHistoryByEndDate(Date date) {
> return this.callhistory.findByEndDate(date);
> }
>
> public Collection<CallRecord> getCallHistoryFromPerdion(Date start,
Date
> end) {
> return this.callhistory.findByPeriod(start, end);
> }
> }
>
> My problem is that during initialization of callhistory object using
class
> CallHistoryServiceImpl is not possible. I receive this exception :
>
> java.lang.NoClassDefFoundError:
> net/java/sip/communicator/impl/callhistory/CallHistoryServiceImpl
>
> I tried to add my classes as a bundle in build.xml and other places, but
I
> did not succeed. Thanks in advance for your help.
>
> Regards,
> Łukasz Cieśluk
>
> _______________________________________________
> users mailing list
> users@jitsi.org
> Unsubscribe instructions and other list options:
> http://lists.jitsi.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users


#5

Hi,

these are services, everything in impl or plugin package is not used
directly. You need to access the service using the felix bundle
context (plenty of examples in the code) and use the service.
Normally no osgi imports for package ...impl and ...plugins and also
no osgi exports from those packages. Of course there are exceptions,
but their had their reasons.

Regards
damencho

···

On Mon, Apr 28, 2014 at 11:43 AM, Lukasz Ciesluk <lukaszciesluk@gmail.com> wrote:

Hi,

thank you very much for advice. After I have checked Developer documentation
and read some tutorials how to write plugins in Jitsi, I created new plugin
with manifest file, but I had issue with one particular import (the others
were imported) -
net/java/sip/communicator/impl/callhistory/CallHistoryServiceImpl. I would
like to ask if those classes which belong to package whose names contain
word 'impl' are not intended to import or should I use another package to
achieve those functionalities which are provided for example
CallHistoryServiceImpl.

Pozdrawiam serdecznie,
Łukasz Cieśluk

2014-04-25 11:26 GMT+02:00 Damian Minkov <damencho@jitsi.org>:

Hi,

check the archives, NoClassDefFoundError problems have been asked many
times. You can check the Developer documentation on our site and check
how to write new services/plugins and the felix tutorials.

Regards
damencho

On Fri, Apr 25, 2014 at 12:18 PM, Lukasz Ciesluk >> <lukaszciesluk@gmail.com> wrote:
> Hi Jitsi Users,
>
> my problem might be for you at least obvious, but I think that this is
> good
> place to get help due to my issue related with Jitsi.
>
> So, I would like to receive some information from Jitsi including call
> history and meta contacts. I have created my own classes which use
> CallHistoryServiceImpl and MetaContactListServiceImpl. I will put first
> one
> below as a example.
>
> import java.util.Date;
> import java.util.Collection;
> import
> net.java.sip.communicator.impl.callhistory.CallHistoryServiceImpl;
> import net.java.sip.communicator.service.callhistory.CallHistoryService;
> import net.java.sip.communicator.service.callhistory.CallRecord;
>
> public class RetrieveCallHistory
> {
> private final CallHistoryService callhistory;
>
> public RetrieveCallHistory() {
> callhistory = new CallHistoryServiceImpl();
> }
>
> public Collection<CallRecord> getCallHistoryByStartDate(Date date) {
> return this.callhistory.findByStartDate(date);
> }
>
> public Collection<CallRecord> getCallHistoryByEndDate(Date date) {
> return this.callhistory.findByEndDate(date);
> }
>
> public Collection<CallRecord> getCallHistoryFromPerdion(Date start,
> Date
> end) {
> return this.callhistory.findByPeriod(start, end);
> }
> }
>
> My problem is that during initialization of callhistory object using
> class
> CallHistoryServiceImpl is not possible. I receive this exception :
>
> java.lang.NoClassDefFoundError:
> net/java/sip/communicator/impl/callhistory/CallHistoryServiceImpl
>
> I tried to add my classes as a bundle in build.xml and other places, but
> I
> did not succeed. Thanks in advance for your help.
>
> Regards,
> Łukasz Cieśluk
>
> _______________________________________________
> users mailing list
> users@jitsi.org
> Unsubscribe instructions and other list options:
> http://lists.jitsi.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users