Error when running BPMConfig -migrate

When you run the BPMConfig -migrate command, you might see an exception related to the WBITopologyReader. This exception means that the wbi-topologies.xml file is corrupted.

The exception is similar to the following text:
2015-11-25 11:05.03.107 com.ibm.bpm.config.export.utils.WBITopologyReader.getAllDesInSourceEnv(): RETURN
2015-11-25 11:05.03.107 com.ibm.bpm.config.export.utils.WBITopologyReader.getAllClusterNamesInSourceEnv(): RETURN All of clusters [{null={Messaging=WPS7c_RGR, Support=WPS7c_RGR, AppTarget=WPS7c_RGR}}]
2015-11-25 11:05.03.107 com.ibm.bpm.config.BPMConfig.main(): null
java.lang.NullPointerException
	at com.ibm.bpm.config.export.utils.WBITopologyReader.getClusterNameInSourceEnv(WBITopologyReader.java:101)
	at com.ibm.bpm.config.export.utils.WBITopologyReader.getNodeNamesForClusterUsingCapabilityInSourceEnv(WBITopologyReader.java:146)
	at com.ibm.bpm.config.export.utils.WBITopologyReader.getNodeNamesForApplicationClusterInSourceEnv(WBITopologyReader.java:114)
	at com.ibm.bpm.config.util.tw.LocalTWConfigurationLoader.findDeploymentTargetForMigration(LocalTWConfigurationLoader.java:275)
	at com.ibm.bpm.config.util.tw.LocalTWConfigurationLoader.<init>(LocalTWConfigurationLoader.java:76)
	at com.ibm.bpm.config.util.tw.TWConfigurationFactory.loadLocalConfig(TWConfigurationFactory.java:78)
	at com.ibm.bpm.config.export.helper.LombardiXMLPopulateHelper.populateLombardiXMLProperties(LombardiXMLPopulateHelper.java:86)
	at com.ibm.bpm.config.export.helper.LombardiXMLPopulateHelper.populate(LombardiXMLPopulateHelper.java:69)
	at com.ibm.bpm.config.export.handler.GenericExportConfigHandler.populateLombardiXMLProperties(GenericExportConfigHandler.java:235)
	at com.ibm.bpm.config.export.handler.GenericExportConfigHandler.populateAllSupportedProperties(GenericExportConfigHandler.java:105)
	at com.ibm.bpm.config.export.handler.V80ExportConfigHandler.populateAllSupportedProperties(V80ExportConfigHandler.java:168)
	at com.ibm.bpm.config.BPMConfig$Actions.migrate(BPMConfig.java:4504)
	at com.ibm.bpm.config.cli.MigrateAction.runInner(MigrateAction.java:127)
	at com.ibm.bpm.config.cli.AbstractConfigAction.run(AbstractConfigAction.java:128)
	at com.ibm.bpm.config.cli.MigrateAction.run(MigrateAction.java:34)
	at com.ibm.bpm.config.BPMConfig.main(BPMConfig.java:282)
To confirm that the wbi-topologies.xml file is corrupted, in the administrative console, go to Servers > Deployment Environments. Check that the target deployment environment name is shown correctly. If it is, click the deployment environment name and check that all the clusters are shown correctly. When the file is damaged, you might see error messages similar to the following text:
ClassNotFoundException: Class 'WBITopology' not found. (file://path_to_wbi-topologies.xml, 2,80)
To resolve the problem:
  1. In the deployment_manager_profile/config/cells/cell_name directory, rename the wbi-topologies.xml file to another name.
  2. Run the BPMConfig - migrate file without the -de parameter. When you are prompted, enter the cluster names based on the source environment configuration.
  3. After you have successfully run the command, restore the wbi-topologies.xml file. It is a good idea to keep the copy (under the other name) so you have a backup.