kylin-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ShaoFeng Shi <shaofeng...@apache.org>
Subject Re: issue: Context initialization failed
Date Fri, 08 Sep 2017 06:39:55 GMT
I also encounter this issue in AWS EMR 5.8; The Hive
uses jackson-databind 2.6.6, which is higher than the compilation level of
Kylin.

As a temporary solution, I downgrade to EMR 5.5 now...

2017-09-01 13:34 GMT+08:00 ShaoFeng Shi <shaofengshi@apache.org>:

> Root cause:
> Caused by: java.lang.ClassCastException: com.fasterxml.jackson.datatype.joda.JodaModule
> cannot be cast to com.fasterxml.jackson.databind.Module
>
> There are incompitable libs; What's the jackson version in your
> environment? Kylin is compiled with jackson 2.6.3, if your env's jar is
> newer and incompitable with it, you may need recompile and build the
> package by your own.
>
>
> 2017-09-01 11:52 GMT+08:00 zili_wang@163.com <zili_wang@163.com>:
>
>>
>>
>>
>>
>> zili_wang@163.com
>>
>> 发件人: zili_wang@163.com
>> 发送时间: 2017-08-31 15:02
>> 收件人: issues-subscribe
>> 主题: bug: Context initialization failed
>> environment:
>>     hadoop-2.8.1
>>     hbase-1.3.1
>>     hive-2.3.0
>>     kylin-2.1.0
>>
>> ----------------------kylin log------------------------
>> 2017-08-31T11:47:19,769 ERROR [localhost-startStop-1]
>> org.springframework.web.context.ContextLoader - Context initialization
>> failed
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean with name 'org.springframework.web.servl
>> et.mvc.method.annotation.RequestMappingHandlerAdapter': Instantiation of
>> bean failed; nested exception is org.springframework.beans.BeanInstantiationException:
>> Failed to instantiate [org.springframework.web.servl
>> et.mvc.method.annotation.RequestMappingHandlerAdapter]: Constructor
>> threw exception; nested exception is java.lang.ClassCastException:
>> com.fasterxml.jackson.datatype.joda.JodaModule cannot be cast to
>> com.fasterxml.jackson.databind.Module
>>         at org.springframework.beans.factory.support.AbstractAutowireCa
>> pableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1109)
>> ~[spring-beans-4.2.8.RELEASE.jar:4.2.8.RELEASE]
>>         at org.springframework.beans.factory.support.AbstractAutowireCa
>> pableBeanFactory.createBeanInstance(AbstractAut
>> owireCapableBeanFactory.java:1054) ~[spring-beans-4.2.8.RELEASE.j
>> ar:4.2.8.RELEASE]
>>         at org.springframework.beans.factory.support.AbstractAutowireCa
>> pableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
>> ~[spring-beans-4.2.8.RELEASE.jar:4.2.8.RELEASE]
>>         at org.springframework.beans.factory.support.AbstractAutowireCa
>> pableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
>> ~[spring-beans-4.2.8.RELEASE.jar:4.2.8.RELEASE]
>>         at org.springframework.beans.factory.support.AbstractBeanFactor
>> y$1.getObject(AbstractBeanFactory.java:306)
>> ~[spring-beans-4.2.8.RELEASE.jar:4.2.8.RELEASE]
>>         at org.springframework.beans.factory.support.DefaultSingletonBe
>> anRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
>> ~[spring-beans-4.2.8.RELEASE.jar:4.2.8.RELEASE]
>>         at org.springframework.beans.factory.support.AbstractBeanFactor
>> y.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.8.RELEASE.j
>> ar:4.2.8.RELEASE]
>>         at org.springframework.beans.factory.support.AbstractBeanFactor
>> y.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.8.RELEASE.j
>> ar:4.2.8.RELEASE]
>>         at org.springframework.beans.factory.support.DefaultListableBea
>> nFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:778)
>> ~[spring-beans-4.2.8.RELEASE.jar:4.2.8.RELEASE]
>>         at org.springframework.context.support.AbstractApplicationConte
>> xt.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
>> ~[spring-context-4.2.8.RELEASE.jar:4.2.8.RELEASE]
>>         at org.springframework.context.support.AbstractApplicationConte
>> xt.refresh(AbstractApplicationContext.java:538)
>> ~[spring-context-4.2.8.RELEASE.jar:4.2.8.RELEASE]
>>         at org.springframework.web.context.ContextLoader.configureAndRe
>> freshWebApplicationContext(ContextLoader.java:444)
>> ~[spring-web-4.2.8.RELEASE.jar:4.2.8.RELEASE]
>>         at org.springframework.web.context.ContextLoader.initWebApplica
>> tionContext(ContextLoader.java:326) [spring-web-4.2.8.RELEASE.jar:
>> 4.2.8.RELEASE]
>>         at org.springframework.web.context.ContextLoaderListener.contex
>> tInitialized(ContextLoaderListener.java:107)
>> [spring-web-4.2.8.RELEASE.jar:4.2.8.RELEASE]
>>         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5068)
>> [catalina.jar:7.0.69]
>>         at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584)
>> [catalina.jar:7.0.69]
>>         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
>> [catalina.jar:7.0.69]
>>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
>> [catalina.jar:7.0.69]
>>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
>> [catalina.jar:7.0.69]
>>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
>> [catalina.jar:7.0.69]
>>         at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
>> [catalina.jar:7.0.69]
>>         at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
>> [catalina.jar:7.0.69]
>>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>> [?:1.8.0_141]
>>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>> [?:1.8.0_141]
>>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>> [?:1.8.0_141]
>>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>> [?:1.8.0_141]
>>         at java.lang.Thread.run(Thread.java:748) [?:1.8.0_141]
>> Caused by: org.springframework.beans.BeanInstantiationException: Failed
>> to instantiate [org.springframework.web.servl
>> et.mvc.method.annotation.RequestMappingHandlerAdapter]: Constructor
>> threw exception; nested exception is java.lang.ClassCastException:
>> com.fasterxml.jackson.datatype.joda.JodaModule cannot be cast to
>> com.fasterxml.jackson.databind.Module
>>         at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
>> ~[spring-beans-4.2.8.RELEASE.jar:4.2.8.RELEASE]
>>         at org.springframework.beans.factory.support.SimpleInstantiatio
>> nStrategy.instantiate(SimpleInstantiationStrategy.java:89)
>> ~[spring-beans-4.2.8.RELEASE.jar:4.2.8.RELEASE]
>>         at org.springframework.beans.factory.support.AbstractAutowireCa
>> pableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1102)
>> ~[spring-beans-4.2.8.RELEASE.jar:4.2.8.RELEASE]
>>         ... 26 more
>> Caused by: java.lang.ClassCastException: com.fasterxml.jackson.datatype.joda.JodaModule
>> cannot be cast to com.fasterxml.jackson.databind.Module
>>         at org.springframework.http.converter.json.Jackson2ObjectMapper
>> Builder.registerWellKnownModulesIfAvailable(Jackson2ObjectMapperBuilder.java:739)
>> ~[spring-web-4.2.8.RELEASE.jar:4.2.8.RELEASE]
>>         at org.springframework.http.converter.json.Jackson2ObjectMapper
>> Builder.configure(Jackson2ObjectMapperBuilder.java:572)
>> ~[spring-web-4.2.8.RELEASE.jar:4.2.8.RELEASE]
>>         at org.springframework.http.converter.json.Jackson2ObjectMapper
>> Builder.build(Jackson2ObjectMapperBuilder.java:554)
>> ~[spring-web-4.2.8.RELEASE.jar:4.2.8.RELEASE]
>>         at org.springframework.http.converter.json.MappingJackson2HttpM
>> essageConverter.<init>(MappingJackson2HttpMessageConverter.java:57)
>> ~[spring-web-4.2.8.RELEASE.jar:4.2.8.RELEASE]
>>         at org.springframework.http.converter.support.AllEncompassingFo
>> rmHttpMessageConverter.<init>(AllEncompassingFormHttpMessageConverter.java:61)
>> ~[spring-web-4.2.8.RELEASE.jar:4.2.8.RELEASE]
>>         at org.springframework.web.servlet.mvc.method.annotation.Reques
>> tMappingHandlerAdapter.<init>(RequestMappingHandlerAdapter.java:187)
>> ~[spring-webmvc-4.2.8.RELEASE.jar:4.2.8.RELEASE]
>>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Method) ~[?:1.8.0_141]
>>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Native
>> ConstructorAccessorImpl.java:62) ~[?:1.8.0_141]
>>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De
>> legatingConstructorAccessorImpl.java:45) ~[?:1.8.0_141]
>>         at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
>> ~[?:1.8.0_141]
>>         at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
>> ~[spring-beans-4.2.8.RELEASE.jar:4.2.8.RELEASE]
>>         at org.springframework.beans.factory.support.SimpleInstantiatio
>> nStrategy.instantiate(SimpleInstantiationStrategy.java:89)
>> ~[spring-beans-4.2.8.RELEASE.jar:4.2.8.REL
>> EASE]
>>         at org.springframework.beans.factory.support.AbstractAutowireCa
>> pableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1102)
>> ~[spring-beans-4.2.8.R
>> ELEASE.jar:4.2.8.RELEASE]
>>         ... 26 more
>> Aug 31, 2017 11:47:19 AM org.apache.catalina.core.StandardContext
>> listenerStart
>> SEVERE: Exception sending context initialized event to listener instance
>> of class org.springframework.web.context.ContextLoaderListener
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean with name 'org.springframework.web.servl
>> et.mvc.method.annotation.RequestMappingHandlerAdapter':
>>  Instantiation of bean failed; nested exception is
>> org.springframework.beans.BeanInstantiationException: Failed to
>> instantiate [org.springframework.web.servlet.mvc.method.a
>> nnotation.RequestMappingHandlerAdapter]: Constructor threw exception;
>> nested exception is java.lang.ClassCastException:
>> com.fasterxml.jackson.datatype.joda.JodaModule canno
>> t be cast to com.fasterxml.jackson.databind.Module
>>         at org.springframework.beans.factory.support.AbstractAutowireCa
>> pableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:
>> 1109)
>>         at org.springframework.beans.factory.support.AbstractAutowireCa
>> pableBeanFactory.createBeanInstance(AbstractAut
>> owireCapableBeanFactory.java:1054)
>>         at org.springframework.beans.factory.support.AbstractAutowireCa
>> pableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFac
>> tory.java:510)
>>         at org.springframework.beans.factory.support.AbstractAutowireCa
>> pableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
>>         at org.springframework.beans.factory.support.AbstractBeanFactor
>> y$1.getObject(AbstractBeanFactory.java:306)
>>         at org.springframework.beans.factory.support.DefaultSingletonBe
>> anRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
>>         at org.springframework.beans.factory.support.AbstractBeanFactor
>> y.doGetBean(AbstractBeanFactory.java:302)
>>         at org.springframework.beans.factory.support.AbstractBeanFactor
>> y.getBean(AbstractBeanFactory.java:197)
>>         at org.springframework.beans.factory.support.DefaultListableBea
>> nFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:778)
>>         at org.springframework.context.support.AbstractApplicationConte
>> xt.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
>>         at org.springframework.context.support.AbstractApplicationConte
>> xt.refresh(AbstractApplicationContext.java:538)
>>         at org.springframework.web.context.ContextLoader.configureAndRe
>> freshWebApplicationContext(ContextLoader.java:444)
>>         at org.springframework.web.context.ContextLoader.initWebApplica
>> tionContext(ContextLoader.java:326)
>>         at org.springframework.web.context.ContextLoaderListener.contex
>> tInitialized(ContextLoaderListener.java:107)
>>         at org.apache.catalina.core.StandardContext.listenerStart(Stand
>> ardContext.java:5068)
>>         at org.apache.catalina.core.StandardContext.startInternal(Stand
>> ardContext.java:5584)
>>         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.
>> java:147)
>>         at org.apache.catalina.core.ContainerBase.addChildInternal(Cont
>> ainerBase.java:899)
>>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBas
>> e.java:875)
>>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.
>> java:652)
>>         at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.
>> java:1092)
>>         at org.apache.catalina.startup.HostConfig$DeployWar.run(HostCon
>> fig.java:1984)
>>         at java.util.concurrent.Executors$RunnableAdapter.call(
>> Executors.java:511)
>>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>> Executor.java:1149)
>>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>> lExecutor.java:624)
>>         at java.lang.Thread.run(Thread.java:748)
>> Caused by: org.springframework.beans.BeanInstantiationException: Failed
>> to instantiate [org.springframework.web.servl
>> et.mvc.method.annotation.RequestMappingHandlerAdapter]: Constructor
>> threw exception; nested exception is java.lang.ClassCastException:
>> com.fasterxml.jackson.datatype.joda.JodaModule cannot be cast to
>> com.fasterxml.jackson.datab
>> ind.Module
>>         at org.springframework.beans.BeanUtils.instantiateClass(BeanUti
>> ls.java:163)
>>         at org.springframework.beans.factory.support.SimpleInstantiatio
>> nStrategy.instantiate(SimpleInstantiationStrategy.java:89)
>>         at org.springframework.beans.factory.support.AbstractAutowireCa
>> pableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:
>> 1102)
>>         ... 26 more
>> Caused by: java.lang.ClassCastException: com.fasterxml.jackson.datatype.joda.JodaModule
>> cannot be cast to com.fasterxml.jackson.databind.Module
>>         at org.springframework.http.converter.json.Jackson2ObjectMapper
>> Builder.registerWellKnownModulesIfAvailable(Jackson2ObjectMa
>> pperBuilder.java:739)
>>         at org.springframework.http.converter.json.Jackson2ObjectMapper
>> Builder.configure(Jackson2ObjectMapperBuilder.java:572)
>>         at org.springframework.http.converter.json.Jackson2ObjectMapper
>> Builder.build(Jackson2ObjectMapperBuilder.java:554)
>>         at org.springframework.http.converter.json.MappingJackson2HttpM
>> essageConverter.<init>(MappingJackson2HttpMessageConverter.java:57)
>>         at org.springframework.http.converter.support.AllEncompassingFo
>> rmHttpMessageConverter.<init>(AllEncompassingFormHttpMessage
>> Converter.java:61)
>>         at org.springframework.web.servlet.mvc.method.annotation.Reques
>> tMappingHandlerAdapter.<init>(RequestMappingHandlerAdapter.java:187)
>>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Method)
>>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Native
>> ConstructorAccessorImpl.java:62)
>>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De
>> legatingConstructorAccessorImpl.java:45)
>>         at java.lang.reflect.Constructor.newInstance(Constructor.java:4
>> 23)
>>         at org.springframework.beans.BeanUtils.instantiateClass(BeanUti
>> ls.java:147)
>>         ... 28 more
>>
>>
>> thanks!
>>
>>
>>
>> zili_wang@163.com
>>
>
>
>
> --
> Best regards,
>
> Shaofeng Shi 史少锋
>
>


-- 
Best regards,

Shaofeng Shi 史少锋

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message