java.lang.IllegalStateException: There is no OperandHandler registered to handle the operand 'blah()'.

Atlassian JIRA | Brenden Bain [Atlassian] | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    * Save a filter with a function. * Disable the function. * Disable the function. When you try to run the query again you will get an exception like: {code} java.lang.IllegalStateException: There is no OperandHandler registered to handle the operand 'blah()'. at com.atlassian.jira.jql.query.GenericClauseQueryFactory.getQuery(GenericClauseQueryFactory.java:78) at com.atlassian.jira.jql.query.ReporterClauseQueryFactory.getQuery(ReporterClauseQueryFactory.java:35) at com.atlassian.jira.jql.query.QueryVisitor.visit(QueryVisitor.java:135) at com.atlassian.jira.jql.query.QueryVisitor.visit(QueryVisitor.java:24) at com.atlassian.query.clause.TerminalClauseImpl.accept(TerminalClauseImpl.java:137) at com.atlassian.jira.jql.query.QueryVisitor.createQuery(QueryVisitor.java:65) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.getHits(LuceneSearchProvider.java:162) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchCount(LuceneSearchProvider.java:94) at com.atlassian.jira.portal.portlets.SavedFiltersPortlet.getCountsForFilter(SavedFiltersPortlet.java:53) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:267) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:197) 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.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.Template.merge(Template.java:256) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:77) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:61) {code} I have attached a backup with a bad query. The broken filter is called "AllIssues" and is owned by admin.

    Atlassian JIRA | 8 years ago | Brenden Bain [Atlassian]
    java.lang.IllegalStateException: There is no OperandHandler registered to handle the operand 'blah()'.
  2. 0

    * Save a filter with a function. * Disable the function. * Disable the function. When you try to run the query again you will get an exception like: {code} java.lang.IllegalStateException: There is no OperandHandler registered to handle the operand 'blah()'. at com.atlassian.jira.jql.query.GenericClauseQueryFactory.getQuery(GenericClauseQueryFactory.java:78) at com.atlassian.jira.jql.query.ReporterClauseQueryFactory.getQuery(ReporterClauseQueryFactory.java:35) at com.atlassian.jira.jql.query.QueryVisitor.visit(QueryVisitor.java:135) at com.atlassian.jira.jql.query.QueryVisitor.visit(QueryVisitor.java:24) at com.atlassian.query.clause.TerminalClauseImpl.accept(TerminalClauseImpl.java:137) at com.atlassian.jira.jql.query.QueryVisitor.createQuery(QueryVisitor.java:65) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.getHits(LuceneSearchProvider.java:162) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchCount(LuceneSearchProvider.java:94) at com.atlassian.jira.portal.portlets.SavedFiltersPortlet.getCountsForFilter(SavedFiltersPortlet.java:53) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:267) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:197) 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.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.Template.merge(Template.java:256) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:77) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:61) {code} I have attached a backup with a bad query. The broken filter is called "AllIssues" and is owned by admin.

    Atlassian JIRA | 8 years ago | Brenden Bain [Atlassian]
    java.lang.IllegalStateException: There is no OperandHandler registered to handle the operand 'blah()'.

    Root Cause Analysis

    1. java.lang.IllegalStateException

      There is no OperandHandler registered to handle the operand 'blah()'.

      at com.atlassian.jira.jql.query.GenericClauseQueryFactory.getQuery()
    2. com.atlassian.jira
      QueryVisitor.visit
      1. com.atlassian.jira.jql.query.GenericClauseQueryFactory.getQuery(GenericClauseQueryFactory.java:78)
      2. com.atlassian.jira.jql.query.ReporterClauseQueryFactory.getQuery(ReporterClauseQueryFactory.java:35)
      3. com.atlassian.jira.jql.query.QueryVisitor.visit(QueryVisitor.java:135)
      4. com.atlassian.jira.jql.query.QueryVisitor.visit(QueryVisitor.java:24)
      4 frames
    3. com.atlassian.query
      TerminalClauseImpl.accept
      1. com.atlassian.query.clause.TerminalClauseImpl.accept(TerminalClauseImpl.java:137)
      1 frame
    4. com.atlassian.jira
      SavedFiltersPortlet.getCountsForFilter
      1. com.atlassian.jira.jql.query.QueryVisitor.createQuery(QueryVisitor.java:65)
      2. com.atlassian.jira.issue.search.providers.LuceneSearchProvider.getHits(LuceneSearchProvider.java:162)
      3. com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchCount(LuceneSearchProvider.java:94)
      4. com.atlassian.jira.portal.portlets.SavedFiltersPortlet.getCountsForFilter(SavedFiltersPortlet.java:53)
      4 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    6. Apache Velocity
      VelocityEngine.mergeTemplate
      1. org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:267)
      2. org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:197)
      3. org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
      4. org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220)
      5. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
      6. org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70)
      7. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
      8. org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166)
      9. org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
      10. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
      11. org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70)
      12. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
      13. org.apache.velocity.Template.merge(Template.java:256)
      14. org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450)
      14 frames
    7. com.atlassian.velocity
      DefaultVelocityManager.getEncodedBody
      1. com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:77)
      2. com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:61)
      2 frames