Continuum
  1. Continuum
  2. CONTINUUM-1863

NPE when clicking Appearance menu item

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.2
    • Component/s: Web - Configuration
    • Labels:
      None
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      Description

      When I click the "Appearance" menu item, I get a NPE at line 141 of ConfigureAppearanceAction.java.

      http://localhost:9090/admin/configureAppearance.action#

        Issue Links

          Activity

          Hide
          Wendy Smoak added a comment -

          Error Occurred
          java.lang.NullPointerException

          Show/hide Stack Trace

          java.lang.NullPointerException
          at org.apache.maven.continuum.web.action.admin.ConfigureAppearanceAction.prepare(ConfigureAppearanceAction.java:141)
          at com.opensymphony.xwork.interceptor.PrepareInterceptor.before(PrepareInterceptor.java:106)
          at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:30)
          at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
          at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
          at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
          at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
          at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
          at com.opensymphony.xwork.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:186)
          at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
          at org.codehaus.plexus.redback.xwork.interceptor.AutoLoginInterceptor.intercept(AutoLoginInterceptor.java:156)
          at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
          at org.codehaus.plexus.redback.xwork.interceptor.ForceAdminUserInterceptor.intercept(ForceAdminUserInterceptor.java:76)
          at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
          at org.codehaus.plexus.redback.xwork.interceptor.EnvironmentCheckInterceptor.intercept(EnvironmentCheckInterceptor.java:122)
          at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
          at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:116)
          at com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:273)
          at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:202)
          at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
          at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
          at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
          at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
          at com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:88)
          at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
          at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
          at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
          at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
          at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
          at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
          at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
          at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
          at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
          at org.mortbay.jetty.Server.handle(Server.java:324)
          at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
          at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
          at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
          at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
          at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
          at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
          at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)

          Show
          Wendy Smoak added a comment - Error Occurred java.lang.NullPointerException Show/hide Stack Trace java.lang.NullPointerException at org.apache.maven.continuum.web.action.admin.ConfigureAppearanceAction.prepare(ConfigureAppearanceAction.java:141) at com.opensymphony.xwork.interceptor.PrepareInterceptor.before(PrepareInterceptor.java:106) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:30) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190) at com.opensymphony.xwork.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:186) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190) at org.codehaus.plexus.redback.xwork.interceptor.AutoLoginInterceptor.intercept(AutoLoginInterceptor.java:156) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190) at org.codehaus.plexus.redback.xwork.interceptor.ForceAdminUserInterceptor.intercept(ForceAdminUserInterceptor.java:76) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190) at org.codehaus.plexus.redback.xwork.interceptor.EnvironmentCheckInterceptor.intercept(EnvironmentCheckInterceptor.java:122) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190) at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:116) at com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:273) at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:202) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088) at com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:88) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
          Hide
          Wendy Smoak added a comment -

          Guarding against the NPE and printing some values in ConfigureAppearanceAction around line 141 shows:

          The profile ids are [apache.snapshots, cargo-config, repo-config, local-settings, archiva-localhost]
          profile is org.apache.maven.settings.Profile@d53eeb
          profile is org.apache.maven.settings.Profile@15c0fc
          profile is org.apache.maven.settings.Profile@30ff35
          profile is null
          profile is org.apache.maven.settings.Profile@c30d65

          Show
          Wendy Smoak added a comment - Guarding against the NPE and printing some values in ConfigureAppearanceAction around line 141 shows: The profile ids are [apache.snapshots, cargo-config, repo-config, local-settings, archiva-localhost] profile is org.apache.maven.settings.Profile@d53eeb profile is org.apache.maven.settings.Profile@15c0fc profile is org.apache.maven.settings.Profile@30ff35 profile is null profile is org.apache.maven.settings.Profile@c30d65
          Hide
          Wendy Smoak added a comment -

          Fixed in r690610 on branch, merged to trunk in r690611

          Show
          Wendy Smoak added a comment - Fixed in r690610 on branch, merged to trunk in r690611

            People

            • Assignee:
              Wendy Smoak
              Reporter:
              Wendy Smoak
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: