org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getPage' in class bucket.core.actions.PaginationSupport threw exception java.lang.IllegalArgumentException: fromIndex(10) > toIndex(0) @ /spaces/permissions/userpicker-results.vm[25,58]

Atlassian JIRA | Gurleen Anand [Atlassian] | 7 years ago
  1. 0

    In Global, space and page level permission setting, if user search returs results with more than one pages, accessing any page other than the 1st page comes up with a System Error (see below). This error doesn't happen on "user search" in {{Manage Users}} administration page. {noformat} Cause org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getPage' in class bucket.core.actions.PaginationSupport threw exception java.lang.IllegalArgumentException: fromIndex(10) > toIndex(0) @ /spaces/permissions/userpicker-results.vm[25,58] at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:205) caused by: java.lang.IllegalArgumentException: fromIndex(10) > toIndex(0) at java.util.SubList.<init>(AbstractList.java:604) Stack Trace:[hide] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getPage' in class bucket.core.actions.PaginationSupport threw exception java.lang.IllegalArgumentException: fromIndex(10) > toIndex(0) @ /spaces/permissions/userpicker-results.vm[25,58] at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:205) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:419) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:73) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:125) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.apache.velocity.Template.merge(Template.java:254) {noformat}

    Atlassian JIRA | 7 years ago | Gurleen Anand [Atlassian]
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getPage' in class bucket.core.actions.PaginationSupport threw exception java.lang.IllegalArgumentException: fromIndex(10) > toIndex(0) @ /spaces/permissions/userpicker-results.vm[25,58]
  2. 0

    In Global, space and page level permission setting, if user search returs results with more than one pages, accessing any page other than the 1st page comes up with a System Error (see below). This error doesn't happen on "user search" in {{Manage Users}} administration page. {noformat} Cause org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getPage' in class bucket.core.actions.PaginationSupport threw exception java.lang.IllegalArgumentException: fromIndex(10) > toIndex(0) @ /spaces/permissions/userpicker-results.vm[25,58] at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:205) caused by: java.lang.IllegalArgumentException: fromIndex(10) > toIndex(0) at java.util.SubList.<init>(AbstractList.java:604) Stack Trace:[hide] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getPage' in class bucket.core.actions.PaginationSupport threw exception java.lang.IllegalArgumentException: fromIndex(10) > toIndex(0) @ /spaces/permissions/userpicker-results.vm[25,58] at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:205) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:419) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:73) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:125) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.apache.velocity.Template.merge(Template.java:254) {noformat}

    Atlassian JIRA | 7 years ago | Gurleen Anand [Atlassian]
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getPage' in class bucket.core.actions.PaginationSupport threw exception java.lang.IllegalArgumentException: fromIndex(10) > toIndex(0) @ /spaces/permissions/userpicker-results.vm[25,58]
  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 'getPage' in class bucket.core.actions.PaginationSupport threw exception java.lang.IllegalArgumentException: fromIndex(10) > toIndex(0) @ /spaces/permissions/userpicker-results.vm[25,58]

      at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute()
    2. Apache Velocity
      Template.merge
      1. org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:205)
      2. org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
      3. org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:419)
      4. org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:73)
      5. org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:125)
      6. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
      7. org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88)
      8. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
      9. org.apache.velocity.Template.merge(Template.java:254)
      9 frames