karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Java 6 support broken in Karaf 3.0.x
Date Thu, 07 Jul 2016 03:48:01 GMT
I meant 3.0.8.

By the way, I just created the Jira for the tracking.

Regards
JB

On 07/07/2016 05:45 AM, Jean-Baptiste Onofré wrote:
> Hi
>
> It seems to be related to Felix FileInstall update which doesn't support
> Java 6 anymore.
>
> The only workaround is to downgrade to previous FileInstall. I will do
> it for 3.0.7.
>
> Thanks,
> Regards
> JB
>
> On 07/06/2016 11:20 PM, Krzysztof Sobkowiak wrote:
>> Hi
>>
>> According to http://karaf.apache.org/download.html Karaf 3.0.x
>> supports Java 6. I tried to start it with 1.6.0_45 and got following
>> error while starting the container
>>
>> java.lang.UnsupportedClassVersionError:
>> org/apache/felix/fileinstall/internal/FileInstall : Unsupported
>> major.minor version 51.0
>>      at java.lang.ClassLoader.defineClass1(Native Method)
>>      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>>      at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>>      at
>> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2279)
>>
>>      at
>> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1501)
>>
>>      at
>> org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
>>
>>      at
>> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
>>
>>      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>      at
>> org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWiringImpl.java:1374)
>>
>>      at
>> org.apache.felix.framework.Felix.createBundleActivator(Felix.java:4329)
>>      at org.apache.felix.framework.Felix.activateBundle(Felix.java:2141)
>>      at org.apache.felix.framework.Felix.startBundle(Felix.java:2064)
>>      at
>> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291)
>>      at
>> org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
>>
>>      at java.lang.Thread.run(Thread.java:662)
>> [FelixStartLevel] ERROR
>> org.apache.aries.blueprint.container.BlueprintContainerImpl - Unable
>> to start blueprint container for bundle
>> org.apache.aries.blueprint.cm/1.0.8
>> java.lang.NoClassDefFoundError: java/lang/AutoCloseable
>>      at java.lang.ClassLoader.defineClass1(Native Method)
>>      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>>      at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>>      at
>> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2279)
>>
>>      at
>> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1501)
>>
>>      at
>> org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
>>
>>      at
>> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
>>
>>      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>      at
>> org.apache.aries.blueprint.namespace.NamespaceHandlerRegistryImpl$NamespaceHandlerSetImpl.createSchema(NamespaceHandlerRegistryImpl.java:603)
>>
>>      at
>> org.apache.aries.blueprint.namespace.NamespaceHandlerRegistryImpl$NamespaceHandlerSetImpl.doGetSchema(NamespaceHandlerRegistryImpl.java:458)
>>
>>      at
>> org.apache.aries.blueprint.namespace.NamespaceHandlerRegistryImpl$NamespaceHandlerSetImpl.getSchema(NamespaceHandlerRegistryImpl.java:443)
>>
>>      at
>> org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:343)
>>
>>      at
>> org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:276)
>>
>>      at
>> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:300)
>>
>>      at
>> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:269)
>>
>>      at
>> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:265)
>>
>>      at
>> org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:255)
>>
>>      at
>> org.apache.aries.blueprint.container.BlueprintExtender.addingBundle(BlueprintExtender.java:218)
>>
>>      at
>> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerAdding(BundleHookBundleTracker.java:487)
>>
>>      at
>> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerAdding(BundleHookBundleTracker.java:433)
>>
>>      at
>> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.trackAdding(BundleHookBundleTracker.java:749)
>>
>>      at
>> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.trackInitial(BundleHookBundleTracker.java:674)
>>
>>      at
>> org.apache.aries.util.tracker.hook.BundleHookBundleTracker.open(BundleHookBundleTracker.java:159)
>>
>>      at
>> org.apache.aries.util.tracker.RecursiveBundleTracker.open(RecursiveBundleTracker.java:106)
>>
>>      at
>> org.apache.aries.blueprint.container.BlueprintExtender$2.serviceFound(BlueprintExtender.java:119)
>>
>>      at
>> org.apache.aries.util.tracker.SingleServiceTracker.update(SingleServiceTracker.java:174)
>>
>>      at
>> org.apache.aries.util.tracker.SingleServiceTracker.findMatchingReference(SingleServiceTracker.java:132)
>>
>>      at
>> org.apache.aries.util.tracker.SingleServiceTracker.open(SingleServiceTracker.java:100)
>>
>>      at
>> org.apache.aries.blueprint.container.BlueprintExtender.start(BlueprintExtender.java:137)
>>
>>      at
>> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
>>
>>      at org.apache.felix.framework.Felix.activateBundle(Felix.java:2146)
>>      at org.apache.felix.framework.Felix.startBundle(Felix.java:2064)
>>      at
>> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291)
>>      at
>> org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
>>
>>      at java.lang.Thread.run(Thread.java:662)
>> Caused by: java.lang.ClassNotFoundException: java.lang.AutoCloseable
>>      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>      at java.security.AccessController.doPrivileged(Native Method)
>>      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>      at
>> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460)
>>
>>      at
>> org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
>>
>>      at
>> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
>>
>>      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>      ... 35 more
>>
>> AutoCloseable has been introduced in Java 7.
>>
>> I'm getting similar problems while starting ServiceMix
>>
>>   19%
>> [=============>
>> ]ERROR: Bundle org.apache.felix.fileinstall [7] Error starting
>> mvn:org.apache.felix/org.apache.felix.fileinstall/3.5.2
>> (org.osgi.framework.BundleException: Activator start error in bundle
>> org.apache.felix.fileinstall [7].)
>> java.lang.UnsupportedClassVersionError:
>> org/apache/felix/fileinstall/internal/FileInstall : Unsupported
>> major.minor version 51.0
>>      at java.lang.ClassLoader.defineClass1(Native Method)
>>      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>>      at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>>
>>
>> 38%
>> [===========================>
>> ][FelixStartLevel] ERROR
>> org.apache.aries.blueprint.container.BlueprintContainerImpl - Unable
>> to start blueprint container for bundle
>> org.apache.karaf.deployer.spring/3.0.6
>> java.lang.UnsupportedClassVersionError:
>> org/apache/felix/fileinstall/ArtifactUrlTransformer : Unsupported
>> major.minor version 51.0
>>      at java.lang.ClassLoader.defineClass1(Native Method)
>>      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>>      at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>>      at
>> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2279)
>>
>>      at
>> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1501)
>>
>>      at
>> org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
>>
>>      at
>> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
>>
>>      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>      at
>> org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWiringImpl.java:1374)
>>
>>
>>
>> Caused by: java.lang.ClassNotFoundException:
>> java.util.concurrent.ConcurrentLinkedDeque
>>      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>      at java.security.AccessController.doPrivileged(Native Method)
>>      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>      at
>> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460)
>>
>>
>>
>> ConcurrentLinkedDeque introduced in Java 7.
>>
>> I think Karaf 3.0.x no more supports Java 6 and we should remove this
>> iformation from the schedule matrix and update the supported
>> target/source in pom.
>>
>> Kindly regards
>> Krzysztof
>>
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Mime
View raw message