karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Lewis <sle...@composent.com>
Subject Re: noclassdeffounderror in karaf 4.2.3
Date Tue, 02 Apr 2019 03:48:27 GMT
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
>
>

Mime
View raw message