kylin-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ShaoFeng Shi <shaofeng...@apache.org>
Subject Re: Encoded password cannot be null or empty when login into kylin's web UI
Date Thu, 04 May 2017 09:51:20 GMT
A bug in kylin 2.0 beta might cause some dirty data. You can try this way:

1. stop Kylin, and then run "bin/metastore.sh backup"
2. reset metastore: "bin/metastore.sh reset"
3. restore: "bin/metastore.sh restore <path_of_the_latest_backup>"
4. start Kylin

2017-05-04 15:55 GMT+08:00 赵天烁 <zhaotianshuo@meizu.com>:

> think I probably found the cause,any idea how to fixed?
>
>
> after the following exception, the password of ADMIN instance just change
> to blank..
> java.lang.ArrayIndexOutOfBoundsException
> at java.lang.System.arraycopy(Native Method)
> at sun.security.provider.DigestBase.engineUpdate(DigestBase.java:127)
> at java.security.MessageDigest$Delegate.engineUpdate(Message
> Digest.java:568)
> at java.security.MessageDigest.update(MessageDigest.java:323)
> at java.security.MessageDigest.digest(MessageDigest.java:398)
> at org.apache.kylin.rest.security.KylinAuthenticationProvide
> r.authenticate(KylinAuthenticationProvider.java:76)
> at org.springframework.security.authentication.ProviderManag
> er.authenticate(ProviderManager.java:156)
> at org.springframework.security.authentication.ProviderManag
> er.authenticate(ProviderManager.java:174)
> at org.springframework.security.web.authentication.www.Basic
> AuthenticationFilter.doFilter(BasicAuthenticationFilter.java:168)
> at org.springframework.security.web.FilterChainProxy$Virtual
> FilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.authentication.ui.Defaul
> tLoginPageGeneratingFilter.doFilter(DefaultLoginPageGenerati
> ngFilter.java:91)
> at org.springframework.security.web.FilterChainProxy$Virtual
> FilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.authentication.AbstractA
> uthenticationProcessingFilter.doFilter(AbstractAuthenticatio
> nProcessingFilter.java:183)
> at org.springframework.security.web.FilterChainProxy$Virtual
> FilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.authentication.logout.Lo
> goutFilter.doFilter(LogoutFilter.java:105)
> at org.springframework.security.web.FilterChainProxy$Virtual
> FilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.context.SecurityContextP
> ersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
> at org.springframework.security.web.FilterChainProxy$Virtual
> FilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.FilterChainProxy.doFilte
> rInternal(FilterChainProxy.java:192)
> at org.springframework.security.web.FilterChainProxy.doFilte
> r(FilterChainProxy.java:160)
> at org.springframework.web.filter.DelegatingFilterProxy.invo
> keDelegate(DelegatingFilterProxy.java:343)
> at org.springframework.web.filter.DelegatingFilterProxy.doFi
> lter(DelegatingFilterProxy.java:260)
> at org.apache.catalina.core.ApplicationFilterChain.internalD
> oFilter(ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:209)
> at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:244)
> at org.apache.catalina.core.ApplicationFilterChain.internalD
> oFilter(ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.apache.catalina.core.StandardWrapperValve.invoke(Stan
> dardWrapperValve.java:220)
> at org.apache.catalina.core.StandardContextValve.invoke(Stan
> dardContextValve.java:122)
> at org.apache.catalina.authenticator.AuthenticatorBase.invok
> e(AuthenticatorBase.java:505)
> at org.apache.catalina.core.StandardHostValve.invoke(Standar
> dHostValve.java:169)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorR
> eportValve.java:103)
> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLo
> gValve.java:956)
> at org.apache.catalina.core.StandardEngineValve.invoke(Stand
> ardEngineValve.java:116)
> at org.apache.catalina.connector.CoyoteAdapter.service(Coyot
> eAdapter.java:436)
> at org.apache.coyote.http11.AbstractHttp11Processor.process(
> AbstractHttp11Processor.java:1078)
> at org.apache.coyote.AbstractProtocol$AbstractConnectionHand
> ler.process(AbstractProtocol.java:625)
> at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.ru
> n(JIoEndpoint.java:316)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadP
> oolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Thread
> PoolExecutor.java:615)
> at org.apache.tomcat.util.threads.TaskThread$WrappingRunnabl
> e.run(TaskThread.java:61)
> at java.lang.Thread.run(Thread.java:745)
>
> May 04, 2017 3:50:28 PM org.apache.catalina.core.StandardWra
> pperValve invoke
> SEVERE: Servlet.service() for servlet [kylin] in context wit
> h path [/kylin] threw exception
>
> ------------------------------
>
> 赵天烁
>
> Kevin Zhao
>
> *zhaotianshuo@meizu.com <zhaotianshuo@meizu.com>*
>
>
>
> 珠海市魅族科技有限公司
>
> MEIZU Technology Co., Ltd.
>
> 广东省珠海市科技创新海岸魅族科技楼
>
> MEIZU Tech Bldg., Technology & Innovation Coast
>
> Zhuhai, 519085, Guangdong, China
>
> meizu.com
>
>
> *发件人:* 赵天烁 <zhaotianshuo@meizu.com>
> *发送时间:* 2017-05-04 15:32
> *收件人:* user <user@kylin.apache.org>
> *主题:* Encoded password cannot be null or empty when login into kylin's
> web UI
> after update to 2.0 release,I got the error below when I try to login into
> kylin's web UI with testing security,ADMIN account.same thing happen when I
> try to create a jdbc connection,sometimes when I restart,the error just
> gone,then after a few minutes,it reappeared....
> I try remote debug in kylin server,I dig into the userMap in InMemoryDaoImpl,
> found that the password of ADMIN instance is blank?!is there any reason
> will cause this problem?
> java.lang.IllegalArgumentException: Encoded password cannot
> be null or empty
> at org.springframework.security.crypto.bcrypt.BCryptPassword
> Encoder.matches(BCryptPasswordEncoder.java:77)
> at org.springframework.security.authentication.dao.DaoAuthen
> ticationProvider$1.isPasswordValid(DaoAuthenticationProvider.java:124)
> at org.springframework.security.authentication.dao.DaoAuthen
> ticationProvider.additionalAuthenticationChecks(DaoAuthentic
> ationProvider.java:64)
> at org.springframework.security.authentication.dao.AbstractU
> serDetailsAuthenticationProvider.authenticate(AbstractUserDe
> tailsAuthenticationProvider.java:149)
> at org.apache.kylin.rest.security.KylinAuthenticationProvide
> r.authenticate(KylinAuthenticationProvider.java:85)
> at org.springframework.security.authentication.ProviderManag
> er.authenticate(ProviderManager.java:156)
> at org.springframework.security.authentication.ProviderManag
> er.authenticate(ProviderManager.java:174)
> at org.springframework.security.web.authentication.www.Basic
> AuthenticationFilter.doFilter(BasicAuthenticationFilter.java:168)
> at org.springframework.security.web.FilterChainProxy$Virtual
> FilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.authentication.ui.Defaul
> tLoginPageGeneratingFilter.doFilter(DefaultLoginPageGenerati
> ngFilter.java:91)
> at org.springframework.security.web.FilterChainProxy$Virtual
> FilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.authentication.AbstractA
> uthenticationProcessingFilter.doFilter(AbstractAuthenticatio
> nProcessingFilter.java:183)
> at org.springframework.security.web.FilterChainProxy$Virtual
> FilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.authentication.logout.Lo
> goutFilter.doFilter(LogoutFilter.java:105)
> at org.springframework.security.web.FilterChainProxy$Virtual
> FilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.context.SecurityContextP
> ersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
> at org.springframework.security.web.FilterChainProxy$Virtual
> FilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.FilterChainProxy.doFilte
> rInternal(FilterChainProxy.java:192)
> at org.springframework.security.web.FilterChainProxy.doFilte
> r(FilterChainProxy.java:160)
> at org.springframework.web.filter.DelegatingFilterProxy.invo
> keDelegate(DelegatingFilterProxy.java:343)
> at org.springframework.web.filter.DelegatingFilterProxy.doFi
> lter(DelegatingFilterProxy.java:260)
> at org.apache.catalina.core.ApplicationFilterChain.internalD
> oFilter(ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:209)
> at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:244)
> at org.apache.catalina.core.ApplicationFilterChain.internalD
> oFilter(ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.apache.catalina.core.StandardWrapperValve.invoke(Stan
> dardWrapperValve.java:220)
> at org.apache.catalina.core.StandardContextValve.invoke(Stan
> dardContextValve.java:122)
> at org.apache.catalina.authenticator.AuthenticatorBase.invok
> e(AuthenticatorBase.java:505)
> at org.apache.catalina.core.StandardHostValve.invoke(Standar
> dHostValve.java:169)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorR
> eportValve.java:103)
> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLo
> gValve.java:956)
> at org.apache.catalina.core.StandardEngineValve.invoke(Stand
> ardEngineValve.java:116)
> at org.apache.catalina.connector.CoyoteAdapter.service(Coyot
> eAdapter.java:436)
> at org.apache.coyote.http11.AbstractHttp11Processor.process(
> AbstractHttp11Processor.java:1078)
> at org.apache.coyote.AbstractProtocol$AbstractConnectionHand
> ler.process(AbstractProtocol.java:625)
> at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.ru
> n(JIoEndpoint.java:316)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadP
> oolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Thread
> PoolExecutor.java:615)
> at org.apache.tomcat.util.threads.TaskThread$WrappingRunnabl
> e.run(TaskThread.java:61)
> at java.lang.Thread.run(Thread.java:745)
>
>
> ------------------------------
>
> 赵天烁
>
> Kevin Zhao
>
> *zhaotianshuo@meizu.com <zhaotianshuo@meizu.com>*
>
>
>
> 珠海市魅族科技有限公司
>
> MEIZU Technology Co., Ltd.
>
> 广东省珠海市科技创新海岸魅族科技楼
>
> MEIZU Tech Bldg., Technology & Innovation Coast
>
> Zhuhai, 519085, Guangdong, China
>
> meizu.com
>
>


-- 
Best regards,

Shaofeng Shi 史少锋

Mime
View raw message