It's all about the answers!

Ask a question

I am getting following error while running lscm list baseline command. Need help.


Vipul Prajapati (235) | asked Aug 05 '15, 2:01 p.m.
edited Aug 05 '15, 2:51 p.m.
 Unexpected exception

java.lang.IllegalArgumentException: No enum const class com.ibm.team.filesystem.cli.core.util.RepoUtil$ItemType.B

        at java.lang.Enum.valueOf(Enum.java:207)

        at com.ibm.team.filesystem.cli.core.util.RepoUtil$ItemType.valueOf(RepoUtil.java:1)

        at com.ibm.team.filesystem.cli.core.internal.aliases.AliasLoader.parseLine(AliasLoader.java:158)

        at com.ibm.team.filesystem.cli.core.internal.aliases.AliasLoader.load(AliasLoader.java:107)

        at com.ibm.team.filesystem.cli.core.internal.aliases.UuidAliasRegistry.load(UuidAliasRegistry.java:159)

        at com.ibm.team.filesystem.cli.core.internal.aliases.UuidAliasRegistry.findAliasByName(UuidAliasRegistry.java:386)

        at com.ibm.team.filesystem.cli.core.util.RepoUtil.lookupUuidAndAlias(RepoUtil.java:913)

        at com.ibm.team.filesystem.cli.core.internal.ScmCommandLineArgument.validateAlias(ScmCommandLineArgument.java:113)

        at com.ibm.team.filesystem.cli.core.internal.ScmCommandLineArgument.getRepositorySelector(ScmCommandLineArgument.java:89)

        at com.ibm.team.filesystem.cli.core.AbstractSubcommand.processArguments(AbstractSubcommand.java:72)

        at com.ibm.team.filesystem.cli.core.AbstractSubcommand.run(AbstractSubcommand.java:48)

        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.filesystem.cli.client.internal.daemon.CommandLineClient.handleRequest(CommandLineClient.java:186)

        at com.ibm.team.filesystem.client.internal.http.ProtocolSwitchingHttpHandler.handle(ProtocolSwitchingHttpHandler.java:46)

        at com.ibm.team.filesystem.client.internal.http.HttpConnection.readNextRequest(HttpConnection.java:628)

        at com.ibm.team.filesystem.client.internal.http.HttpConnection$1.run(HttpConnection.java:470)

        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

java.lang.IllegalArgumentException: No enum const class com.ibm.team.filesystem.cli.core.util.RepoUtil$ItemType.B

Accepted answer


permanent link
Shashikant Padur (4.2k27) | answered Aug 05 '15, 11:19 p.m.
JAZZ DEVELOPER
edited Aug 05 '15, 11:20 p.m.
It would help if you could provide the exact command, its options and arguments. Please raise a defect along with the version of RTC and the environment details.

For now, you could try deleting the aliases file in <user home director>/.jazz-scm folder and re run the command.
Vipul Prajapati selected this answer as the correct answer

Comments
Vipul Prajapati commented Aug 06 '15, 9:37 a.m.

 lscm list baselines -C <componentname>@<repo> -m 1000


Vipul Prajapati commented Aug 06 '15, 3:33 p.m.

 Thank you, Deleting Aliases file solved the problem.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.