Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Error on 'scm load' - $Proxy14 ClassCastException

I was trying to do an 'scm load' using the command line from the RTC Eclipse client, and got the following error:



C:\RTC\LynxDevStream>\RSDP75\scmtools\eclipse\scm load -r https://rtp-rtc12.tivlab.raleigh.ibm.com:9443/jazz/ 1014
Password (dlwester@us.ibm.com @ https://rtp-rtc12.tivlab.raleigh.ibm.com:9443/jazz/):
Unexpected exception
java.lang.ClassCastException: $Proxy14 incompatible with com.ibm.team.scm.common.IWorkspace
at com.ibm.team.filesystem.cli.core.util.RepoUtil.findNamedWorkspace(Unknown Source)
at com.ibm.team.filesystem.cli.client.internal.subcommands.LoadCmd.run(LoadCmd.java:126)
at com.ibm.team.filesystem.cli.client.internal.subcommands.LoadCmdLauncher.run(LoadCmdLauncher.java:161)
at com.ibm.team.filesystem.cli.core.internal.Application.run(Unknown Source)
at com.ibm.team.filesystem.cli.core.internal.Application.doStart(Unknown Source)
at com.ibm.team.filesystem.cli.core.internal.Application.start(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Un
known Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.eclipse.equinox.launcher.Main.invokeFramework(Unknown Source)
at org.eclipse.equinox.launcher.Main.basicRun(Unknown Source)
at org.eclipse.equinox.launcher.Main.run(Unknown Source)
Scm:
An error has occurred. See the log file
C:\RTC\LynxDevStream\.metadata\.log.


Any ideas?

				

0 votes



4 answers

Permanent link
Did you check that the alias '1014' is an alias for a workspace? It's the first thing I can think of when looking at the source and it should have given you a better error message to help identify the problem.

I was trying to do an 'scm load' using the command line from the RTC Eclipse client, and got the following error:



C:\RTC\LynxDevStream>\RSDP75\scmtools\eclipse\scm load -r https://rtp-rtc12.tivlab.raleigh.ibm.com:9443/jazz/ 1014
Password (dlwester@us.ibm.com @ https://rtp-rtc12.tivlab.raleigh.ibm.com:9443/jazz/):
Unexpected exception
java.lang.ClassCastException: $Proxy14 incompatible with com.ibm.team.scm.common.IWorkspace
at com.ibm.team.filesystem.cli.core.util.RepoUtil.findNamedWorkspace(Unknown Source)
at com.ibm.team.filesystem.cli.client.internal.subcommands.LoadCmd.run(LoadCmd.java:126)
at com.ibm.team.filesystem.cli.client.internal.subcommands.LoadCmdLauncher.run(LoadCmdLauncher.java:161)
at com.ibm.team.filesystem.cli.core.internal.Application.run(Unknown Source)
at com.ibm.team.filesystem.cli.core.internal.Application.doStart(Unknown Source)
at com.ibm.team.filesystem.cli.core.internal.Application.start(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Un
known Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.eclipse.equinox.launcher.Main.invokeFramework(Unknown Source)
at org.eclipse.equinox.launcher.Main.basicRun(Unknown Source)
at org.eclipse.equinox.launcher.Main.run(Unknown Source)
Scm:
An error has occurred. See the log file
C:\RTC\LynxDevStream\.metadata\.log.


Any ideas?

0 votes


Permanent link
Thanks, Tim! That was it. I had been successfully loading the same workspace from a Linux machine, and made the erroneous assumption that the UUID used for the workspace would be the same from my Windows machine. That UUID is obviously not a global one.

0 votes


Permanent link
Thanks, Tim! That was it. I had been successfully loading the same workspace from a Linux machine, and made the erroneous assumption that the UUID used for the workspace would be the same from my Windows machine. That UUID is obviously not a global one.

Ah yes, the '1014' alias that you saw is for the current session. It isn't a permanent alias for the item. If you rebooted your Linux machine, it might not be the same alias.

0 votes


Permanent link
The UUID is a global id but the CLI surfaces aliases which are not.

Michael

dlwester wrote:
Thanks, Tim! That was it. I had been successfully loading the same
workspace from a Linux machine, and made the erroneous assumption
that the UUID used for the workspace would be the same from my
Windows machine. That UUID is obviously not a global one.

0 votes

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

Question asked: May 05 '10, 10:01 a.m.

Question was seen: 8,584 times

Last updated: May 05 '10, 10:01 a.m.

Confirmation Cancel Confirm