java.lang.RuntimeException: Could not create bugzilla user 1, referenced in the bugzilla database.

Atlassian JIRA | Andrew Myers [Atlassian] | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    The bugzilla importer fails with a stack trace when bugzilla issues contain assignees, reporters and comments by users that do not exist in bugzilla. {noformat}2008-11-25 18:10:00,543 http-8080-Processor24 INFO [atlassian.jira.util.BugzillaImportBean] Exception processing bug id 1 2008-11-25 18:10:00,543 http-8080-Processor24 WARN [web.action.util.BugzillaImport] Exception thrown while importing Bugzilla data java.lang.RuntimeException: Could not create bugzilla user 1, referenced in the bugzilla database. at com.atlassian.jira.util.BugzillaImportBean.createUser(BugzillaImportBean.java:1250) at com.atlassian.jira.util.BugzillaImportBean.getUser(BugzillaImportBean.java:1679) at com.atlassian.jira.util.BugzillaImportBean.createIssue(BugzillaImportBean.java:428) at com.atlassian.jira.util.BugzillaImportBean.createIssues(BugzillaImportBean.java:369) at com.atlassian.jira.util.BugzillaImportBean.create(BugzillaImportBean.java:245) at com.atlassian.jira.web.action.util.BugzillaImport.doRun(BugzillaImport.java:263) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) {noformat} However the importer gracefully noted that some watchers could not be added due to not existing in the bugzilla database. Not sure if this error was caused by lax referential integrity in older versions of bugzilla, or the old version of mysql. A workaround is to alter the bugzilla database such that all bugs and comments refer to users that exist.

    Atlassian JIRA | 8 years ago | Andrew Myers [Atlassian]
    java.lang.RuntimeException: Could not create bugzilla user 1, referenced in the bugzilla database.
  2. 0

    The bugzilla importer fails with a stack trace when bugzilla issues contain assignees, reporters and comments by users that do not exist in bugzilla. {noformat}2008-11-25 18:10:00,543 http-8080-Processor24 INFO [atlassian.jira.util.BugzillaImportBean] Exception processing bug id 1 2008-11-25 18:10:00,543 http-8080-Processor24 WARN [web.action.util.BugzillaImport] Exception thrown while importing Bugzilla data java.lang.RuntimeException: Could not create bugzilla user 1, referenced in the bugzilla database. at com.atlassian.jira.util.BugzillaImportBean.createUser(BugzillaImportBean.java:1250) at com.atlassian.jira.util.BugzillaImportBean.getUser(BugzillaImportBean.java:1679) at com.atlassian.jira.util.BugzillaImportBean.createIssue(BugzillaImportBean.java:428) at com.atlassian.jira.util.BugzillaImportBean.createIssues(BugzillaImportBean.java:369) at com.atlassian.jira.util.BugzillaImportBean.create(BugzillaImportBean.java:245) at com.atlassian.jira.web.action.util.BugzillaImport.doRun(BugzillaImport.java:263) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) {noformat} However the importer gracefully noted that some watchers could not be added due to not existing in the bugzilla database. Not sure if this error was caused by lax referential integrity in older versions of bugzilla, or the old version of mysql. A workaround is to alter the bugzilla database such that all bugs and comments refer to users that exist.

    Atlassian JIRA | 8 years ago | Andrew Myers [Atlassian]
    java.lang.RuntimeException: Could not create bugzilla user 1, referenced in the bugzilla database.

    Root Cause Analysis

    1. java.lang.RuntimeException

      Could not create bugzilla user 1, referenced in the bugzilla database.

      at com.atlassian.jira.util.BugzillaImportBean.createUser()
    2. com.atlassian.jira
      BugzillaImport.doRun
      1. com.atlassian.jira.util.BugzillaImportBean.createUser(BugzillaImportBean.java:1250)
      2. com.atlassian.jira.util.BugzillaImportBean.getUser(BugzillaImportBean.java:1679)
      3. com.atlassian.jira.util.BugzillaImportBean.createIssue(BugzillaImportBean.java:428)
      4. com.atlassian.jira.util.BugzillaImportBean.createIssues(BugzillaImportBean.java:369)
      5. com.atlassian.jira.util.BugzillaImportBean.create(BugzillaImportBean.java:245)
      6. com.atlassian.jira.web.action.util.BugzillaImport.doRun(BugzillaImport.java:263)
      6 frames
    3. Java RT
      NativeMethodAccessorImpl.invoke0
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      1 frame