Uploaded image for project: 'appNG Manager'
  1. appNG Manager
  2. MGR-50

Updating admin group causes NPE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.14.0
    • Labels:

      Description

      Updating the description or roles for the admin group causes a NPE.

      group.name is not send in the POST request and thus "null". Further validation for the group name fails.

      2018-06-26 13:38:07,834 ERROR model.ApplicationProvider : [manager:appng-manager] error while building structure for page 'users'
      org.appng.api.ProcessingException: error performing action 'updateGroup' of event 'groupEvent', ID: 23512194
      at org.appng.api.support.CallableAction.execute(CallableAction.java:438)
      at org.appng.api.support.CallableAction.perform(CallableAction.java:319)
      at org.appng.core.model.ActionElement.perform(ActionElement.java:72)
      at org.appng.core.model.ApplicationProvider.getActionSectionElement(ApplicationProvider.java:533)
      at org.appng.core.model.ApplicationProvider.access$000(ApplicationProvider.java:126)
      at org.appng.core.model.ApplicationProvider$2.perform(ApplicationProvider.java:424)
      at org.appng.core.model.ApplicationProvider.doMonitored(ApplicationProvider.java:468)
      at org.appng.core.model.ApplicationProvider.addElements(ApplicationProvider.java:432)
      at org.appng.core.model.ApplicationProvider.buildStructure(ApplicationProvider.java:351)
      at org.appng.core.model.ApplicationProvider.process(ApplicationProvider.java:280)
      at org.appng.core.model.AbstractRequestProcessor.processApplication(AbstractRequestProcessor.java:264)
      at org.appng.core.model.AbstractRequestProcessor.processPlatform(AbstractRequestProcessor.java:160)
      at org.appng.core.model.PlatformProcessor.processWithTemplate(PlatformProcessor.java:87)
      at org.appng.core.controller.handler.GuiHandler.processGui(GuiHandler.java:148)
      at org.appng.core.controller.handler.GuiHandler.handle(GuiHandler.java:71)
      at org.appng.core.controller.Controller.doGet(Controller.java:280)
      at org.apache.catalina.servlets.DefaultServlet.doPost(DefaultServlet.java:520)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
      at org.apache.catalina.servlets.DefaultServlet.service(DefaultServlet.java:418)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      at org.appng.core.controller.filter.JspExtensionFilter.doFilter(JspExtensionFilter.java:120)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
      at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
      at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
      at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      at org.appng.core.controller.filter.PageCacheFilter.doFilter(PageCacheFilter.java:108)
      at net.sf.ehcache.constructs.web.filter.Filter.doFilter(Filter.java:86)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      at org.appng.core.controller.filter.XSSFilter.doFilter(XSSFilter.java:86)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
      at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
      at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)
      at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1457)
      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NullPointerException
      at org.appng.api.support.FieldProcessorImpl.addErrorMessage(FieldProcessorImpl.java:150)
      at org.appng.application.manager.service.ManagerService.checkUniqueGroupName(ManagerService.java:294)
      at org.appng.application.manager.service.ManagerService.updateGroup(ManagerService.java:282)
      at org.appng.application.manager.service.ManagerService$$FastClassBySpringCGLIB$$bbf10b1e.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.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
      at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:673)
      at org.appng.application.manager.service.ManagerService$$EnhancerBySpringCGLIB$$81b4de0b_10.updateGroup(<generated>)
      at org.appng.application.manager.business.Groups.perform(Groups.java:66)
      at org.appng.application.manager.business.Groups.perform(Groups.java:46)
      at org.appng.api.support.CallableAction.execute(CallableAction.java:420)
      ... 57 more
      

       

        Attachments

          Activity

            People

            • Assignee:
              mueller.matthias Matthias Müller
              Reporter:
              c.brueckner Christian Brückner
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: