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

Error when creating Service Desk request with Notify Hipchat post function in Create Issue transition

      NOTE: This bug report is for JIRA Service Desk Server. Using JIRA Service Desk Cloud? See the corresponding bug report.

      Error when creating Service Desk request with Notify Hipchat post function in Create Issue transition. This might be related to having username that has a combination of uppercase and lowercase letter as well.

      Steps to Reproduce

      1. Access Customer Portal with a Username that has combination of uppercase and lowercase letters.
      2. Tried to create a request with Notify Hipchat post function in the create issue transition
      3. Getting an error
      4. JIRA logs is showing
        2015-02-16 12:32:06,275 TP-Processor25 ERROR PJoseph 752x192301x1 p764so 211.25.19.194,165.254.226.162 /servicedesk/customer/portal/2/create/54 [feature.customer.request.ServiceDeskWorkflowInitializationManager] Error initializing workflow
        java.lang.NullPointerException
                at com.atlassian.labs.jira.workflow.HipChatPostFunction.execute(HipChatPostFunction.java:75)
                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.ServiceDeskWorkflowInitializationManager$$anonfun$initializeWorkflow$1$$anonfun$apply$1$$anonfun$apply$2.apply(ServiceDeskWorkflowInitializationManager.scala:60)
                at com.atlassian.servicedesk.internal.feature.customer.request.ServiceDeskWorkflowInitializationManager$$anonfun$initializeWorkflow$1$$anonfun$apply$1$$anonfun$apply$2.apply(ServiceDeskWorkflowInitializationManager.scala:58)
                at scalaz.$bslash$div$class.map(Either.scala:94)
                at scalaz.$bslash$div$minus.map(Either.scala:283)
                at com.atlassian.servicedesk.internal.feature.customer.request.ServiceDeskWorkflowInitializationManager$$anonfun$initializeWorkflow$1$$anonfun$apply$1.apply(ServiceDeskWorkflowInitializationManager.scala:58)
                at com.atlassian.servicedesk.internal.feature.customer.request.ServiceDeskWorkflowInitializationManager$$anonfun$initializeWorkflow$1$$anonfun$apply$1.apply(ServiceDeskWorkflowInitializationManager.scala:56)
                at scalaz.$bslash$div$class.flatMap(Either.scala:117)
                at scalaz.$bslash$div$minus.flatMap(Either.scala:283)
                at com.atlassian.servicedesk.internal.feature.customer.request.ServiceDeskWorkflowInitializationManager$$anonfun$initializeWorkflow$1.apply(ServiceDeskWorkflowInitializationManager.scala:56)
                at com.atlassian.servicedesk.internal.feature.customer.request.ServiceDeskWorkflowInitializationManager$$anonfun$initializeWorkflow$1.apply(ServiceDeskWorkflowInitializationManager.scala:54)
                at scalaz.$bslash$div$class.flatMap(Either.scala:117)
                at scalaz.$bslash$div$minus.flatMap(Either.scala:283)
                at com.atlassian.servicedesk.internal.feature.customer.request.ServiceDeskWorkflowInitializationManager.initializeWorkflow(ServiceDeskWorkflowInitializationManager.scala:54)
                at com.atlassian.servicedesk.internal.feature.customer.request.ServiceDeskWorkflowInitializationManager.initializeWorkflowForIssue(ServiceDeskWorkflowInitializationManager.scala:35)
                at com.atlassian.servicedesk.internal.feature.customer.request.CustomerRequestManager.com$atlassian$servicedesk$internal$feature$customer$request$CustomerRequestManager$$saveIssueIntoJIRA(CustomerRequestManager.scala:128)
                at com.atlassian.servicedesk.internal.feature.customer.request.CustomerRequestManager$$anonfun$createRequest$2$$anonfun$apply$1$$anonfun$apply$2.apply(CustomerRequestManager.scala:82)
                at com.atlassian.servicedesk.internal.feature.customer.request.CustomerRequestManager$$anonfun$createRequest$2$$anonfun$apply$1$$anonfun$apply$2.apply(CustomerRequestManager.scala:73)
                at scalaz.$bslash$div$class.flatMap(Either.scala:117)
                at scalaz.$bslash$div$minus.flatMap(Either.scala:283)
                at com.atlassian.servicedesk.internal.feature.customer.request.CustomerRequestManager$$anonfun$createRequest$2$$anonfun$apply$1.apply(CustomerRequestManager.scala:73)
                at com.atlassian.servicedesk.internal.feature.customer.request.CustomerRequestManager$$anonfun$createRequest$2$$anonfun$apply$1.apply(CustomerRequestManager.scala:72)
                at scalaz.$bslash$div$class.flatMap(Either.scala:117)
        

      Possible Workaround
      Check if the username has combination of uppercase and lowercase letters. Try to replace it with all lowercase and check how it goes.

        1. error.PNG
          error.PNG
          30 kB
        2. people.PNG
          people.PNG
          18 kB

            [JSDSERVER-1525] Error when creating Service Desk request with Notify Hipchat post function in Create Issue transition

            Thanks,

            Are you able to see in the log files, a message of "Error initializing workflow"

            Any associated stacktrace will be very useful.

            Matt

            Matthew McMahon (Inactive) added a comment - Thanks, Are you able to see in the log files, a message of "Error initializing workflow" Any associated stacktrace will be very useful. Matt

            I already tested with two different users with the same settings.

            One user named testuser and the other named TestUser. It seems like for the first user, issue is being created successfully and as for the second, i received the error.

            Regards,
            Hazwan

            Mohamed Hazwan Ariffin (Inactive) added a comment - I already tested with two different users with the same settings. One user named testuser and the other named TestUser . It seems like for the first user, issue is being created successfully and as for the second, i received the error. Regards, Hazwan

            Hye Matt,

            Here's the screenshot of the bug:

            The affected Service desk version is JIRA Service Desk 2.3-OD-08

            Let me know if you need further information

            Regards,
            Hazwan

            Mohamed Hazwan Ariffin (Inactive) added a comment - Hye Matt, Here's the screenshot of the bug: The affected Service desk version is JIRA Service Desk 2.3-OD-08 Let me know if you need further information Regards, Hazwan

              mmcmahon Matthew McMahon (Inactive)
              mariffin Mohamed Hazwan Ariffin (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: