It's all about the answers!

Ask a question

null origin in IWorkspaceHandle causing exceptions in IActiv


Srimanth Gunturi (206125) | asked Feb 10 '09, 2:38 p.m.
JAZZ DEVELOPER
Hello,
Wanted to know if there is a better way to get the handle of a
IWorkspaceConnection, as IWorkspaceConnection.getContextHandle() does
not have the 'origin' field set.

Due to this the following line fails
FileSystemResourcesPlugin.getActiveWorkspaceManager().getComponentCollaboration(..)
is throwing :
java.lang.IllegalArgumentException
at
com.ibm.team.scm.client.SCMPlatform.getWorkspaceManager(SCMPlatform.java:40)
at
com.ibm.team.filesystem.rcp.core.internal.changes.ActiveWorkspaceManager.getConnection(ActiveWorkspaceManager.java:277)
at
com.ibm.team.filesystem.rcp.core.internal.changes.ActiveWorkspaceManager$CollaborationWorkspaceManager.getWorkspaceConnection(ActiveWorkspaceManager.java:359)
at
com.ibm.team.filesystem.rcp.core.internal.changes.ActiveWorkspaceManager$CollaborationWorkspaceManager.load(ActiveWorkspaceManager.java:342)
at
com.ibm.team.filesystem.rcp.core.internal.changes.ActiveWorkspaceManager$CollaborationWorkspaceManager.internalGetCollaboration(ActiveWorkspaceManager.java:334)
at
com.ibm.team.filesystem.rcp.core.internal.changes.ActiveWorkspaceManager$CollaborationWorkspaceManager.getComponentCollaboration(ActiveWorkspaceManager.java:364)
at
com.ibm.team.filesystem.rcp.core.internal.changes.ActiveWorkspaceManager.getComponentCollaboration(ActiveWorkspaceManager.java:252)


Was wondering if there is a better way to get the handle of a
IWorkspaceConnection with the origin set? This is RTC 1.0.1 GA.
Regards,
Sri.

Be the first one to answer this question!


Register or to post your answer.