Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-3292

The setting config dialog will cause NPE in Kylin server

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • v2.3.0
    • v2.4.0
    • Web
    • None

    Description

      Open the 'Set Config' dialog, when the default key and value are null, the update button should be disabled, please refer to the attach picture.
      Otherwise it will cause NPE in Kylin server, as follows.

      java.lang.NullPointerException
              at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:333)
              at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:988)
              at org.apache.kylin.common.BackwardCompatibilityConfig.check(BackwardCompatibilityConfig.java:91)
              at org.apache.kylin.common.KylinConfigBase.setProperty(KylinConfigBase.java:197)
              at org.apache.kylin.rest.service.AdminService.updateConfig(AdminService.java:87)
              at org.apache.kylin.rest.service.AdminService$$FastClassBySpringCGLIB$$e043a6d8.invoke(<generated>)
              at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
              at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738)
              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
              at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:69)
              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
              at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:673)
              at org.apache.kylin.rest.service.AdminService$$EnhancerBySpringCGLIB$$f1977d91.updateConfig(<generated>)
              at org.apache.kylin.rest.controller.AdminController.updateKylinConfig(AdminController.java:106)
      

      Attachments

        1. Set_config_null.png
          25 kB
          Peng Xing

        Issue Links

          Activity

            People

              xingpeng1 Peng Xing
              xingpeng1 Peng Xing
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: