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.

  • The Bugzilla importer assumes the JIRA has an 'Improvement' issue type with id 4, and a 'Bug' issue type with id 1. If these issue types have been deleted, the importer breaks with this exception in the import logs: {noformat} Error importing data from bugzilla: java.lang.NullPointerException at com.atlassian.jira.workflow.SimpleWorkflowManager.createIssue(SimpleWorkflowManager.java:130) at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:299) at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:247) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:71) at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28) at $Proxy3.createIssue(Unknown Source) at com.atlassian.jira.util.BugzillaImportBean.createIssue(BugzillaImportBean.java:387) at com.atlassian.jira.util.BugzillaImportBean.createIssues(BugzillaImportBean.java:307) at com.atlassian.jira.util.BugzillaImportBean.create(BugzillaImportBean.java:200) at com.atlassian.jira.web.action.util.BugzillaImport.doRun(BugzillaImport.java:150) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) ... {noformat}
    via by Jeff Turner,
  • The Bugzilla importer assumes the JIRA has an 'Improvement' issue type with id 4, and a 'Bug' issue type with id 1. If these issue types have been deleted, the importer breaks with this exception in the import logs: {noformat} Error importing data from bugzilla: java.lang.NullPointerException at com.atlassian.jira.workflow.SimpleWorkflowManager.createIssue(SimpleWorkflowManager.java:130) at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:299) at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:247) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:71) at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28) at $Proxy3.createIssue(Unknown Source) at com.atlassian.jira.util.BugzillaImportBean.createIssue(BugzillaImportBean.java:387) at com.atlassian.jira.util.BugzillaImportBean.createIssues(BugzillaImportBean.java:307) at com.atlassian.jira.util.BugzillaImportBean.create(BugzillaImportBean.java:200) at com.atlassian.jira.web.action.util.BugzillaImport.doRun(BugzillaImport.java:150) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) ... {noformat}
    via by Jeff Turner,
  • We plan to implement Jira in our company and for this we must prove that regular updates from our old issue tracking system are possible. For this I am writing a Jira service that should get all the issues that have changed in the old system and create/update the issues in Jira. As a first step I try to simply create a trivial issue from a my own service that is running in Jira: public void run() { ... ImportUtils.setSubvertSecurityScheme(true); // stolen form Mantis import code - necessary? ImportUtils.setIndexIssues(false); IssueManager issueManager = ManagerFactory.getIssueManager(); GenericValue project = ManagerFactory.getProjectManager().getProjectByName("Test Project"); Map fields = new HashMap(); fields.put("projectId", project.getLong("id")); fields.put(IssueFieldConstants.REPORTER, "admin"); fields.put(IssueFieldConstants.ASSIGNEE, "admin"); fields.put(IssueFieldConstants.ISSUE_TYPE, "" + IssueFieldConstants.NEWFEATURE_TYPE_ID); fields.put(IssueFieldConstants.SUMMARY, "automatic test bug"); fields.put(IssueFieldConstants.STATUS, "" + IssueFieldConstants.OPEN_STATUS_ID); GenericValue issue = issueManager.createIssue("admin", fields); } This code throws the following error 2005-06-09 19:19:13,934 WARN [sims.jira.service.WatsonUpdateService] Exception running watson update service: null java.lang.NullPointerException at com.atlassian.jira.workflow.SimpleWorkflowManager.createIssue(SimpleWorkflowManager.java:125) at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:262) at com.atlassian.jira.issue.managers.CachingIssueManager.createIssue(CachingIssueManager.java:71) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:71) at com.atlassian.jira.config.component.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:27) at $Proxy2.createIssue(Unknown Source) at com.sims.jira.service.WatsonUpdateService.run(WatsonUpdateService.java:71) at com.atlassian.jira.service.JiraServiceContainer.run(JiraServiceContainer.java:59) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:50) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) Any ideas? I tried for hours but could not fix it... Thank you very much
    via by Marcel Müller,
  • We plan to implement Jira in our company and for this we must prove that regular updates from our old issue tracking system are possible. For this I am writing a Jira service that should get all the issues that have changed in the old system and create/update the issues in Jira. As a first step I try to simply create a trivial issue from a my own service that is running in Jira: public void run() { ... ImportUtils.setSubvertSecurityScheme(true); // stolen form Mantis import code - necessary? ImportUtils.setIndexIssues(false); IssueManager issueManager = ManagerFactory.getIssueManager(); GenericValue project = ManagerFactory.getProjectManager().getProjectByName("Test Project"); Map fields = new HashMap(); fields.put("projectId", project.getLong("id")); fields.put(IssueFieldConstants.REPORTER, "admin"); fields.put(IssueFieldConstants.ASSIGNEE, "admin"); fields.put(IssueFieldConstants.ISSUE_TYPE, "" + IssueFieldConstants.NEWFEATURE_TYPE_ID); fields.put(IssueFieldConstants.SUMMARY, "automatic test bug"); fields.put(IssueFieldConstants.STATUS, "" + IssueFieldConstants.OPEN_STATUS_ID); GenericValue issue = issueManager.createIssue("admin", fields); } This code throws the following error 2005-06-09 19:19:13,934 WARN [sims.jira.service.WatsonUpdateService] Exception running watson update service: null java.lang.NullPointerException at com.atlassian.jira.workflow.SimpleWorkflowManager.createIssue(SimpleWorkflowManager.java:125) at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:262) at com.atlassian.jira.issue.managers.CachingIssueManager.createIssue(CachingIssueManager.java:71) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:71) at com.atlassian.jira.config.component.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:27) at $Proxy2.createIssue(Unknown Source) at com.sims.jira.service.WatsonUpdateService.run(WatsonUpdateService.java:71) at com.atlassian.jira.service.JiraServiceContainer.run(JiraServiceContainer.java:59) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:50) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) Any ideas? I tried for hours but could not fix it... Thank you very much
    via by Marcel Müller,
    • java.lang.NullPointerException at com.atlassian.jira.workflow.SimpleWorkflowManager.createIssue(SimpleWorkflowManager.java:130) at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:299) at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:247) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:71) at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28) at $Proxy3.createIssue(Unknown Source) at com.atlassian.jira.util.BugzillaImportBean.createIssue(BugzillaImportBean.java:387) at com.atlassian.jira.util.BugzillaImportBean.createIssues(BugzillaImportBean.java:307) at com.atlassian.jira.util.BugzillaImportBean.create(BugzillaImportBean.java:200) at com.atlassian.jira.web.action.util.BugzillaImport.doRun(BugzillaImport.java:150) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585)
    No Bugmate found.