[ https://issues.apache.org/jira/browse/KYLIN-2074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shaofeng SHI closed KYLIN-2074. ------------------------------- > Error happens when click the "SQL" section of cube > -------------------------------------------------- > > Key: KYLIN-2074 > URL: https://issues.apache.org/jira/browse/KYLIN-2074 > Project: Kylin > Issue Type: Bug > Components: REST Service > Affects Versions: v1.5.4.1 > Reporter: Shaofeng SHI > Assignee: Shaofeng SHI > Priority: Minor > Fix For: v1.6.0 > > > Qiutongxin (qiutongxin at jd.com) from mailing list reported this bug: an > error thrown when click the "SQL" tab of a cube, in kylin.log there is this > NPE: > {code} > ERROR [http-bio-8070-exec-2] controller.BasicController:44 : > java.lang.NullPointerException > at > org.apache.kylin.engine.EngineFactory.batchEngine(EngineFactory.java:44) > at > org.apache.kylin.engine.EngineFactory.getJoinedFlatTableDesc(EngineFactory.java:58) > at > org.apache.kylin.rest.controller.CubeController.getSql(CubeController.java:154) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > {code} > Checking the REST call between web and server, the segment name be passed in > the REST URL is 'null': > http://localhost:7070/kylin/api/cubes/embedded_cube/segs/null/sql -- This message was sent by Atlassian JIRA (v7.6.3#76005)