You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Zhong,Jason (JIRA)" <ji...@apache.org> on 2016/05/09 12:54:13 UTC

[jira] [Resolved] (KYLIN-1666) Should check project selection before add a stream table

     [ https://issues.apache.org/jira/browse/KYLIN-1666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zhong,Jason resolved KYLIN-1666.
--------------------------------
       Resolution: Fixed
    Fix Version/s: v1.5.2

> Should check project selection before add a stream table
> --------------------------------------------------------
>
>                 Key: KYLIN-1666
>                 URL: https://issues.apache.org/jira/browse/KYLIN-1666
>             Project: Kylin
>          Issue Type: Bug
>          Components: Web 
>    Affects Versions: v1.5.0, v1.5.1
>            Reporter: Shaofeng SHI
>            Assignee: Zhong,Jason
>             Fix For: v1.5.2
>
>
> In Kylin web, if not select a "project", the page will display "Please select your project first", but I still be able to click "Add streaming table"; when save the table info, a NPE was thrown:
> {code}
> java.lang.NullPointerException
> 	at java.util.concurrent.ConcurrentSkipListMap.comparable(ConcurrentSkipListMap.java:659)
> 	at java.util.concurrent.ConcurrentSkipListMap.doGet(ConcurrentSkipListMap.java:821)
> 	at java.util.concurrent.ConcurrentSkipListMap.get(ConcurrentSkipListMap.java:1626)
> 	at org.apache.kylin.common.restclient.SingleValueCache.get(SingleValueCache.java:85)
> 	at org.apache.kylin.metadata.project.ProjectManager.getProject(ProjectManager.java:138)
> 	at org.apache.kylin.metadata.project.ProjectManager.addTableDescToProject(ProjectManager.java:280)
> 	at org.apache.kylin.rest.service.CubeService.syncTableToProject(CubeService.java:580)
> 	at org.apache.kylin.rest.service.CubeService$$FastClassByCGLIB$$17a07c0e.invoke(<generated>)
> 	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
> {code}
> Suggestion: don't allow user to take create actions if no project is selected.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)