java.lang.ClassCastException: $Proxy20 incompatible with ...
Hi,
I get a weird error with the comand line when specifying a changset alias as below. Any ideas anyone? Cheers, Bill C:\workspace\Build>lscm accept -r N -c 1026 Unexpected exception java.lang.ClassCastException: $Proxy20 incompatible with com.ibm.team.scm.common.IChangeSet at com.ibm.team.filesystem.client.internal.operations.WorkspaceUpdateRequest.getAffectedConfigurations(null) at com.ibm.team.filesystem.client.internal.operations.WorkspaceUpdateOperation.getAffectedConfigurations(null) at com.ibm.team.filesystem.client.internal.operations.WorkspaceUpdateOperation.execute(null) at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.run(null) at com.ibm.team.filesystem.rcp.core.internal.rest.util.WorkspaceUpdateUtil.workspaceUpdate(WorkspaceUpdateUtil.java:118) at com.ibm.team.filesystem.rcp.core.internal.rest.FilesystemRestClient.postWorkspaceUpdate(FilesystemRestClient.java:782) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at com.ibm.team.filesystem.client.daemon.JSONHandler.handle(JSONHandler.java:300) at com.ibm.team.filesystem.client.internal.http.HttpConnection.readNextRequest(HttpConnection.java:606) at com.ibm.team.filesystem.client.internal.http.HttpConnection$1.run(HttpConnection.java:459) at org.eclipse.core.internal.jobs.Worker.run(null) at com.ibm.team.repository.common.internal.marshal.util.MarshallerUtil.decodeExceptions(MarshallerUtil.java:326) at com.ibm.team.repository.common.serialize.internal.JSONDeserializer.deserializeErrorObj(JSONDeserializer.java:867) at com.ibm.team.repository.common.serialize.internal.JSONDeserializer.deserializeException(JSONDeserializer.java:843) at com.ibm.team.filesystem.client.internal.marshalling.EObjectJSONDeserializer.deserializeError(EObjectJSONDeserializer.java :61) at com.ibm.team.filesystem.client.restproxy.RestInvocationHandler.executeRequest(RestInvocationHandler.java:241) at com.ibm.team.filesystem.client.restproxy.RestInvocationHandler.executeAndReturnResult(RestInvocationHandler.java:197) at com.ibm.team.filesystem.client.restproxy.RestInvocationHandler.invokeInternal(RestInvocationHandler.java:342) at com.ibm.team.filesystem.client.restproxy.RestInvocationHandler.invoke(RestInvocationHandler.java:285) at $Proxy32.postWorkspaceUpdate(Unknown Source) at com.ibm.team.filesystem.cli.client.internal.subcommands.AcceptCmd.run(AcceptCmd.java:149) at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.run(Unknown Source) at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.doStart(Unknown Source) at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.run(Unknown Source) at com.ibm.team.filesystem.cli.client.internal.daemon.CommandLineClient.handleRequest(CommandLineClient.java:123) 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:606) at com.ibm.team.filesystem.client.internal.http.HttpConnection$1.run(HttpConnection.java:459) at org.eclipse.core.internal.jobs.Worker.run(Unknown Source) java.lang.ClassCastException: $Proxy20 incompatible with com.ibm.team.scm.common.IChangeSet C:\workspace\Build>lscm version com.ibm.team.filesystem.cli.tools, version 2.0.2.I200910232005 Subcommands: tools.verify tools.validate tools.echo.stdin tools.configvalue com.ibm.team.filesystem.cli.client, version 2.0.2.I201005061337 Subcommands: load login logout create create/workspace create/baseline create/changeset create/snapshot create/component changeset changeset/comment changeset/close changeset/relocate changeset/associate changeset/disassociate changeset/suspend changeset/resume change-target change-target/workspace change-target/component list list/workspaces list/projectareas list/teamareas list/streams lis t/components list/remotefiles list/credentials list/daemons list/snapshots list/locks list/properties checkin accept deliver status conflicts resolve move lastmod share discard undo compare history diff repair workspace workspace/add-components workspace/remove-co mponents workspace/replace-components property property/list property/get property/set lock lock/list lock/acquire lock/release anno tate com.ibm.team.filesystem.cli.core, version 2.0.2.I201007081345 Subcommands: help version :cry: :cry: :cry: |
One answer
What is the output of lscm status?
Confirm that the 1026 alias is the same. The alias can change between sessions. |
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.