Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-242

[java.lang.NullPointerException] Unable to run event handler User Notification

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Highest Highest
    • 1.2
    • 1.1.6
    • None

      Hello,
      we have just test JIRA Service Desk, and an error is occured when we create a issue with an user name containing one uppercase or more.

      You can reproduce this problem :

      username : aA

      Stack trace.

      2014-01-14 15:26:00,160 http-bio-8080-exec-14 ERROR aA 926x2572x1 1vit2qd 127.0.0.1 /servicedesk/customer/si/create/get-it-help [servicedesk.internal.util.SafeRunner] Unable to run event handler User Notification
      java.lang.NullPointerException
              at com.atlassian.servicedesk.internal.notifications.UserNotificationServiceImpl.deservesNotification(UserNotificationServiceImpl.java:160)
              at com.atlassian.servicedesk.internal.listener.UserNotificationEventListener.notificationCheck(UserNotificationEventListener.java:36)
              at com.atlassian.servicedesk.internal.listener.UserNotificationEventListener.access$000(UserNotificationEventListener.java:13)
              at com.atlassian.servicedesk.internal.listener.UserNotificationEventListener$1.run(UserNotificationEventListener.java:29)
              at com.atlassian.servicedesk.internal.util.SafeRunner.withTryCatchCondom(SafeRunner.java:58)
              at com.atlassian.servicedesk.internal.util.SafeRunner.access$000(SafeRunner.java:14)
              at com.atlassian.servicedesk.internal.util.SafeRunner$1.run(SafeRunner.java:36)
              at com.atlassian.servicedesk.bootstrap.lifecycle.LifecycleLock.runSafely(LifecycleLock.java:49)
              at com.atlassian.servicedesk.internal.util.SafeRunner.run(SafeRunner.java:31)
              at com.atlassian.servicedesk.internal.listener.UserNotificationEventListener.onIssueEvent(UserNotificationEventListener.java:24)
              at sun.reflect.GeneratedMethodAccessor991.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36)
              at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$2.run(AsynchronousAbleEventDispatcher.java:66)
              at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1.execute(AsynchronousAbleEventDispatcher.java:32)
              at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:60)
              at com.atlassian.event.internal.EventPublisherImpl.invokeListeners(EventPublisherImpl.java:160)
              at com.atlassian.event.internal.EventPublisherImpl.publish(EventPublisherImpl.java:79)
              at com.atlassian.jira.event.issue.IssueEventDispatcher.dispatchEvent(IssueEventDispatcher.java:184)
              at com.atlassian.jira.event.issue.IssueEventDispatcher.dispatchEvent(IssueEventDispatcher.java:134)
              at com.atlassian.jira.workflow.function.event.FireIssueEventFunction.execute(FireIssueEventFunction.java:60)
              at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1050)
              at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1446)
              at com.opensymphony.workflow.AbstractWorkflow.initialize(AbstractWorkflow.java:615)
              at com.atlassian.servicedesk.internal.feature.customer.request.ServiceDeskWorkflowManager$$anonfun$initializeWorkflow$1$$anonfun$apply$1.apply(ServiceDeskWorkflowManager.scala:64)
              at com.atlassian.servicedesk.internal.feature.customer.request.ServiceDeskWorkflowManager$$anonfun$initializeWorkflow$1$$anonfun$apply$1.apply(ServiceDeskWorkflowManager.scala:62)
              at scala.util.Either$RightProjection.map(Either.scala:536)
              at com.atlassian.servicedesk.internal.feature.customer.request.ServiceDeskWorkflowManager$$anonfun$initializeWorkflow$1.apply(ServiceDeskWorkflowManager.scala:62)
              at com.atlassian.servicedesk.internal.feature.customer.request.ServiceDeskWorkflowManager$$anonfun$initializeWorkflow$1.apply(ServiceDeskWorkflowManager.scala:61)
              at scala.util.Either$RightProjection.flatMap(Either.scala:523)
              at com.atlassian.servicedesk.internal.feature.customer.request.ServiceDeskWorkflowManager.initializeWorkflow(ServiceDeskWorkflowManager.scala:61)
              at com.atlassian.servicedesk.internal.feature.customer.request.ServiceDeskWorkflowManager.initializeWorkflowForIssue(ServiceDeskWorkflowManager.scala:25)
              at com.atlassian.servicedesk.internal.feature.customer.request.CustomerRequestManager.com$atlassian$servicedesk$internal$feature$customer$request$CustomerRequestManager$$saveIssueIntoJIRA(CustomerRequestManager.scala:67)
              at com.atlassian.servicedesk.internal.feature.customer.request.CustomerRequestManager$$anonfun$createRequest$1$$anonfun$apply$1$$anonfun$apply$2$$anonfun$apply$3.apply(CustomerRequestManager.scala:40)
              at com.atlassian.servicedesk.internal.feature.customer.request.CustomerRequestManager$$anonfun$createRequest$1$$anonfun$apply$1$$anonfun$apply$2$$anonfun$apply$3.apply(CustomerRequestManager.scala:39)
              at scala.util.Either$RightProjection.flatMap(Either.scala:523)
              at com.atlassian.servicedesk.internal.feature.customer.request.CustomerRequestManager$$anonfun$createRequest$1$$anonfun$apply$1$$anonfun$apply$2.apply(CustomerRequestManager.scala:39)
      

          Form Name

            [JSDSERVER-242] [java.lang.NullPointerException] Unable to run event handler User Notification

            DSI added a comment -

            Thanks for the fix !

            Regards,
            JC

            DSI added a comment - Thanks for the fix ! Regards, JC

            DSI added a comment -

            Hi Michael,
            can you give me a release date for the fix issue ?
            We need this to finish a proof of concept with Jira Service Desk and Valiantys Nfeed Plugin.

            The java.lang.NullPointerException, seem to broke Nfeed Post function on create issue.

            Regards,
            JC

            DSI added a comment - Hi Michael, can you give me a release date for the fix issue ? We need this to finish a proof of concept with Jira Service Desk and Valiantys Nfeed Plugin. The java.lang.NullPointerException, seem to broke Nfeed Post function on create issue. Regards, JC

            Thanks for the file, SI

            We were able to reproduce the problem with 1.1.6. A fix for the issue will be included in the next version, to be released in a few weeks.

            Regards,
            Michael

            Michael Ruflin (Inactive) added a comment - Thanks for the file, SI We were able to reproduce the problem with 1.1.6. A fix for the issue will be included in the next version, to be released in a few weeks. Regards, Michael

            DSI added a comment -

            You can find complete stack trace in attachment.

            DSI added a comment - You can find complete stack trace in attachment.

            Could we please provide us the full stack trace? On a side note, if you wrap the code into

            { code }

            (no spaces) tags it will be much easier to read.

            Thanks,
            Michael

            Michael Ruflin (Inactive) added a comment - Could we please provide us the full stack trace? On a side note, if you wrap the code into { code } (no spaces) tags it will be much easier to read. Thanks, Michael

              Unassigned Unassigned
              7a4005854e6b DSI
              Affected customers:
              0 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: