Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347318 - UnknownSessionExeption during commit() after applying an EMFCompare delta on an EMFStore object
Summary: UnknownSessionExeption during commit() after applying an EMFCompare delta on ...
Status: CLOSED FIXED
Alias: None
Product: EMFStore
Classification: Modeling
Component: Clientcore (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Florian Pirchner CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-26 09:56 EDT by Philipp Hauer CLA
Modified: 2012-02-14 11:38 EST (History)
2 users (show)

See Also:


Attachments
Main and MyMatchEngine (1.95 KB, text/x-java)
2011-05-26 09:56 EDT, Philipp Hauer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hauer CLA 2011-05-26 09:56:43 EDT
Created attachment 196663 [details]
Main and MyMatchEngine

Hello,

I want to create a change delta between two eobjects. One eobject originates from a parsed xtext model. The other is checked out from emfstore. I want to apply the delta to the object from the emfstore and commit the changes.

Strangely, I get an UnknownSessionException when I call commit():
Caused by: org.unicase.emfstore.exceptions.UnknownSessionException: Session unkown to Connection manager, log in first!
	at org.unicase.workspace.connectionmanager.AbstractConnectionManager.getConnectionProxy(AbstractConnectionManager.java:61)
	at org.unicase.workspace.connectionmanager.xmlrpc.XmlRpcConnectionManager.resolveVersionSpec(XmlRpcConnectionManager.java:187)
	at org.unicase.workspace.impl.ProjectSpaceImpl.resolveVersionSpec(ProjectSpaceImpl.java:1580)
	at org.unicase.workspace.impl.ProjectSpaceImpl.prepareCommit(ProjectSpaceImpl.java:1191)
	at org.unicase.workspace.impl.ProjectSpaceImpl.commit(ProjectSpaceImpl.java:1167)
	at org.unicase.workspace.impl.ProjectSpaceImpl.commit(ProjectSpaceImpl.java:1154)
	at org.unicase.workspace.impl.ProjectSpaceImpl.commit(ProjectSpaceImpl.java:2497)
	at de.archtech.kvasy.ide.core.ui.navigator.internal.actions.provider.RefreshActionProvider$7$1.run(RefreshActionProvider.java:340)

* When I remove the EMFCompare code and alter the oldRepoModel manuelly everything works fine.
* It seems to depend on the extent of the merge: If the delta is small enought (e.g. just a letter appended on a String-Field), EMFCompare recoginized this change correctly (call to the setter). The commit succeeds. But in the case, that EMFCompare can't figure out the similarity between the field values, he just deletes the whole node and creates a new one with the new attribute value. In this case, the Exceptions appears.
* calling "projectSpace.getUsersession().logIn()" before committing solves the problem.

Best Regards
Philipp Hauer