java.lang.NullPointerException

Atlassian JIRA | Arne Schirmacher (Pix Software GmbH) | 10 years ago
  1. 0

    When I am using the {popular} macro in the "Site Welcome Message" which can be set in the General Configuration, I get the exception below. The macro does work in the normal page context though. 2007-05-02 07:41:46,916 ERROR [TP-Processor11] [renderer.v2.components.MacroRendererComponent] processMacro Unexpected error formatting macro: popular -- url: /dashboard.action | userName: schirmacher | action: dashboard java.lang.NullPointerException at com.atlassian.confluence.ext.usage.query.AbstractUsageQuery.getLuceneQuery(AbstractUsageQuery.java:54) at com.atlassian.confluence.ext.usage.index.UsageIndexManager$4.perform(UsageIndexManager.java:272) at com.atlassian.bonnie.LuceneConnection.withSearch(LuceneConnection.java:139) at com.atlassian.confluence.ext.usage.index.UsageIndexManager.queryPopular(UsageIndexManager.java:268) 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) at sun.reflect.GeneratedMethodAccessor272.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:284) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122) at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:20) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) at $Proxy33.convertWikiToXHtml(Unknown Source) at com.atlassian.confluence.renderer.DefaultWikiStyleRenderer.convertWikiToXHtml(DefaultWikiStyleRenderer.java:23) at com.atlassian.confluence.util.ContentFacade.getWelcomeMessage(ContentFacade.java:67) at com.atlassian.confluence.dashboard.actions.DashboardAction.getWelcomeMessage(DashboardAction.java:37) at sun.reflect.GeneratedMethodAccessor895.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyExecutor.java:154) at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:226) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:250) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:109) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271) at org.apache.velocity.runtime.directive.Parse.render(Parse.java:232) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:153) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:109) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271) at org.apache.velocity.Template.merge(Template.java:296) at com.atlassian.confluence.util.velocity.VelocityUtils.getRenderedTemplateWithoutSwallowingErrors(VelocityUtils.java:53) at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:229) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:153) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:215) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:153) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:109) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271) .....

    Atlassian JIRA | 10 years ago | Arne Schirmacher (Pix Software GmbH)
    java.lang.NullPointerException
  2. 0

    When I am using the {popular} macro in the "Site Welcome Message" which can be set in the General Configuration, I get the exception below. The macro does work in the normal page context though. 2007-05-02 07:41:46,916 ERROR [TP-Processor11] [renderer.v2.components.MacroRendererComponent] processMacro Unexpected error formatting macro: popular -- url: /dashboard.action | userName: schirmacher | action: dashboard java.lang.NullPointerException at com.atlassian.confluence.ext.usage.query.AbstractUsageQuery.getLuceneQuery(AbstractUsageQuery.java:54) at com.atlassian.confluence.ext.usage.index.UsageIndexManager$4.perform(UsageIndexManager.java:272) at com.atlassian.bonnie.LuceneConnection.withSearch(LuceneConnection.java:139) at com.atlassian.confluence.ext.usage.index.UsageIndexManager.queryPopular(UsageIndexManager.java:268) 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) at sun.reflect.GeneratedMethodAccessor272.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:284) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122) at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:20) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) at $Proxy33.convertWikiToXHtml(Unknown Source) at com.atlassian.confluence.renderer.DefaultWikiStyleRenderer.convertWikiToXHtml(DefaultWikiStyleRenderer.java:23) at com.atlassian.confluence.util.ContentFacade.getWelcomeMessage(ContentFacade.java:67) at com.atlassian.confluence.dashboard.actions.DashboardAction.getWelcomeMessage(DashboardAction.java:37) at sun.reflect.GeneratedMethodAccessor895.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyExecutor.java:154) at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:226) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:250) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:109) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271) at org.apache.velocity.runtime.directive.Parse.render(Parse.java:232) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:153) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:109) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271) at org.apache.velocity.Template.merge(Template.java:296) at com.atlassian.confluence.util.velocity.VelocityUtils.getRenderedTemplateWithoutSwallowingErrors(VelocityUtils.java:53) at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:229) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:153) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:215) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:153) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:109) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271) .....

    Atlassian JIRA | 10 years ago | Arne Schirmacher (Pix Software GmbH)
    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.query.AbstractUsageQuery.getLuceneQuery()
    2. com.atlassian.confluence
      UsageIndexManager$4.perform
      1. com.atlassian.confluence.ext.usage.query.AbstractUsageQuery.getLuceneQuery(AbstractUsageQuery.java:54)
      2. com.atlassian.confluence.ext.usage.index.UsageIndexManager$4.perform(UsageIndexManager.java:272)
      2 frames
    3. com.atlassian.bonnie
      LuceneConnection.withSearch
      1. com.atlassian.bonnie.LuceneConnection.withSearch(LuceneConnection.java:139)
      1 frame
    4. com.atlassian.confluence
      PopularMacro.execute
      1. com.atlassian.confluence.ext.usage.index.UsageIndexManager.queryPopular(UsageIndexManager.java:268)
      2. com.atlassian.confluence.ext.usage.macros.PopularMacro.execute(PopularMacro.java:57)
      2 frames
    5. 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
    6. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor272.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:585)
      3 frames
    7. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:284)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
      3 frames
    8. com.atlassian.spring
      SpringProfilingInterceptor.invoke
      1. com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:20)
      1 frame
    9. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
      1 frame
    10. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56)
      1 frame
    11. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
      2 frames
    12. Unknown
      $Proxy33.convertWikiToXHtml
      1. $Proxy33.convertWikiToXHtml(Unknown Source)
      1 frame
    13. com.atlassian.confluence
      DashboardAction.getWelcomeMessage
      1. com.atlassian.confluence.renderer.DefaultWikiStyleRenderer.convertWikiToXHtml(DefaultWikiStyleRenderer.java:23)
      2. com.atlassian.confluence.util.ContentFacade.getWelcomeMessage(ContentFacade.java:67)
      3. com.atlassian.confluence.dashboard.actions.DashboardAction.getWelcomeMessage(DashboardAction.java:37)
      3 frames
    14. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor895.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:585)
      3 frames
    15. Apache Velocity
      Template.merge
      1. org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyExecutor.java:154)
      2. org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:226)
      3. org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207)
      4. org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:250)
      5. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
      6. org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:109)
      7. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
      8. org.apache.velocity.runtime.directive.Parse.render(Parse.java:232)
      9. org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:153)
      10. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
      11. org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:109)
      12. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
      13. org.apache.velocity.Template.merge(Template.java:296)
      13 frames
    16. com.atlassian.confluence
      ApplyDecoratorDirective.render
      1. com.atlassian.confluence.util.velocity.VelocityUtils.getRenderedTemplateWithoutSwallowingErrors(VelocityUtils.java:53)
      2. com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:229)
      2 frames
    17. Apache Velocity
      SimpleNode.render
      1. org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:153)
      2. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
      3. org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:215)
      4. org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:153)
      5. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
      6. org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:109)
      7. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
      7 frames