You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Scott Lewis <sl...@composent.com> on 2019/04/02 02:52:17 UTC

noclassdeffounderror in karaf 4.2.3

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

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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 <sl...@composent.com> 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

Posted by Scott Lewis <sl...@composent.com>.
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
>
>