[jitsi-dev] ResourceManagementService


#1

Hi,

I am using libjitsi library, and I see various exceptions in the log like
Class not found exception for ResourceManagementService when I try to use
Media Service

I took a look over libjitsi code and I noticed a rule based on which
services are defined.
The service interfaces are located under packages named:
org.jitsi.service.* and the service implementations are located under
packages named org.jitsi.impl.*

With regard to ResourceManagementService, there is
a org.jitsi.service.resources.ResourceManagementService, but there is
no org.jitsi.impl.resources.ResourceManagementServiceImpl.
So when Media service is retrieved, class not found exception is seen in
the log when ResourceManagementService retrieval is attempted.

This is benign, I mean I can properly use services, just wondering if this
is a real bug (I can write a patch to fix it) or I am missing something.

Thanks,
Mircea


#2

Here is the exception:

INFO: Failed to initialize service implementation
org.jitsi.impl.resources.ResourceManagementServiceImpl. Will continue
without it.
java.lang.ClassNotFoundException:
org.jitsi.impl.resources.ResourceManagementServiceImpl
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:186)
        at
org.jitsi.impl.libjitsi.LibJitsiImpl.getService(LibJitsiImpl.java:109)
        at
org.jitsi.service.libjitsi.LibJitsi.invokeGetServiceOnImpl(LibJitsi.java:163)
        at
org.jitsi.service.libjitsi.LibJitsi.getResourceManagementService(LibJitsi.java:145)

···

On Tue, Mar 12, 2013 at 3:48 PM, Mircea Carasel <mirceac@ezuce.com> wrote:

Hi,

I am using libjitsi library, and I see various exceptions in the log like
Class not found exception for ResourceManagementService when I try to use
Media Service

I took a look over libjitsi code and I noticed a rule based on which
services are defined.
The service interfaces are located under packages named:
org.jitsi.service.* and the service implementations are located under
packages named org.jitsi.impl.*

With regard to ResourceManagementService, there is
a org.jitsi.service.resources.ResourceManagementService, but there is
no org.jitsi.impl.resources.ResourceManagementServiceImpl.
So when Media service is retrieved, class not found exception is seen in
the log when ResourceManagementService retrieval is attempted.

This is benign, I mean I can properly use services, just wondering if this
is a real bug (I can write a patch to fix it) or I am missing something.

Thanks,
Mircea


#3

Hello,

Thanks for report ! We had few changes there recently. I'll take a look on
it.

Here is the exception:

INFO: Failed to initialize service implementation

org.jitsi.impl.resources.ResourceManagementServiceImpl. Will continue
without it.

java.lang.ClassNotFoundException:

org.jitsi.impl.resources.ResourceManagementServiceImpl

        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:186)
        at

org.jitsi.impl.libjitsi.LibJitsiImpl.getService(LibJitsiImpl.java:109)

        at

org.jitsi.service.libjitsi.LibJitsi.invokeGetServiceOnImpl(LibJitsi.java:163)

        at

org.jitsi.service.libjitsi.LibJitsi.getResourceManagementService(LibJitsi.java:145)

Hi,

I am using libjitsi library, and I see various exceptions in the log

like Class not found exception for ResourceManagementService when I try to
use Media Service

I took a look over libjitsi code and I noticed a rule based on which

services are defined.

The service interfaces are located under packages named:

org.jitsi.service.* and the service implementations are located under
packages named org.jitsi.impl.*

With regard to ResourceManagementService, there is a

org.jitsi.service.resources.ResourceManagementService, but there is no
org.jitsi.impl.resources.ResourceManagementServiceImpl.

So when Media service is retrieved, class not found exception is seen in

the log when ResourceManagementService retrieval is attempted.

This is benign, I mean I can properly use services, just wondering if

this is a real bug (I can write a patch to fix it) or I am missing
something.

···

2013/3/12 Mircea Carasel <mirceac@ezuce.com>

On Tue, Mar 12, 2013 at 3:48 PM, Mircea Carasel <mirceac@ezuce.com> wrote:

Thanks,
Mircea

--
Regards,
Pawel


#4

Hello,

Thanks for report ! We had few changes there recently. I'll take a look
on it.

Thanks for looking into

Same thing happens for PacketLoggingService:

Failed to initialize service implementation
org.jitsi.impl.packetlogging.PacketLoggingServiceImpl. Will continue
without it.
java.lang.ClassNotFoundException:
org.jitsi.impl.packetlogging.PacketLoggingServiceImpl
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:186)
        at
org.jitsi.impl.libjitsi.LibJitsiImpl.getService(LibJitsiImpl.java:109)
        at
org.jitsi.service.libjitsi.LibJitsi.invokeGetServiceOnImpl(LibJitsi.java:163)
        at
org.jitsi.service.libjitsi.LibJitsi.getPacketLoggingService(LibJitsi.java:130)

Mircea

···

On Tue, Mar 12, 2013 at 4:07 PM, Paweł Domas <paweldomas@gmail.com> wrote:

--
Regards,
Pawel


#5

These are OPTIONAL services that the libjitsi library could use if
they were present, implemented but they are not REQUIRED. So libjitsi
tries to initialize them (because you could provide your own
implementations, for example) but it will happily continue without
them (as the log says).

···

2013/3/12 Mircea Carasel <mirceac@ezuce.com>:

Failed to initialize service implementation
org.jitsi.impl.packetlogging.PacketLoggingServiceImpl. Will continue without
it.