karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Otasek (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-5705) Java 10 issues with jetty
Date Fri, 01 Jun 2018 22:37:00 GMT

    [ https://issues.apache.org/jira/browse/KARAF-5705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16498652#comment-16498652
] 

David Otasek commented on KARAF-5705:
-------------------------------------

I've resolved this error on a local build by updating two configuration properties: 


<jetty.version>9.4.10.v20180503</jetty.version> 
<asm.version>6.2</asm.version> 

 

This appears to have been addressed here: https://github.com/eclipse/jetty.project/issues/2586

 

> Java 10 issues with jetty
> -------------------------
>
>                 Key: KARAF-5705
>                 URL: https://issues.apache.org/jira/browse/KARAF-5705
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 4.2.1
>         Environment: Windows 10 Enterprise
> java version "10" 2018-03-20
> Java(TM) SE Runtime Environment 18.3 (build 10+46)
> Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10+46, mixed mode)
>            Reporter: David Otasek
>            Priority: Major
>
> This is related to the workaround I've had to use for the issue outlined here: 
> https://issues.apache.org/jira/browse/KARAF-5687
> (short version, I changed jetty.version to 9.4.7.v20170914)
> The workaround works under Java 8/9 under Windows 10, but with Java 10, the server I
created becomes unreachable. In my framework log, I get the following error reports:
> {code:java}
> 2018-04-18 17:33:13,297 [FelixStartLevel] ERROR org.apache.aries.blueprint.container.BlueprintContainerImpl
- Unable to start blueprint container for bundle org.apache.karaf.shell.core/4.2.1.SNAPSHOT
> org.osgi.service.blueprint.container.ComponentDefinitionException: java.lang.IllegalArgumentException:
Invalid Java version 54
>  at org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:141)
~[21:org.apache.aries.blueprint.core:1.9.0]
>  at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81) ~[21:org.apache.aries.blueprint.core:1.9.0]
>  at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:?]
>  at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90) ~[21:org.apache.aries.blueprint.core:1.9.0]
>  at org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:810)
~[21:org.apache.aries.blueprint.core:1.9.0]
>  at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:784)
~[21:org.apache.aries.blueprint.core:1.9.0]
>  at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:765)
~[21:org.apache.aries.blueprint.core:1.9.0]
>  at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:699)
~[21:org.apache.aries.blueprint.core:1.9.0]
>  at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666)
~[21:org.apache.aries.blueprint.core:1.9.0]
>  at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81) ~[21:org.apache.aries.blueprint.core:1.9.0]
>  at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:?]
>  at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90) ~[21:org.apache.aries.blueprint.core:1.9.0]
>  at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:360)
~[21:org.apache.aries.blueprint.core:1.9.0]
>  at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:190)
~[21:org.apache.aries.blueprint.core:1.9.0]
>  at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:716)
~[21:org.apache.aries.blueprint.core:1.9.0]
>  at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:413)
[21:org.apache.aries.blueprint.core:1.9.0]
>  at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:278)
[21:org.apache.aries.blueprint.core:1.9.0]
>  at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:299)
[21:org.apache.aries.blueprint.core:1.9.0]
>  at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:268)
[21:org.apache.aries.blueprint.core:1.9.0]
>  at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:264)
[21:org.apache.aries.blueprint.core:1.9.0]
>  at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:254)
[21:org.apache.aries.blueprint.core:1.9.0]
>  at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)
[21:org.apache.aries.blueprint.core:1.9.0]
>  at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)
[21:org.apache.aries.blueprint.core:1.9.0]
>  at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)
[21:org.apache.aries.blueprint.core:1.9.0]
>  at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)
[21:org.apache.aries.blueprint.core:1.9.0]
>  at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)
[21:org.apache.aries.blueprint.core:1.9.0]
>  at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179)
[?:?]
>  at org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730)
[?:?]
>  at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485)
[?:?]
>  at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) [?:?]
>  at org.apache.felix.framework.Felix.startBundle(Felix.java:2174) [?:?]
>  at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373) [?:?]
>  at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
[?:?]
>  at java.lang.Thread.run(Unknown Source) [?:?]
> Caused by: java.lang.IllegalArgumentException: Invalid Java version 54
>  at org.apache.aries.proxy.impl.ProxyUtils.getWeavingJavaVersion(ProxyUtils.java:64)
~[?:?]
>  at org.apache.aries.proxy.impl.interfaces.InterfaceCombiningClassAdapter.<init>(InterfaceCombiningClassAdapter.java:79)
~[?:?]
>  at org.apache.aries.proxy.impl.interfaces.ProxyClassLoader.createProxyClass(ProxyClassLoader.java:155)
~[?:?]
>  at org.apache.aries.proxy.impl.interfaces.InterfaceProxyGenerator.getProxyInstance(InterfaceProxyGenerator.java:97)
~[?:?]
>  at org.apache.aries.proxy.impl.AsmProxyManager.createNewProxy(AsmProxyManager.java:80)
~[?:?]
>  at org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingInterceptingProxy(AbstractProxyManager.java:77)
~[?:?]
>  at org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingProxy(AbstractProxyManager.java:42)
~[?:?]
>  at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.createProxy(AbstractServiceReferenceRecipe.java:332)
~[?:?]
>  at org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:125)
~[?:?]{code}
> followed by 
> {code:java}
> 2018-04-18 17:33:15,872 [FelixDispatchQueue] ERROR org.apache.aries.spifly.dynamic.bundle
- FrameworkEvent ERROR - org.apache.aries.spifly.dynamic.bundle
> java.lang.IllegalArgumentException: null
> at org.objectweb.asm.ClassReader.<init>(ClassReader.java:160) ~[?:?]
> at org.objectweb.asm.ClassReader.<init>(ClassReader.java:143) ~[?:?]
> at org.objectweb.asm.ClassReader.<init>(ClassReader.java:418) ~[?:?]
> at org.apache.aries.spifly.dynamic.OSGiFriendlyClassWriter.getCommonSuperClass(OSGiFriendlyClassWriter.java:81)
~[?:?]
> at org.objectweb.asm.ClassWriter.getMergedType(ClassWriter.java:1729) ~[?:?]
> at org.objectweb.asm.Frame.merge(Frame.java:1530) ~[?:?]
> at org.objectweb.asm.Frame.merge(Frame.java:1429) ~[?:?]
> at org.objectweb.asm.MethodWriter.visitMaxs(MethodWriter.java:1497) ~[?:?]
> at org.objectweb.asm.commons.LocalVariablesSorter.visitMaxs(LocalVariablesSorter.java:165)
~[?:?]
> at org.objectweb.asm.ClassReader.readCode(ClassReader.java:1738) ~[?:?]
> at org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1126) ~[?:?]
> at org.objectweb.asm.ClassReader.accept(ClassReader.java:698) ~[?:?]
> at org.objectweb.asm.ClassReader.accept(ClassReader.java:500) ~[?:?]
> at org.apache.aries.spifly.dynamic.ClientWeavingHook.weave(ClientWeavingHook.java:61)
~[?:?]
> at org.apache.felix.framework.util.SecureAction.invokeWeavingHook(SecureAction.java:1203)
~[?:?]
> at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.transformClass(BundleWiringImpl.java:2465)
~[?:?]
> at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2152)
~[?:?]
> at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1607)
~[?:?]
> 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) ~[?:?]
> at org.eclipse.jetty.util.thread.ShutdownThread.<clinit>(ShutdownThread.java:40)
~[?:?]
> at org.ops4j.pax.web.service.jetty.internal.Activator.start(Activator.java:85) ~[?:?]
> at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
~[?:?]
> at org.apache.felix.framework.Felix.activateBundle(Felix.java:2240) ~[?:?]
> at org.apache.felix.framework.Felix.startBundle(Felix.java:2146) ~[?:?]
> at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373) ~[?:?]
> at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
~[?:?]
> at java.lang.Thread.run(Unknown Source) [?:?]
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message