java.lang.ArithmeticException: / by zero

Atlassian JIRA | Michael Ruflin [Atlassian] | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    The cause of the bug is incorrect handling of "empty" field configuration in ParentLayout (used by the list view on the task board) Exception: {code} 2011-11-18 18:39:31,431 http-8081-5 ERROR lbacila 1119x566x1 sv2lay 127.0.0.1 /secure/TaskBoard.jspa [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: java.lang.ArithmeticException: / by zero java.lang.ArithmeticException: / by zero at com.pyxis.greenhopper.jira.configurations.layout.ListLayout.getWidth(ListLayout.java:64) 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:597) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:234) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:203) 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.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.directive.Parse.render(Parse.java:181) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) {code}

    Atlassian JIRA | 5 years ago | Michael Ruflin [Atlassian]
    java.lang.ArithmeticException: / by zero
  2. 0

    The cause of the bug is incorrect handling of "empty" field configuration in ParentLayout (used by the list view on the task board) Exception: {code} 2011-11-18 18:39:31,431 http-8081-5 ERROR lbacila 1119x566x1 sv2lay 127.0.0.1 /secure/TaskBoard.jspa [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: java.lang.ArithmeticException: / by zero java.lang.ArithmeticException: / by zero at com.pyxis.greenhopper.jira.configurations.layout.ListLayout.getWidth(ListLayout.java:64) 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:597) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:234) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:203) 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.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.directive.Parse.render(Parse.java:181) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) {code}

    Atlassian JIRA | 5 years ago | Michael Ruflin [Atlassian]
    java.lang.ArithmeticException: / by zero

    Root Cause Analysis

    1. java.lang.ArithmeticException

      / by zero

      at com.pyxis.greenhopper.jira.configurations.layout.ListLayout.getWidth()
    2. com.pyxis.greenhopper
      ListLayout.getWidth
      1. com.pyxis.greenhopper.jira.configurations.layout.ListLayout.getWidth(ListLayout.java:64)
      1 frame
    3. 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:597)
      4 frames
    4. Apache Velocity
      ASTBlock.render
      1. org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:234)
      2. org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:203)
      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.SimpleNode.render(SimpleNode.java:230)
      11. org.apache.velocity.runtime.directive.Parse.render(Parse.java:181)
      12. org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
      13. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
      13 frames