Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

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

 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

1 vote


Accepted answer

Permanent link
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

2 votes

Comments

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

 Thank you, Deleting Aliases file solved the problem.

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 1,204
× 158

Question asked: Aug 05 '15, 2:01 p.m.

Question was seen: 2,629 times

Last updated: Aug 29 '15, 10:49 p.m.

Confirmation Cancel Confirm