Startup error using JRE 10 with 4.2.0

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Startup error using JRE 10 with 4.2.0

Scott

I see the following during startup of Karaf 4.2.0 with JDK 10 on Windows Server 2016.  Has anybody else seen this?  Shall I submit a JIRA?

 

Regards,

 

Scott Leschke

 

 

2018-07-09T16:00:56,439 | ERROR | paxweb-config-2-thread-1 | Activator                        | 108 - org.ops4j.pax.web.pax-web-runtime - 7.0.0 | Unable to start pax web server: Weaving hook failed.

java.lang.ClassFormatError: Weaving hook failed.

                at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.transformClass(BundleWiringImpl.java:2479) ~[?:?]

                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(ClassLoader.java:499) ~[?:?]

                at org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWiringImpl.java:1414) ~[?:?]

                at org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1660) ~[?:?]

                at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1590) ~[?:?]

                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(ClassLoader.java:499) ~[?:?]

                at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.<init>(JettyServerImpl.java:97) ~[?:?]

                at org.ops4j.pax.web.service.jetty.internal.JettyFactoryImpl.createServer(JettyFactoryImpl.java:90) ~[?:?]

                at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:443) ~[?:?]

                at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:81) ~[?:?]

                at org.ops4j.pax.web.service.jetty.internal.ServerControllerFactoryImpl$1.start(ServerControllerFactoryImpl.java:164) ~[?:?]

                at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Unconfigured.configure(ServerControllerImpl.java:788) ~[?:?]

                at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:97) ~[?:?]

                at org.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:347) ~[?:?]

                at org.ops4j.pax.web.service.internal.Activator.lambda$scheduleUpdateFactory$2(Activator.java:291) ~[?:?]

                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514) [?:?]

                at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135) [?:?]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]

                at java.lang.Thread.run(Thread.java:844) [?:?]

Caused by: java.lang.IllegalArgumentException

                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:1441) ~[?:?]

                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) ~[?:?]

                ... 25 more

2018-07-09T16:00:56,454 | ERROR | FelixDispatchQueue | bundle                           | 61 - org.apache.aries.spifly.dynamic.bundle - 1.0.10 | 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:1441) ~[?:?]

                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(ClassLoader.java:499) ~[?:?]

                at org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWiringImpl.java:1414) ~[?:?]

                at org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1660) ~[?:?]

                at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1590) ~[?:?]

                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(ClassLoader.java:499) ~[?:?]

                at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.<init>(JettyServerImpl.java:97) ~[?:?]

                at org.ops4j.pax.web.service.jetty.internal.JettyFactoryImpl.createServer(JettyFactoryImpl.java:90) ~[?:?]

                at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:443) ~[?:?]

                at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:81) ~[?:?]

                at org.ops4j.pax.web.service.jetty.internal.ServerControllerFactoryImpl$1.start(ServerControllerFactoryImpl.java:164) ~[?:?]

                at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Unconfigured.configure(ServerControllerImpl.java:788) ~[?:?]

                at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:97) ~[?:?]

                at org.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:347) ~[?:?]

                at org.ops4j.pax.web.service.internal.Activator.lambda$scheduleUpdateFactory$2(Activator.java:291) ~[?:?]

                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514) ~[?:?]

                at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135) ~[?:?]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]

                at java.lang.Thread.run(Thread.java:844) [?:?]

Reply | Threaded
Open this post in threaded view
|

Re: Startup error using JRE 10 with 4.2.0

Freeman-2
Hi,

FYI, the upcoming Karaf 4.2.1 will start to support Java 10. The error you see comes from that the the asm6.0(used in Karaf 4.2) can’t work with JAVA10.

Cheers
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat



On Jul 10, 2018, at 10:51 PM, Leschke, Scott <[hidden email]> wrote:

I see the following during startup of Karaf 4.2.0 with JDK 10 on Windows Server 2016.  Has anybody else seen this?  Shall I submit a JIRA?
 
Regards,
 
Scott Leschke
 
 
2018-07-09T16:00:56,439 | ERROR | paxweb-config-2-thread-1 | Activator                        | 108 - org.ops4j.pax.web.pax-web-runtime - 7.0.0 | Unable to start pax web server: Weaving hook failed.
java.lang.ClassFormatError: Weaving hook failed.
                at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.transformClass(BundleWiringImpl.java:2479) ~[?:?]
                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(ClassLoader.java:499) ~[?:?]
                at org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWiringImpl.java:1414) ~[?:?]
                at org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1660) ~[?:?]
                at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1590) ~[?:?]
                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(ClassLoader.java:499) ~[?:?]
                at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.<init>(JettyServerImpl.java:97) ~[?:?]
                at org.ops4j.pax.web.service.jetty.internal.JettyFactoryImpl.createServer(JettyFactoryImpl.java:90) ~[?:?]
                at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:443) ~[?:?]
                at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:81) ~[?:?]
                at org.ops4j.pax.web.service.jetty.internal.ServerControllerFactoryImpl$1.start(ServerControllerFactoryImpl.java:164) ~[?:?]
                at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Unconfigured.configure(ServerControllerImpl.java:788) ~[?:?]
                at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:97) ~[?:?]
                at org.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:347) ~[?:?]
                at org.ops4j.pax.web.service.internal.Activator.lambda$scheduleUpdateFactory$2(Activator.java:291) ~[?:?]
                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514) [?:?]
                at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135) [?:?]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
                at java.lang.Thread.run(Thread.java:844) [?:?]
Caused by: java.lang.IllegalArgumentException
                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:1441) ~[?:?]
                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) ~[?:?]
                ... 25 more
2018-07-09T16:00:56,454 | ERROR | FelixDispatchQueue | bundle                           | 61 - org.apache.aries.spifly.dynamic.bundle - 1.0.10 | 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:1441) ~[?:?]
                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(ClassLoader.java:499) ~[?:?]
                at org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWiringImpl.java:1414) ~[?:?]
                at org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1660) ~[?:?]
                at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1590) ~[?:?]
                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(ClassLoader.java:499) ~[?:?]
                at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.<init>(JettyServerImpl.java:97) ~[?:?]
                at org.ops4j.pax.web.service.jetty.internal.JettyFactoryImpl.createServer(JettyFactoryImpl.java:90) ~[?:?]
                at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:443) ~[?:?]
                at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:81) ~[?:?]
                at org.ops4j.pax.web.service.jetty.internal.ServerControllerFactoryImpl$1.start(ServerControllerFactoryImpl.java:164) ~[?:?]
                at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Unconfigured.configure(ServerControllerImpl.java:788) ~[?:?]
                at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:97) ~[?:?]
                at org.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:347) ~[?:?]
                at org.ops4j.pax.web.service.internal.Activator.lambda$scheduleUpdateFactory$2(Activator.java:291) ~[?:?]
                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514) ~[?:?]
                at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135) ~[?:?]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
                at java.lang.Thread.run(Thread.java:844) [?:?]