java.lang.NullPointerException

Atlassian JIRA | Grzegorz Grzybek | 7 years ago
  1. 0

    After clicking "New card" from Agile Planning Board, Ajax request hangs and there is NPE in logs: {code} 2010-03-25 06:57:19,355 ajp-8009-10 ERROR grgr 25039x6246x1 141zpa6 /secure/GHAddIssue.jspa [velocity] Method getAllAvailableValuesForSelect threw exception for reference $afield in template templates/greenhopper/jira/issue/fields/assignee-create.vm at [9,53] 2010-03-25 06:57:19,355 ajp-8009-10 ERROR grgr 25039x6246x1 141zpa6 /secure/GHAddIssue.jspa [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: java.lang.NullPointerException java.lang.NullPointerException at com.pyxis.greenhopper.jira.boards.AssigneeBoard.compareTo(AssigneeBoard.java:206) at com.pyxis.greenhopper.jira.boards.AssigneeBoard.compareTo(AssigneeBoard.java:26) at java.util.TreeMap.put(TreeMap.java:545) at java.util.TreeSet.add(TreeSet.java:238) at java.util.AbstractCollection.addAll(AbstractCollection.java:305) at java.util.TreeSet.addAll(TreeSet.java:295) at java.util.TreeSet.<init>(TreeSet.java:143) at com.pyxis.greenhopper.jira.boards.context.DefaultBoardContext.getSortedAssigneeBoards(DefaultBoardContext.java:430) at com.pyxis.greenhopper.jira.fields.Assignee.getAllAvailableValuesForSelect(Assignee.java:120) at sun.reflect.GeneratedMethodAccessor1358.invoke(Unknown Source) 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) ... {code} There's nothing unusual in this project configuration. Changing permission scheme doesn't change anything. Also changing "view" to "assignee" produces: {code} An error occurred whilst rendering this message. Please contact the administrators, and inform them of this bug. Details: ------- org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getAllBoards' in class com.pyxis.greenhopper.jira.boards.AssigneeBoard threw exception class java.lang.NullPointerException : null at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:183) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:327) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:131) 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.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.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.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.jira.plugin.webwork.JiraPluginWebworkVelocityServlet.service(JiraPluginWebworkVelocityServlet.java:53) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:251) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) {code} regards Grzegorz Grzybek

    Atlassian JIRA | 7 years ago | Grzegorz Grzybek
    java.lang.NullPointerException
  2. 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
  3. 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.pyxis.greenhopper.jira.boards.AssigneeBoard.compareTo()
    2. com.pyxis.greenhopper
      AssigneeBoard.compareTo
      1. com.pyxis.greenhopper.jira.boards.AssigneeBoard.compareTo(AssigneeBoard.java:206)
      2. com.pyxis.greenhopper.jira.boards.AssigneeBoard.compareTo(AssigneeBoard.java:26)
      2 frames
    3. Java RT
      TreeSet.<init>
      1. java.util.TreeMap.put(TreeMap.java:545)
      2. java.util.TreeSet.add(TreeSet.java:238)
      3. java.util.AbstractCollection.addAll(AbstractCollection.java:305)
      4. java.util.TreeSet.addAll(TreeSet.java:295)
      5. java.util.TreeSet.<init>(TreeSet.java:143)
      5 frames
    4. com.pyxis.greenhopper
      Assignee.getAllAvailableValuesForSelect
      1. com.pyxis.greenhopper.jira.boards.context.DefaultBoardContext.getSortedAssigneeBoards(DefaultBoardContext.java:430)
      2. com.pyxis.greenhopper.jira.fields.Assignee.getAllAvailableValuesForSelect(Assignee.java:120)
      2 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor1358.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    6. Apache Velocity
      UberspectImpl$VelMethodImpl.invoke
      1. org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:234)
      1 frame