|
|
Re: [EMFStore] Working with multiple usersessions [message #1444322 is a reply to message #1442049] |
Tue, 14 October 2014 00:11 |
Roza Ghamari Messages: 82 Registered: January 2013 |
Member |
|
|
I tired this but it still gives me the same error. I checked the usersession, after I call the refresh() it actually assigned a sessionId which shows the log in is done. However, the ID is not added to the AbstractConnectionManager map, and as a result when I try to commit it throws the following exception.
org.eclipse.emf.emfstore.internal.server.exceptions.UnknownSessionException: Session unknown to Connection manager, log in first!
at org.eclipse.emf.emfstore.internal.client.model.connectionmanager.AbstractConnectionManager.getConnectionProxy(AbstractConnectionManager.java:69)
at org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcConnectionManager.logout(XmlRpcConnectionManager.java:72)
[Updated on: Tue, 14 October 2014 00:21] Report message to a moderator
|
|
|
|
Re: [EMFStore] Working with multiple usersessions [message #1446430 is a reply to message #1445273] |
Thu, 16 October 2014 21:01 |
Roza Ghamari Messages: 82 Registered: January 2013 |
Member |
|
|
I just loop through local project
for (ESLocalProject locProject: esWs.getLocalProjects()){
if (locProject.getProjectName().equals(TAG_PRJ_NAME)){
locProject.getUsersession().refresh();
if (locProject.hasUncommitedChanges())
locProject.revert();
locProject.update(subMontiro.newChild(1));
return locProject;
}
}
And later on in the code I make changes and call, locProject.commit and that's when I am getting the exception. Save password is set to true, and I see after refresh a sessionId is assigned, However, i still get the exception.
[Updated on: Thu, 16 October 2014 21:02] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03692 seconds