From issues-return-19596-archive-asf-public=cust-asf.ponee.io@kylin.apache.org Sun Sep 9 07:54:12 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 17A04180791 for ; Sun, 9 Sep 2018 07:54:10 +0200 (CEST) Received: (qmail 60053 invoked by uid 500); 9 Sep 2018 05:54:10 -0000 Mailing-List: contact issues-help@kylin.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kylin.apache.org Delivered-To: mailing list issues@kylin.apache.org Received: (qmail 60006 invoked by uid 99); 9 Sep 2018 05:54:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Sep 2018 05:54:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id EA517C7685 for ; Sun, 9 Sep 2018 05:54:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.3 X-Spam-Level: X-Spam-Status: No, score=-110.3 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100, WEIRD_PORT=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id gR3xs1se3Txu for ; Sun, 9 Sep 2018 05:54:08 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 3A5E25FBE6 for ; Sun, 9 Sep 2018 05:54:06 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D8920E264E for ; Sun, 9 Sep 2018 05:54:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 37CB726B8B for ; Sun, 9 Sep 2018 05:54:03 +0000 (UTC) Date: Sun, 9 Sep 2018 05:54:03 +0000 (UTC) From: "Zhong Yanghong (JIRA)" To: issues@kylin.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (KYLIN-3507) Query NPE when project is not found MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KYLIN-3507?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Zhong Yanghong closed KYLIN-3507. --------------------------------- Resolved in release 2.4.1 (2018-09-09) > Query NPE when project is not found > ----------------------------------- > > Key: KYLIN-3507 > URL: https://issues.apache.org/jira/browse/KYLIN-3507 > Project: Kylin > Issue Type: Improvement > Components: Query Engine > Reporter: Ian Hu > Assignee: Ian Hu > Priority: Minor > Fix For: v2.4.1, v2.5.0 > > Attachments: image-2018-08-22-14-56-44-498.png > > > When invoke `/kylin/api/query` with wrong project parameter, there is a N= PE. > {code:java} > {"code":-1,"message":"POST failed, error code 500 and response: {\"code\"= :\"999\",\"data\":null,\"msg\":null,\"stacktrace\":\"java.lang.NullPointerE= xception\\n\\tat org.apache.kylin.rest.util.QueryRequestLimits.(Query= RequestLimits.java:107)\\n\\tat org.apache.kylin.rest.service.QueryService.= doQueryWithCache(QueryService.java:454)\\n\\tat org.apache.kylin.rest.servi= ce.QueryService.doQueryWithCache(QueryService.java:390)\\n\\tat org.apache.= kylin.rest.controller.QueryController.query(QueryController.java:86)\\n\\ta= t sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)\\n\\tat sun.= reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja= va:43)\\n\\tat java.lang.reflect.Method.invoke(Method.java:498)\\n\\tat org= .springframework.web.method.support.InvocableHandlerMethod.doInvoke(Invocab= leHandlerMethod.java:205)\\n\\tat org.springframework.web.method.support.In= vocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)\\n\\= tat org.springframework.web.servlet.mvc.method.annotation.ServletInvocableH= andlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)\\n\\tat= org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandle= rAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)\\n\\tat= org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandle= rAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)\\n\\tat org.= springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(= AbstractHandlerMethodAdapter.java:85)\\n\\tat org.springframework.web.servl= et.DispatcherServlet.doDispatch(DispatcherServlet.java:967)\\n\\tat org.spr= ingframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java= :901)\\n\\tat org.springframework.web.servlet.FrameworkServlet.processReque= st(FrameworkServlet.java:970)\\n\\tat org.springframework.web.servlet.Frame= workServlet.doPost(FrameworkServlet.java:872)\\n\\tat javax.servlet.http.Ht= tpServlet.service(HttpServlet.java:650)\\n\\tat org.springframework.web.ser= vlet.FrameworkServlet.service(FrameworkServlet.java:846)\\n\\tat javax.serv= let.http.HttpServlet.service(HttpServlet.java:731)\\n\\tat org.apache.catal= ina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav= a:303)\\n\\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(App= licationFilterChain.java:208)\\n\\tat org.apache.tomcat.websocket.server.Ws= Filter.doFilter(WsFilter.java:52)\\n\\tat org.apache.catalina.core.Applicat= ionFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\\n\\tat or= g.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCha= in.java:208)\\n\\tat org.springframework.security.web.FilterChainProxy$Virt= ualFilterChain.doFilter(FilterChainProxy.java:317)\\n\\tat org.springframew= ork.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSe= curityInterceptor.java:127)\\n\\tat org.springframework.security.web.access= .intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.jav= a:91)\\n\\tat org.springframework.security.web.FilterChainProxy$VirtualFilt= erChain.doFilter(FilterChainProxy.java:331)\\n\\tat org.springframework.sec= urity.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFi= lter.java:114)\\n\\tat org.springframework.security.web.FilterChainProxy$Vi= rtualFilterChain.doFilter(FilterChainProxy.java:331)\\n\\tat org.springfram= ework.security.web.session.SessionManagementFilter.doFilter(SessionManageme= ntFilter.java:137)\\n\\tat org.springframework.security.web.FilterChainProx= y$VirtualFilterChain.doFilter(FilterChainProxy.java:331)\\n\\tat org.spring= framework.security.web.authentication.AnonymousAuthenticationFilter.doFilte= r(AnonymousAuthenticationFilter.java:111)\\n\\tat org.springframework.secur= ity.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:= 331)\\n\\tat org.springframework.security.web.servletapi.SecurityContextHol= derAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java= :170)\\n\\tat org.springframework.security.web.FilterChainProxy$VirtualFilt= erChain.doFilter(FilterChainProxy.java:331)\\n\\tat org.springframework.sec= urity.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFi= lter.java:63)\\n\\tat org.springframework.security.web.FilterChainProxy$Vir= tualFilterChain.doFilter(FilterChainProxy.java:331)\\n\\tat org.springframe= work.security.web.authentication.www.BasicAuthenticationFilter.doFilterInte= rnal(BasicAuthenticationFilter.java:215)\\n\\tat org.springframework.web.fi= lter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\\n\\tat o= rg.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte= r(FilterChainProxy.java:331)\\n\\tat org.springframework.security.web.authe= ntication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthentic= ationProcessingFilter.java:200)\\n\\tat org.springframework.security.web.Fi= lterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)\\n\\t= at org.springframework.security.web.authentication.logout.LogoutFilter.doFi= lter(LogoutFilter.java:116)\\n\\tat org.springframework.security.web.Filter= ChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)\\n\\tat o= rg.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(= HeaderWriterFilter.java:64)\\n\\tat org.springframework.web.filter.OncePerR= equestFilter.doFilter(OncePerRequestFilter.java:107)\\n\\tat org.springfram= ework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChain= Proxy.java:331)\\n\\tat org.springframework.security.web.context.request.as= ync.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegr= ationFilter.java:56)\\n\\tat org.springframework.web.filter.OncePerRequestF= ilter.doFilter(OncePerRequestFilter.java:107)\\n\\tat org.springframework.s= ecurity.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.j= ava:331)\\n\\tat org.springframework.security.web.context.SecurityContextPe= rsistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)\\n\\tat= org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFil= ter(FilterChainProxy.java:331)\\n\\tat org.springframework.security.web.Fil= terChainProxy.doFilterInternal(FilterChainProxy.java:214)\\n\\tat org.sprin= gframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:177= )\\n\\tat org.springframework.web.filter.DelegatingFilterProxy.invokeDelega= te(DelegatingFilterProxy.java:346)\\n\\tat org.springframework.web.filter.D= elegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)\\n\\tat org.a= pache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt= erChain.java:241)\\n\\tat org.apache.catalina.core.ApplicationFilterChain.d= oFilter(ApplicationFilterChain.java:208)\\n\\tat com.thetransactioncompany.= cors.CORSFilter.doFilter(CORSFilter.java:209)\\n\\tat com.thetransactioncom= pany.cors.CORSFilter.doFilter(CORSFilter.java:244)\\n\\tat org.apache.catal= ina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav= a:241)\\n\\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(App= licationFilterChain.java:208)\\n\\tat org.apache.catalina.core.StandardWrap= perValve.invoke(StandardWrapperValve.java:219)\\n\\tat org.apache.catalina.= core.StandardContextValve.invoke(StandardContextValve.java:110)\\n\\tat org= .apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)\= \n\\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve= .java:103)\\n\\tat org.apache.catalina.valves.AccessLogValve.invoke(AccessL= ogValve.java:962)\\n\\tat org.apache.catalina.core.StandardEngineValve.invo= ke(StandardEngineValve.java:116)\\n\\tat org.apache.catalina.connector.Coyo= teAdapter.service(CoyoteAdapter.java:445)\\n\\tat org.apache.coyote.http11.= AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)\\n\\tat = org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Abstra= ctProtocol.java:637)\\n\\tat org.apache.tomcat.util.net.JIoEndpoint$SocketP= rocessor.run(JIoEndpoint.java:316)\\n\\tat java.util.concurrent.ThreadPoolE= xecutor.runWorker(ThreadPoolExecutor.java:1149)\\n\\tat java.util.concurren= t.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\\n\\tat org.ap= ache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61= )\\n\\tat java.lang.Thread.run(Thread.java:748)\\n\",\"exception\":null,\"u= rl\":\"http://kylin.example.com/kylin/api/query\"}","sql":"....","totalRowC= ount":0} > {code} > !image-2018-08-22-14-56-44-498.png! -- This message was sent by Atlassian JIRA (v7.6.3#76005)