org.apache.velocity.exception.MethodInvocationException: Invocation of method 'isShowSignUp' in class com.atlassian.confluence.user.actions.LoginAction threw exception java.lang.NullPointerException: Application cannot be null at /login.vm[line 6, column 28]

Atlassian JIRA | Robert Chang [Atlassian] | 5 months ago
  1. 0

    h4. Steps to reproduce # Generate a site XML backup (easier if there are some test data so that the restore takes some time) # Import this into Confluence from the Admin console # Refresh the page, or alternatively, access Confluence base URL at all mid-restore h4. Expected behavior * Confluence will show some message about import in progress and display a progress bar * In the case of the refresh on the importer page, Confluence should not try to re-submit the form (which triggers a second import attempt that will fail because an import is already in progress) h4. Actual behavior Stacktrace is shown as the user is directed to the login page. There's an NPE because data is not fully imported: {code} 2016-07-14 15:18:23,461 ERROR [http-nio-8080-exec-2] [opensymphony.webwork.dispatcher.VelocityResult] doExecute Unable to render Velocity Template, '/login.vm' -- url: /login.action | traceId: fd3a09596d821bb2 | userName: anonymous | action: login org.apache.velocity.exception.MethodInvocationException: Invocation of method 'isShowSignUp' in class com.atlassian.confluence.user.actions.LoginAction threw exception java.lang.NullPointerException: Application cannot be null at /login.vm[line 6, column 28] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:507) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) at org.apache.velocity.Template.merge(Template.java:328) at org.apache.velocity.Template.merge(Template.java:235) ... Caused by: java.lang.NullPointerException: Application cannot be null at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204) at com.atlassian.confluence.admin.criteria.DirectoryUtil.getActiveDirectories(DirectoryUtil.java:29) at com.atlassian.confluence.admin.criteria.DirectoryUtil.findFirstDirectoryWithGivenPermission(DirectoryUtil.java:47) at com.atlassian.confluence.admin.criteria.DirectoryUtil.findFirstDirectoryWithCreateUserPermission(DirectoryUtil.java:37) at com.atlassian.confluence.admin.criteria.DefaultWritableDirectoryExistsCriteria.isMet(DefaultWritableDirectoryExistsCriteria.java:35) at com.atlassian.confluence.user.actions.AbstractLoginSignupAction.isShowSignUp(AbstractLoginSignupAction.java:57) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:385) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:374) at com.atlassian.confluence.velocity.introspection.UnboxingMethod.invoke(UnboxingMethod.java:29) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270) ... 353 more {code}

    Atlassian JIRA | 5 months ago | Robert Chang [Atlassian]
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'isShowSignUp' in class com.atlassian.confluence.user.actions.LoginAction threw exception java.lang.NullPointerException: Application cannot be null at /login.vm[line 6, column 28]
  2. 0

    Confluence returns system error due to 'Invocation of method 'isShowSignUp' in class com.atlassian.confluence.user.actions.LoginAction threw exception java.lang.NullPointerException at /login.vm' - Atlassian Documentation

    atlassian.com | 3 days ago
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'isShowSignUp' in class com.atlassian.confluence.user.actions.LoginAction threw exception java.lang.NullPointerException at /login.vm[line 6, column 28]
  3. 0

    Velocity Tempalte debugging and Catch exceptions

    Stack Overflow | 3 years ago | sunleo
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'get' in class java.util.ArrayList threw exception class java.lang.IndexOutOfBoundsException : Index: 1, Size: 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [testng-users] how to use testng and reportng with ant

    Google Groups | 6 years ago | ubuntuuser
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getUser' in class org.uncommons.reportng.ReportMetadata threw exception class java.net.UnknownHostException : mobiusQA: mobiusQA at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:193) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
  6. 0

    GitHub comment 121#139469434

    GitHub | 1 year ago | idoiamurua
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'combine' in class eu.aliada.rdfizer.pipeline.format.xml.OXPath threw exception java.lang.Error: Unresolved compilation problems: subfield cannot be resolved to a variable Syntax error on tokens, ( expected instead i cannot be resolved to a variable The type of the expression must be an array type but it resolved to int Syntax error on token ";", [ expected i cannot be resolved to a variable Syntax error, insert "]" to complete ArrayAccess Syntax error, insert ")" to complete Expression Syntax error, insert ")" to complete VariableInitializer i cannot be resolved to a variable Syntax error on token ")", ; expected i cannot be resolved to a variable i cannot be resolved to a variable subfield cannot be resolved Syntax error on tokens, Expression expected instead Syntax error on token ",", . expected Syntax error on token "-", -- expected at marcxml.frbr.n3.vm[line 86, column 18]

    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. org.apache.velocity.exception.MethodInvocationException

      Invocation of method 'isShowSignUp' in class com.atlassian.confluence.user.actions.LoginAction threw exception java.lang.NullPointerException: Application cannot be null at /login.vm[line 6, column 28]

      at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException()
    2. Apache Velocity
      Template.merge
      1. org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
      2. org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
      3. org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262)
      4. org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:507)
      5. org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
      6. org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
      7. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
      8. org.apache.velocity.Template.merge(Template.java:328)
      9. org.apache.velocity.Template.merge(Template.java:235)
      9 frames