java.lang.NullPointerException

Atlassian JIRA | Vu Vo [Atlassian] | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    h6. Steps to reproduce: # Create a page with title "Page title {} bla" # Create a other page and use include page macro and include above page h6. Stack trace {code} 2014-11-26 14:45:18,206 ERROR [http-8080-2] [ContainerBase.[Catalina].[localhost].[/confluence]] log Unhandled exception occurred whilst decorating page – referer: http://localhost:8080/confluence/pages/createpage.action?spaceKey=SMOKE&fromPageId=6946827 | url: /confluence/plugins/servlet/confluence/placeholder/macro | userName: admin java.lang.NullPointerException at com.atlassian.confluence.renderer.UserMacroLibrary.getMacro(UserMacroLibrary.java:129) at com.atlassian.confluence.renderer.UserMacroLibrary.hasMacro(UserMacroLibrary.java:124) at com.atlassian.confluence.macro.browser.UserMacroMetadataProvider.getByMacroName(UserMacroMetadataProvider.java:55) at com.atlassian.confluence.macro.browser.UserMacroMetadataProvider.getByMacroNameAndId(UserMacroMetadataProvider.java:68) at com.atlassian.confluence.macro.browser.DefaultMacroMetadataManager.getMacroMetadataByNameAndId(DefaultMacroMetadataManager.java:56) at com.atlassian.confluence.macro.browser.DefaultMacroMetadataManager.getMacroMetadataByName(DefaultMacroMetadataManager.java:48) at sun.reflect.GeneratedMethodAccessor1122.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) at com.sun.proxy.$Proxy369.getMacroMetadataByName(Unknown Source) at sun.reflect.GeneratedMethodAccessor1122.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154) at com.sun.proxy.$Proxy369.getMacroMetadataByName(Unknown Source) at com.atlassian.confluence.tinymceplugin.placeholder.MacroPlaceholderServlet.doGet(MacroPlaceholderServlet.java:89) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:723) at com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:42) at javax.servlet.http.HttpServlet.service(HttpServlet.java:723) at com.atlassian.plugin.servlet.ServletModuleContainerServlet.service(ServletModuleContainerServlet.java:52) at javax.servlet.http.HttpServlet.service(HttpServlet.java:723) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:50) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:70) at com.atlassian.confluence.extra.webdav.servlet.filter.ReverseProxyCopyAndMoveDestinationFix.doFilter(ReverseProxyCopyAndMoveDestinationFix.java:59) {code}

    Atlassian JIRA | 2 years ago | Vu Vo [Atlassian]
    java.lang.NullPointerException
  2. 0

    h6. Steps to reproduce: # Create a page with title "Page title {} bla" # Create a other page and use include page macro and include above page h6. Stack trace {code} 2014-11-26 14:45:18,206 ERROR [http-8080-2] [ContainerBase.[Catalina].[localhost].[/confluence]] log Unhandled exception occurred whilst decorating page – referer: http://localhost:8080/confluence/pages/createpage.action?spaceKey=SMOKE&fromPageId=6946827 | url: /confluence/plugins/servlet/confluence/placeholder/macro | userName: admin java.lang.NullPointerException at com.atlassian.confluence.renderer.UserMacroLibrary.getMacro(UserMacroLibrary.java:129) at com.atlassian.confluence.renderer.UserMacroLibrary.hasMacro(UserMacroLibrary.java:124) at com.atlassian.confluence.macro.browser.UserMacroMetadataProvider.getByMacroName(UserMacroMetadataProvider.java:55) at com.atlassian.confluence.macro.browser.UserMacroMetadataProvider.getByMacroNameAndId(UserMacroMetadataProvider.java:68) at com.atlassian.confluence.macro.browser.DefaultMacroMetadataManager.getMacroMetadataByNameAndId(DefaultMacroMetadataManager.java:56) at com.atlassian.confluence.macro.browser.DefaultMacroMetadataManager.getMacroMetadataByName(DefaultMacroMetadataManager.java:48) at sun.reflect.GeneratedMethodAccessor1122.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) at com.sun.proxy.$Proxy369.getMacroMetadataByName(Unknown Source) at sun.reflect.GeneratedMethodAccessor1122.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154) at com.sun.proxy.$Proxy369.getMacroMetadataByName(Unknown Source) at com.atlassian.confluence.tinymceplugin.placeholder.MacroPlaceholderServlet.doGet(MacroPlaceholderServlet.java:89) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:723) at com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:42) at javax.servlet.http.HttpServlet.service(HttpServlet.java:723) at com.atlassian.plugin.servlet.ServletModuleContainerServlet.service(ServletModuleContainerServlet.java:52) at javax.servlet.http.HttpServlet.service(HttpServlet.java:723) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:50) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:70) at com.atlassian.confluence.extra.webdav.servlet.filter.ReverseProxyCopyAndMoveDestinationFix.doFilter(ReverseProxyCopyAndMoveDestinationFix.java:59) {code}

    Atlassian JIRA | 2 years ago | Vu Vo [Atlassian]
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.confluence.renderer.UserMacroLibrary.getMacro()
    2. com.atlassian.confluence
      DefaultMacroMetadataManager.getMacroMetadataByName
      1. com.atlassian.confluence.renderer.UserMacroLibrary.getMacro(UserMacroLibrary.java:129)
      2. com.atlassian.confluence.renderer.UserMacroLibrary.hasMacro(UserMacroLibrary.java:124)
      3. com.atlassian.confluence.macro.browser.UserMacroMetadataProvider.getByMacroName(UserMacroMetadataProvider.java:55)
      4. com.atlassian.confluence.macro.browser.UserMacroMetadataProvider.getByMacroNameAndId(UserMacroMetadataProvider.java:68)
      5. com.atlassian.confluence.macro.browser.DefaultMacroMetadataManager.getMacroMetadataByNameAndId(DefaultMacroMetadataManager.java:56)
      6. com.atlassian.confluence.macro.browser.DefaultMacroMetadataManager.getMacroMetadataByName(DefaultMacroMetadataManager.java:48)
      6 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor1122.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    4. com.atlassian.plugin
      DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke
      1. com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
      1 frame
    5. com.sun.proxy
      $Proxy369.getMacroMetadataByName
      1. com.sun.proxy.$Proxy369.getMacroMetadataByName(Unknown Source)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor1122.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    7. com.atlassian.plugin
      HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke
      1. com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
      1 frame
    8. com.sun.proxy
      $Proxy369.getMacroMetadataByName
      1. com.sun.proxy.$Proxy369.getMacroMetadataByName(Unknown Source)
      1 frame
    9. com.atlassian.confluence
      MacroPlaceholderServlet.doGet
      1. com.atlassian.confluence.tinymceplugin.placeholder.MacroPlaceholderServlet.doGet(MacroPlaceholderServlet.java:89)
      1 frame
    10. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
      2 frames
    11. com.atlassian.plugin
      DelegatingPluginServlet.service
      1. com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:42)
      1 frame
    12. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
      1 frame
    13. com.atlassian.plugin
      ServletModuleContainerServlet.service
      1. com.atlassian.plugin.servlet.ServletModuleContainerServlet.service(ServletModuleContainerServlet.java:52)
      1 frame
    14. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
      1 frame
    15. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    16. com.atlassian.confluence
      DebugFilter.doFilter
      1. com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:50)
      1 frame
    17. com.atlassian.core
      AbstractHttpFilter.doFilter
      1. com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)
      1 frame
    18. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    19. com.atlassian.plugin
      DelegatingPluginFilter$1.doFilter
      1. com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)
      2. com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:70)
      2 frames
    20. com.atlassian.confluence
      ReverseProxyCopyAndMoveDestinationFix.doFilter
      1. com.atlassian.confluence.extra.webdav.servlet.filter.ReverseProxyCopyAndMoveDestinationFix.doFilter(ReverseProxyCopyAndMoveDestinationFix.java:59)
      1 frame