Issue Details (XML | Word | Printable)

Key: JRA-8949
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Jeff Turner [Atlassian]
Reporter: Jeff Turner [Atlassian]
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JIRA

Bugzilla importer breaks with NullPointerException if Improvement or Bug issue type doesn't exist

Created: 05/Jan/06 06:49 PM   Updated: 30/Jul/06 07:34 PM
Component/s: Import / Export
Affects Version/s: 3.4.2
Fix Version/s: 3.5

Time Tracking:
Not Specified

File Attachments: 1. Java Source File BugzillaImportBean.java (63 kB)
2. Java Archive File bugzillaimporter_342_fixtypes.jar (23 kB)

Issue Links:
Reference
 

Participants: Jeff Turner [Atlassian]
Since last comment: 2 years, 40 weeks ago
Resolution Date: 08/Jan/06 05:10 PM
Labels:


 Description  « Hide
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:
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)
...


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jeff Turner [Atlassian] added a comment - 05/Jan/06 07:07 PM
Attached is a fixed version of the Bugzilla importer. To apply the patch:
  1. Download attached jar somewhere
  2. cd to atlassian-jira/WEB-INF/classes (JIRA Standalone) or edit-webapp/WEB-INF/classes (JIRA Webapp)
  3. Run jar xvf /path/to/bugzillaimporter_342_fixtypes.jar to replace the importer .class files
  4. If building a webapp, run build.sh/build.bat to rebuild, and redeploy the .war
  5. Restart JIRA