Re: noclassdeffounderror in karaf 4.2.3

2019-04-01 Thread Jean-Baptiste Onofré
Hi

Yes I fixed that by adding osgi promise and function bundle in karaf.

Regards
JB

Le 2 avr. 2019 à 05:48, à 05:48, Scott Lewis  a écrit:
>FWIW, this error doesn't appear to occur on 4.2.4
>
>
>On 4/1/2019 7:52 PM, Scott Lewis wrote:
>> Howdy,,
>>
>> Just got the following in Karaf 4.2.3 (felix framework impl):
>>
>> Exception in thread "Thread-44" java.lang.NoClassDefFoundError:
>> org/osgi/util/function/Predicate
>>     at java.lang.Class.getDeclaredMethods0(Native Method)
>>     at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
>>     at java.lang.Class.privateGetPublicMethods(Unknown Source)
>>     at java.lang.Class.getMethods(Unknown Source)
>>     at
>>
>py4j.reflection.ReflectionEngine.getMethodsByNameAndLength(ReflectionEngine.java:345)
>>     at
>> py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:305)
>>     at
>> py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:326)
>>     at py4j.Gateway.invoke(Gateway.java:274)
>>     at
>> py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
>>     at py4j.commands.CallCommand.execute(CallCommand.java:79)
>>     at py4j.GatewayConnection.run(GatewayConnection.java:238)
>>     at java.lang.Thread.run(Unknown Source)
>> Caused by: java.lang.ClassNotFoundException:
>> org.osgi.util.function.Predicate not found by org.apache.felix.scr
>[46]
>>     at
>>
>org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639)
>>     at
>>
>org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)
>>     at
>>
>org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053)
>>     at java.lang.ClassLoader.loadClass(Unknown Source ... 12 more
>>
>>
>> Do I need to load a specific karaf feature to get a hold of Predicate
>
>> class?
>>
>> Thanksinadvance,
>>
>> Scott
>>
>>


Re: noclassdeffounderror in karaf 4.2.3

2019-04-01 Thread Scott Lewis

FWIW, this error doesn't appear to occur on 4.2.4


On 4/1/2019 7:52 PM, Scott Lewis wrote:

Howdy,,

Just got the following in Karaf 4.2.3 (felix framework impl):

Exception in thread "Thread-44" java.lang.NoClassDefFoundError: 
org/osgi/util/function/Predicate

    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
    at java.lang.Class.privateGetPublicMethods(Unknown Source)
    at java.lang.Class.getMethods(Unknown Source)
    at 
py4j.reflection.ReflectionEngine.getMethodsByNameAndLength(ReflectionEngine.java:345)
    at 
py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:305)
    at 
py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:326)

    at py4j.Gateway.invoke(Gateway.java:274)
    at 
py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)

    at py4j.commands.CallCommand.execute(CallCommand.java:79)
    at py4j.GatewayConnection.run(GatewayConnection.java:238)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: 
org.osgi.util.function.Predicate not found by org.apache.felix.scr [46]
    at 
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639)
    at 
org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)
    at 
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053)

    at java.lang.ClassLoader.loadClass(Unknown Source ... 12 more


Do I need to load a specific karaf feature to get a hold of Predicate 
class?


Thanksinadvance,

Scott




noclassdeffounderror in karaf 4.2.3

2019-04-01 Thread Scott Lewis

Howdy,,

Just got the following in Karaf 4.2.3 (felix framework impl):

Exception in thread "Thread-44" java.lang.NoClassDefFoundError: 
org/osgi/util/function/Predicate

    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
    at java.lang.Class.privateGetPublicMethods(Unknown Source)
    at java.lang.Class.getMethods(Unknown Source)
    at 
py4j.reflection.ReflectionEngine.getMethodsByNameAndLength(ReflectionEngine.java:345)
    at 
py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:305)
    at 
py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:326)

    at py4j.Gateway.invoke(Gateway.java:274)
    at 
py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)

    at py4j.commands.CallCommand.execute(CallCommand.java:79)
    at py4j.GatewayConnection.run(GatewayConnection.java:238)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: 
org.osgi.util.function.Predicate not found by org.apache.felix.scr [46]
    at 
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639)
    at 
org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)
    at 
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053)

    at java.lang.ClassLoader.loadClass(Unknown Source ... 12 more


Do I need to load a specific karaf feature to get a hold of Predicate class?

Thanksinadvance,

Scott