It's all about the answers!

Ask a question

SCM compare Error : No enum const class com.ibm.team.filesystem.cli.core.util.RepoUtil$ItemType.CHAN


Vivek Pandey (4321738) | asked Oct 29 '14, 10:22 p.m.
 Hi,

I'm getting following error while using 'SCM compare' command.

RTC client and server version : 4.0.6

------------------------------------------------------------
Comparing Stream A with snapshot
Unexpected exception
java.lang.IllegalArgumentException: No enum const class com.ibm.team.filesystem.cli.core.util.RepoUtil$ItemType.CHAN
	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:905)
	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:569)
	at com.ibm.team.rtc.cli.infrastructure.internal.core.SubcommandLauncher.doStart(SubcommandLauncher.java:365)
	at com.ibm.team.rtc.cli.infrastructure.internal.core.SubcommandLauncher.run(SubcommandLauncher.java:129)
	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:60)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:611)
	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)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1384)

Comments
Shashikant Padur commented Oct 29 '14, 10:53 p.m. | edited Oct 29 '14, 10:54 p.m.
JAZZ DEVELOPER

Vivek,

Can you paste the exact command and the arguments used?


Vivek Pandey commented Oct 29 '14, 11:16 p.m.

 Hi Shashi,


Here it is:

"C:\Program Files\ibm\TeamConcert\scmtools\eclipse\scm.exe" -u "y" compare -r https:someserver/URL -u * -P * -p c -I dcswf -f o stream "Production support Stream" snapshot "UAT snapshot" 


Vivek Pandey commented Oct 31 '14, 12:10 a.m.

hi shashi,


Any pointers to it ?

Also, to mention, I get Error while invoking the command from Jenkins through perl script.

But when I invoke the same perl script on command line it works.

what does it mean by "enum const" error above ? 

Be the first one to answer this question!


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.