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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: High
    • Component/s: Forge and Connect
    • None

      NOTE: This bug report is for JIRA Service Desk Cloud. Using JIRA Service Desk Server? 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
          30 kB
          Mohamed Hazwan Ariffin
        2. people.PNG
          18 kB
          Mohamed Hazwan Ariffin

            Assignee:
            Matthew McMahon (Inactive)
            Reporter:
            Mohamed Hazwan Ariffin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: