Uploaded image for project: 'Project Configurator - Development'
  1. Project Configurator - Development
  2. PCDEV-844

Simulating an import fails with a Cannot get property 'name' on null object" error

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.0-J7
    • Labels:
      None
    • Critical Points:
      0

      Description

      When running a simulated import, the import fails with an error of Cannot get property 'name' on null object" and gives the stack trace below. This happened when the new email configuration refers to a request type that is going to be created also in the same import.

      The manual workaround to this problem was launching the real import (in that case no error would occur)

      ERROR 15:51:27,368 java.lang.NullPointerException: Cannot get property 'name' on null object
       at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:60)
       at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:190)
       at org.codehaus.groovy.runtime.callsite.NullCallSite.getProperty(NullCallSite.java:46)
       at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:299)
       at com.awnaba.projectconfigurator.groovytools.servicedesk.EmailChannelGroovyTools$EmailChannelImpl.toString(EmailChannelGroovyTools.groovy:43)
       at java.lang.String.valueOf(String.java:2994)
       at java.lang.StringBuilder.append(StringBuilder.java:131)
       at com.awnaba.projectconfigurator.loaders.handlers.ServiceDeskHandler$2.propertySetLogMessage(ServiceDeskHandler.java:111)
       at com.awnaba.projectconfigurator.loaders.core.AbstractIntegratedHandler$4.logMessageContent(AbstractIntegratedHandler.java:284)
       at com.awnaba.projectconfigurator.loaders.core.AbstractLogger.log(AbstractLogger.java:23)
       at com.awnaba.projectconfigurator.loaders.core.AbstractSmartPropertySetter.smartSet(AbstractSmartPropertySetter.java:13)
       at com.awnaba.projectconfigurator.loaders.core.AbstractIntegratedHandler.processOnepropertyHelper(AbstractIntegratedHandler.java:300)
       at com.awnaba.projectconfigurator.loaders.core.AbstractIntegratedHandler.processPropertyActionList(AbstractIntegratedHandler.java:261)
       at com.awnaba.projectconfigurator.loaders.core.AbstractIntegratedHandler.handleSubordinatesAndProperties(AbstractIntegratedHandler.java:234)
       at com.awnaba.projectconfigurator.loaders.core.AbstractIntegratedHandler$1.doAndReturn(AbstractIntegratedHandler.java:175)
       at com.awnaba.projectconfigurator.loaders.core.AbstractIntegratedHandler$1.doAndReturn(AbstractIntegratedHandler.java:1)
       at com.awnaba.projectconfigurator.utils.SmartErrorReporter.wrapSafely(SmartErrorReporter.java:99)
       at com.awnaba.projectconfigurator.loaders.core.AbstractIntegratedHandler.createTarget(AbstractIntegratedHandler.java:172)
       at com.awnaba.projectconfigurator.loaders.core.AbstractTargetHandler.handleTarget(AbstractTargetHandler.java:102)
       at com.awnaba.projectconfigurator.loaders.core.CollectionMatcher.match(CollectionMatcher.java:27)
       at com.awnaba.projectconfigurator.loaders.core.AbstractIntegratedHandler.handleOneTypeOfSubordinates(AbstractIntegratedHandler.java:322)
       at com.awnaba.projectconfigurator.loaders.handlers.JiraProjectHandler.postProcess(JiraProjectHandler.java:777)
       at com.awnaba.projectconfigurator.loaders.handlers.JiraProjectHandler$15.doAndReturn(JiraProjectHandler.java:741)
       at com.awnaba.projectconfigurator.loaders.handlers.JiraProjectHandler$15.doAndReturn(JiraProjectHandler.java:1)
       at com.awnaba.projectconfigurator.utils.SmartErrorReporter.wrapSafely(SmartErrorReporter.java:99)
       at com.awnaba.projectconfigurator.loaders.handlers.JiraProjectHandler.finishHandling(JiraProjectHandler.java:737)
       at com.awnaba.projectconfigurator.loaders.handlers.ProjectConfigLoader.loadOperations(ProjectConfigLoader.java:224)
       at com.awnaba.projectconfigurator.loaders.handlers.ProjectConfigLoader.doLoad(ProjectConfigLoader.java:127)
       at com.awnaba.projectconfigurator.operationsapi.impl.ProjectConfigImporterImpl.doImport(ProjectConfigImporterImpl.java:166)
       at com.awnaba.projectconfigurator.operationsapi.impl.ProjectConfigImporterImpl.access$0(ProjectConfigImporterImpl.java:149)
       at com.awnaba.projectconfigurator.operationsapi.impl.ProjectConfigImporterImpl$ConfigImporterTask.call(ProjectConfigImporterImpl.java:145)
       at com.awnaba.projectconfigurator.operationsapi.impl.ProjectConfigImporterImpl$ConfigImporterTask.call(ProjectConfigImporterImpl.java:1)
       at com.awnaba.projectconfigurator.operationsapi.impl.ImportJobRunner.runJob(ImportJobRunner.java:122)
       at com.awnaba.projectconfigurator.operationsapi.impl.ProjectConfigImporterImpl.runImportConfigJob(ProjectConfigImporterImpl.java:121)
       at com.awnaba.projectconfigurator.operationsapi.impl.ProjectConfigImporterImpl.importConfigurationSynchronously(ProjectConfigImporterImpl.java:97)
       at com.awnaba.projectconfigurator.operationsapi.impl.ProjectCompleteImporterImpl.executeNextPhase(ProjectCompleteImporterImpl.java:247)
       at com.awnaba.projectconfigurator.operationsapi.impl.ProjectCompleteImporterImpl.doCompleteImport(ProjectCompleteImporterImpl.java:195)
       at com.awnaba.projectconfigurator.operationsapi.impl.ProjectCompleteImporterImpl.access$0(ProjectCompleteImporterImpl.java:188)
       at com.awnaba.projectconfigurator.operationsapi.impl.ProjectCompleteImporterImpl$CompleteImporterTask.call(ProjectCompleteImporterImpl.java:145)
       at com.awnaba.projectconfigurator.operationsapi.impl.ProjectCompleteImporterImpl$CompleteImporterTask.call(ProjectCompleteImporterImpl.java:1)
       at com.awnaba.projectconfigurator.longrunningtasks.TaskHelperImpl$WrappingTask.call(TaskHelperImpl.java:67)
       at com.awnaba.projectconfigurator.longrunningtasks.TaskHelperImpl$WrappingTask.call(TaskHelperImpl.java:1)
       at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:458)
       at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:426)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at com.atlassian.jira.task.ForkedThreadExecutor$ForkedRunnableDecorator.run(ForkedThreadExecutor.java:216)
       at java.lang.Thread.run(Thread.java:745)
      

       

        Attachments

          Issue Links

            Structure

              Activity

                People

                Assignee:
                pmaranon Pepe Maranon Mora
                Reporter:
                kwalker Kristian Walker
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Structure Helper Panel