java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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
    via by Grzegorz Grzybek,
    • 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)
    No Bugmate found.