Over the weekend I tried unsuccessfully to migrate out Jazz server to v0.6M3 (from 0.6.0.I20070914-0006, aka M3D1).
The export created a clean tar archive of 5.6Gb and nothing suspicious showed up on the log file. The import was a different matter. Right from the beginning I started getting NumberFormatExceptions for string "unused":
Begin importing contents from /jazz_old/server/export_m3d1.tar into the repository
Error getting mapping for migration handler: class com.ibm.team.workitem.service.internal.WorkItemMigrationHandler
java.lang.NumberFormatException: For input string: "unused"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:63)
at java.lang.Integer.parseInt(Integer.java:481)
at java.lang.Integer.valueOf(Integer.java:587)
at com.ibm.team.workitem.service.internal.WorkItemMigrationHandler.less(WorkItemMigrationHandler.java:836)
at com.ibm.team.workitem.service.internal.WorkItemMigrationHandler.lessEqual(WorkItemMigrationHandler.java:829)
at com.ibm.team.workitem.service.internal.WorkItemMigrationHandler.isMigratingFrom(WorkItemMigrationHandler.java:821)
at com.ibm.team.workitem.service.internal.WorkItemMigrationHandler.initializeMapping(WorkItemMigrationHandler.java:111)
at com.ibm.team.repository.migration.AbstractMigrationHandler.getMapping(AbstractMigrationHandler.java:118)
at com.ibm.team.repository.migration.internal.events.RepositoryMigrationDispatcher.getMapping(RepositoryMigrationDispatcher.java:174)
at com.ibm.team.repository.migration.internal.service.AbstractRepositoryMigrationService.loadMigrationMappings(AbstractRepositoryMigrationService.java:801)
at com.ibm.team.repository.migration.internal.service.AbstractRepositoryMigrationService.importData(AbstractRepositoryMigrationService.java:701)
at com.ibm.team.repository.migration.internal.service.AbstractRepositoryMigrationService.importRepository(AbstractRepositoryMigrationService.java:643)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:326)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:318)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$1.invoke(ExportProxyServiceRecord.java:106)
at $Proxy124.importRepository(Unknown Source)
at com.ibm.team.repotools.rcp.internal.ImportApplicationModel.importData(ImportApplicationModel.java:159)
at com.ibm.team.repotools.rcp.internal.ImportApplicationModel.run(ImportApplicationModel.java:219)
at com.ibm.team.repotools.rcp.internal.ApplicationModel.run(ApplicationModel.java:365)
at com.ibm.team.repotools.rcp.RepositoryToolsApplication.run(RepositoryToolsApplication.java:444)
at com.ibm.team.repotools.rcp.RepositoryToolsApplication.start(RepositoryToolsApplication.java:476)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
Error executing migration handler
java.lang.NumberFormatException: For input string: "unused"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:63)
at java.lang.Integer.parseInt(Integer.java:481)
at java.lang.Integer.valueOf(Integer.java:587)
at com.ibm.team.workitem.service.internal.WorkItemMigrationHandler.less(WorkItemMigrationHandler.java:836)
at com.ibm.team.workitem.service.internal.WorkItemMigrationHandler.lessEqual(WorkItemMigrationHandler.java:829)
at com.ibm.team.workitem.service.internal.WorkItemMigrationHandler.isMigratingFrom(WorkItemMigrationHandler.java:821)
at com.ibm.team.workitem.service.internal.WorkItemMigrationHandler.initializeMapping(WorkItemMigrationHandler.java:111)
at com.ibm.team.repository.migration.AbstractMigrationHandler.getMapping(AbstractMigrationHandler.java:118)
at com.ibm.team.repository.migration.internal.events.RepositoryMigrationDispatcher.getMapping(RepositoryMigrationDispatcher.java:174)
at com.ibm.team.repository.migration.internal.service.AbstractRepositoryMigrationService.loadMigrationMappings(AbstractRepositoryMigrationService.java:801)
at com.ibm.team.repository.migration.internal.service.AbstractRepositoryMigrationService.importData(AbstractRepositoryMigrationService.java:701)
at com.ibm.team.repository.migration.internal.service.AbstractRepositoryMigrationService.importRepository(AbstractRepositoryMigrationService.java:643)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:326)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:318)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$1.invoke(ExportProxyServiceRecord.java:106)
at $Proxy124.importRepository(Unknown Source)
at com.ibm.team.repotools.rcp.internal.ImportApplicationModel.importData(ImportApplicationModel.java:159)
at com.ibm.team.repotools.rcp.internal.ImportApplicationModel.run(ImportApplicationModel.java:219)
at com.ibm.team.repotools.rcp.internal.ApplicationModel.run(ApplicationModel.java:365)
at com.ibm.team.repotools.rcp.RepositoryToolsApplication.run(RepositoryToolsApplication.java:444)
at com.ibm.team.repotools.rcp.RepositoryToolsApplication.start(RepositoryToolsApplication.java:476)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
Error getting mapping for migration handler: class com.ibm.team.scm.service.internal.migration.ScmMigrationHandler
java.lang.IllegalStateException: Unexpected version being imported
at com.ibm.team.scm.service.internal.migration.ScmMigrationHandler.initImportingVersion(ScmMigrationHandler.java:72)
at com.ibm.team.scm.service.internal.migration.ScmMigrationHandler.initializeMapping(ScmMigrationHandler.java:150)
at com.ibm.team.repository.migration.AbstractMigrationHandler.getMapping(AbstractMigrationHandler.java:118)
at com.ibm.team.repository.migration.internal.events.RepositoryMigrationDispatcher.getMapping(RepositoryMigrationDispatcher.java:174)
at com.ibm.team.repository.migration.internal.service.AbstractRepositoryMigrationService.loadMigrationMappings(AbstractRepositoryMigrationService.java:801)
at com.ibm.team.repository.migration.internal.service.AbstractRepositoryMigrationService.importData(AbstractRepositoryMigrationService.java:701)
at com.ibm.team.repository.migration.internal.service.AbstractRepositoryMigrationService.importRepository(AbstractRepositoryMigrationService.java:643)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:326)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:318)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$1.invoke(ExportProxyServiceRecord.java:106)
at $Proxy124.importRepository(Unknown Source)
at com.ibm.team.repotools.rcp.internal.ImportApplicationModel.importData(ImportApplicationModel.java:159)
at com.ibm.team.repotools.rcp.internal.ImportApplicationModel.run(ImportApplicationModel.java:219)
at com.ibm.team.repotools.rcp.internal.ApplicationModel.run(ApplicationModel.java:365)
at com.ibm.team.repotools.rcp.RepositoryToolsApplication.run(RepositoryToolsApplication.java:444)
at com.ibm.team.repotools.rcp.RepositoryToolsApplication.start(RepositoryToolsApplication.java:476)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
Error executing migration handler
java.lang.IllegalStateException: Unexpected version being imported
at com.ibm.team.scm.service.internal.migration.ScmMigrationHandler.initImportingVersion(ScmMigrationHandler.java:72)
at com.ibm.team.scm.service.internal.migration.ScmMigrationHandler.initializeMapping(ScmMigrationHandler.java:150)
at com.ibm.team.repository.migration.AbstractMigrationHandler.getMapping(AbstractMigrationHandler.java:118)
at com.ibm.team.repository.migration.internal.events.RepositoryMigrationDispatcher.getMapping(RepositoryMigrationDispatcher.java:174)
at com.ibm.team.repository.migration.internal.service.AbstractRepositoryMigrationService.loadMigrationMappings(AbstractRepositoryMigrationService.java:801)
at com.ibm.team.repository.migration.internal.service.AbstractRepositoryMigrationService.importData(AbstractRepositoryMigrationService.java:701)
at com.ibm.team.repository.migration.internal.service.AbstractRepositoryMigrationService.importRepository(AbstractRepositoryMigrationService.java:643)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:326)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:318)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$1.invoke(ExportProxyServiceRecord.java:106)
at $Proxy124.importRepository(Unknown Source)
at com.ibm.team.repotools.rcp.internal.ImportApplicationModel.importData(ImportApplicationModel.java:159)
at com.ibm.team.repotools.rcp.internal.ImportApplicationModel.run(ImportApplicationModel.java:219)
at com.ibm.team.repotools.rcp.internal.ApplicationModel.run(ApplicationModel.java:365)
at com.ibm.team.repotools.rcp.RepositoryToolsApplication.run(RepositoryToolsApplication.java:444)
at com.ibm.team.repotools.rcp.RepositoryToolsApplication.start(RepositoryToolsApplication.java:476)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
After this
RoleAssignment to
DevelopmentLine imported cleanly but
Iteration started failing also:
Importing item type : Iteration
itemId= stateId= nsURI=com.ibm.team.workitem typeName=WorkItem
java.lang.NumberFormatException: For input string: "unused"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:63)
at java.lang.Integer.parseInt(Integer.java:481)
at java.lang.Integer.valueOf(Integer.java:587)
at com.ibm.team.workitem.service.internal.WorkItemMigrationHandler.less(WorkItemMigrationHandler.java:836)
at com.ibm.team.workitem.service.internal.WorkItemMigrationHandler.lessEqual(WorkItemMigrationHandler.java:829)
at com.ibm.team.workitem.service.internal.WorkItemMigrationHandler.isMigratingFrom(WorkItemMigrationHandler.java:821)
at com.ibm.team.workitem.service.internal.WorkItemMigrationHandler.preSave(WorkItemMigrationHandler.java:124)
at com.ibm.team.repository.migration.internal.events.RepositoryMigrationDispatcher.preSave(RepositoryMigrationDispatcher.java:300)
at com.ibm.team.repository.migration.internal.service.RepositoryMigrationService.preSave(RepositoryMigrationService.java:742)
at com.ibm.team.repository.migration.internal.service.RepositoryMigrationService.importItem(RepositoryMigrationService.java:655)
at com.ibm.team.repository.migration.internal.service.AbstractRepositoryMigrationService.importData(AbstractRepositoryMigrationService.java:714)
at com.ibm.team.repository.migration.internal.service.AbstractRepositoryMigrationService.importRepository(AbstractRepositoryMigrationService.java:643)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:326)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:318)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$1.invoke(ExportProxyServiceRecord.java:106)
at $Proxy124.importRepository(Unknown Source)
at com.ibm.team.repotools.rcp.internal.ImportApplicationModel.importData(ImportApplicationModel.java:159)
at com.ibm.team.repotools.rcp.internal.ImportApplicationModel.run(ImportApplicationModel.java:219)
at com.ibm.team.repotools.rcp.internal.ApplicationModel.run(ApplicationModel.java:365)
at com.ibm.team.repotools.rcp.RepositoryToolsApplication.run(RepositoryToolsApplication.java:444)
at com.ibm.team.repotools.rcp.RepositoryToolsApplication.start(RepositoryToolsApplication.java:476)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
itemId= stateId= nsURI=com.ibm.team.workitem typeName=WorkItem
java.lang.NumberFormatException: For input string: "unused"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:63)
at java.lang.Integer.parseInt(Integer.java:481)
at java.lang.Integer.valueOf(Integer.java:587)
at com.ibm.team.workitem.service.internal.WorkItemMigrationHandler.less(WorkItemMigrationHandler.java:836)
at com.ibm.team.workitem.service.internal.WorkItemMigrationHandler.lessEqual(WorkItemMigrationHandler.java:829)
at com.ibm.team.workitem.service.internal.WorkItemMigrationHandler.isMigratingFrom(WorkItemMigrationHandler.java:821)
at com.ibm.team.workitem.service.internal.WorkItemMigrationHandler.preSave(WorkItemMigrationHandler.java:124)
at com.ibm.team.repository.migration.internal.events.RepositoryMigrationDispatcher.preSave(RepositoryMigrationDispatcher.java:300)
at com.ibm.team.repository.migration.internal.service.RepositoryMigrationService.preSave(RepositoryMigrationService.java:742)
at com.ibm.team.repository.migration.internal.service.RepositoryMigrationService.importItem(RepositoryMigrationService.java:655)
at com.ibm.team.repository.migration.internal.service.AbstractRepositoryMigrationService.importData(AbstractRepositoryMigrationService.java:714)
at com.ibm.team.repository.migration.internal.service.AbstractRepositoryMigrationService.importRepository(AbstractRepositoryMigrationService.java:643)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:326)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:318)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$1.invoke(ExportProxyServiceRecord.java:106)
at $Proxy124.importRepository(Unknown Source)
at com.ibm.team.repotools.rcp.internal.ImportApplicationModel.importData(ImportApplicationModel.java:159)
at com.ibm.team.repotools.rcp.internal.ImportApplicationModel.run(ImportApplicationModel.java:219)
at com.ibm.team.repotools.rcp.internal.ApplicationModel.run(ApplicationModel.java:365)
at com.ibm.team.repotools.rcp.RepositoryToolsApplication.run(RepositoryToolsApplication.java:444)
at com.ibm.team.repotools.rcp.RepositoryToolsApplication.start(RepositoryToolsApplication.java:476)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
This went on for most of the import leaving me with a log file of 492,014 lines.
Am I doing something wrong or is this a bug in the migration code?