java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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)
    via by Matt Ryall,
  • 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)
    via by Matt Ryall,
    • 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)
    No Bugmate found.