java.lang.NullPointerException

Atlassian JIRA | Matt Ryall | 10 years ago
  1. 0

    Steps to reproduce: 1. Create a page in a space with page view restrictions. Ensure it appears in the most popular content list under Browse Space, Activity. 2. Grant anonymous access to Confluence. 3. Access the Browse Space, Activity page as the anonymous user. 4. NullPointerException on the page, with the following stack trace in the log file. Note: removing the page restrictions does not fix the problem, they are permanently in the index. -- 2007-04-23 18:15:10,822 ERROR [http-8080-Processor2] [renderer.v2.components.MacroRendererComponent] processMacro Unexpected error formatting macro: popular -- url: /spaces/usage/report.action | userName: anonymous | action: report | space: 65537 java.lang.NullPointerException at com.atlassian.confluence.ext.usage.index.UsageIndexManager.hasViewPermissionInIndex(UsageIndexManager.java:447) at com.atlassian.confluence.ext.usage.index.UsageIndexManager.access$1000(UsageIndexManager.java:41) at com.atlassian.confluence.ext.usage.index.UsageIndexManager$3$1.collect(UsageIndexManager.java:297) at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:291) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:132) at org.apache.lucene.search.Searcher.search(Searcher.java:116) at org.apache.lucene.search.Searcher.search(Searcher.java:95) at com.atlassian.confluence.ext.usage.index.UsageIndexManager$3.perform(UsageIndexManager.java:270) at com.atlassian.bonnie.LuceneConnection.withSearch(LuceneConnection.java:139) at com.atlassian.confluence.ext.usage.index.UsageIndexManager.queryPopular(UsageIndexManager.java:266) at com.atlassian.confluence.ext.usage.macros.PopularMacro.execute(PopularMacro.java:57) at com.atlassian.renderer.v2.macro.ResourceAwareMacroDecorator.execute(ResourceAwareMacroDecorator.java:45) at com.atlassian.renderer.v2.components.MacroRendererComponent.processMacro(MacroRendererComponent.java:340) at com.atlassian.renderer.v2.components.MacroRendererComponent.makeMacro(MacroRendererComponent.java:241) at com.atlassian.renderer.v2.components.MacroRendererComponent.makeMacro(MacroRendererComponent.java:130) at com.atlassian.renderer.v2.components.MacroRendererComponent.handlePotentialMacro(MacroRendererComponent.java:115) at com.atlassian.renderer.v2.components.MacroRendererComponent.render(MacroRendererComponent.java:77) at com.atlassian.renderer.v2.V2Renderer.render(V2Renderer.java:54) at com.atlassian.renderer.v2.V2RendererFacade.convertWikiToXHtml(V2RendererFacade.java:57)

    Atlassian JIRA | 10 years ago | Matt Ryall
    java.lang.NullPointerException
  2. 0

    Steps to reproduce: 1. Create a page in a space with page view restrictions. Ensure it appears in the most popular content list under Browse Space, Activity. 2. Grant anonymous access to Confluence. 3. Access the Browse Space, Activity page as the anonymous user. 4. NullPointerException on the page, with the following stack trace in the log file. Note: removing the page restrictions does not fix the problem, they are permanently in the index. -- 2007-04-23 18:15:10,822 ERROR [http-8080-Processor2] [renderer.v2.components.MacroRendererComponent] processMacro Unexpected error formatting macro: popular -- url: /spaces/usage/report.action | userName: anonymous | action: report | space: 65537 java.lang.NullPointerException at com.atlassian.confluence.ext.usage.index.UsageIndexManager.hasViewPermissionInIndex(UsageIndexManager.java:447) at com.atlassian.confluence.ext.usage.index.UsageIndexManager.access$1000(UsageIndexManager.java:41) at com.atlassian.confluence.ext.usage.index.UsageIndexManager$3$1.collect(UsageIndexManager.java:297) at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:291) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:132) at org.apache.lucene.search.Searcher.search(Searcher.java:116) at org.apache.lucene.search.Searcher.search(Searcher.java:95) at com.atlassian.confluence.ext.usage.index.UsageIndexManager$3.perform(UsageIndexManager.java:270) at com.atlassian.bonnie.LuceneConnection.withSearch(LuceneConnection.java:139) at com.atlassian.confluence.ext.usage.index.UsageIndexManager.queryPopular(UsageIndexManager.java:266) at com.atlassian.confluence.ext.usage.macros.PopularMacro.execute(PopularMacro.java:57) at com.atlassian.renderer.v2.macro.ResourceAwareMacroDecorator.execute(ResourceAwareMacroDecorator.java:45) at com.atlassian.renderer.v2.components.MacroRendererComponent.processMacro(MacroRendererComponent.java:340) at com.atlassian.renderer.v2.components.MacroRendererComponent.makeMacro(MacroRendererComponent.java:241) at com.atlassian.renderer.v2.components.MacroRendererComponent.makeMacro(MacroRendererComponent.java:130) at com.atlassian.renderer.v2.components.MacroRendererComponent.handlePotentialMacro(MacroRendererComponent.java:115) at com.atlassian.renderer.v2.components.MacroRendererComponent.render(MacroRendererComponent.java:77) at com.atlassian.renderer.v2.V2Renderer.render(V2Renderer.java:54) at com.atlassian.renderer.v2.V2RendererFacade.convertWikiToXHtml(V2RendererFacade.java:57)

    Atlassian JIRA | 10 years ago | Matt Ryall
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.confluence.ext.usage.index.UsageIndexManager.hasViewPermissionInIndex()
    2. com.atlassian.confluence
      UsageIndexManager$3$1.collect
      1. com.atlassian.confluence.ext.usage.index.UsageIndexManager.hasViewPermissionInIndex(UsageIndexManager.java:447)
      2. com.atlassian.confluence.ext.usage.index.UsageIndexManager.access$1000(UsageIndexManager.java:41)
      3. com.atlassian.confluence.ext.usage.index.UsageIndexManager$3$1.collect(UsageIndexManager.java:297)
      3 frames
    3. Lucene
      Searcher.search
      1. org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:291)
      2. org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:132)
      3. org.apache.lucene.search.Searcher.search(Searcher.java:116)
      4. org.apache.lucene.search.Searcher.search(Searcher.java:95)
      4 frames
    4. com.atlassian.confluence
      UsageIndexManager$3.perform
      1. com.atlassian.confluence.ext.usage.index.UsageIndexManager$3.perform(UsageIndexManager.java:270)
      1 frame
    5. com.atlassian.bonnie
      LuceneConnection.withSearch
      1. com.atlassian.bonnie.LuceneConnection.withSearch(LuceneConnection.java:139)
      1 frame
    6. com.atlassian.confluence
      PopularMacro.execute
      1. com.atlassian.confluence.ext.usage.index.UsageIndexManager.queryPopular(UsageIndexManager.java:266)
      2. com.atlassian.confluence.ext.usage.macros.PopularMacro.execute(PopularMacro.java:57)
      2 frames
    7. com.atlassian.renderer
      V2RendererFacade.convertWikiToXHtml
      1. com.atlassian.renderer.v2.macro.ResourceAwareMacroDecorator.execute(ResourceAwareMacroDecorator.java:45)
      2. com.atlassian.renderer.v2.components.MacroRendererComponent.processMacro(MacroRendererComponent.java:340)
      3. com.atlassian.renderer.v2.components.MacroRendererComponent.makeMacro(MacroRendererComponent.java:241)
      4. com.atlassian.renderer.v2.components.MacroRendererComponent.makeMacro(MacroRendererComponent.java:130)
      5. com.atlassian.renderer.v2.components.MacroRendererComponent.handlePotentialMacro(MacroRendererComponent.java:115)
      6. com.atlassian.renderer.v2.components.MacroRendererComponent.render(MacroRendererComponent.java:77)
      7. com.atlassian.renderer.v2.V2Renderer.render(V2Renderer.java:54)
      8. com.atlassian.renderer.v2.V2RendererFacade.convertWikiToXHtml(V2RendererFacade.java:57)
      8 frames