rtcTo / rtc2gitcli

An IBM's RTC SCM tool extension to migrate an RTC repository into a Git repository
https://rtc.to
MIT License
28 stars 34 forks source link

Getting "java.lang.NullPointerException" when running migrate-to-git #52

Open giuli4 opened 5 years ago

giuli4 commented 5 years ago

Hello,

when I try to run the command migrate-to-git, I get the following exceptions:

Create the list of baselines java.lang.NullPointerException at to.rtc.cli.migrate.MigrateTo.createTagListFromBaselines(MigrateTo.java:251) at to.rtc.cli.migrate.MigrateTo.run(MigrateTo.java:117) at to.rtc.cli.migrate.git.MigrateToGit.run(MigrateToGit.java:25) at com.ibm.team.filesystem.cli.core.AbstractSubcommand.run(AbstractSubcommand.java:51) at com.ibm.team.rtc.cli.infrastructure.internal.core.SubcommandLauncher.run(SubcommandLauncher.java:601) at com.ibm.team.rtc.cli.infrastructure.internal.core.SubcommandLauncher.doStart(SubcommandLauncher.java:370) at com.ibm.team.rtc.cli.infrastructure.internal.core.SubcommandLauncher.run(SubcommandLauncher.java:130) at com.ibm.team.rtc.cli.infrastructure.internal.Application.start(Application.java:41) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) at java.lang.reflect.Method.invoke(Method.java:508) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408)

Can someone help me?

Thank you, Giulia

WtfJoke commented 5 years ago

Hi Giulia

Are you using rtc 6+? Sadly I cant help you. I havent experienced this problem and some users did experience the same/similar problem....

You might want to try rtc2git instead.

subham-awasthi commented 5 years ago

Hi Giulia/WtfJoke,

I have debugged this and found the solution. RCA : There is an empty or erroneous baseline in between that is causing the issue.

If you wish I can check-in the solution.

Thanks & Regards, Subham

ghost commented 4 years ago

@subham-awasthi Can you please provide me the solution to overcome this issue. I am also facing the same issue while migrating my code.

ghost commented 3 years ago

@ghost:can you plz clarify where we need to place migration.properties so that tool consider it..i am getting error stating file not available

ghost commented 3 years ago

Hi Giulia/WtfJoke,

I have debugged this and found the solution. RCA : There is an empty or erroneous baseline in between that is causing the issue.

If you wish I can check-in the solution.

Thanks & Regards, Subham

Can you please provide solution for this,also steps with screenshot to configure source_workspace and target-workspace with examples