[CDO] IllegalStateException during attempts to reconnect [message #990258] |
Tue, 11 December 2012 11:03  |
Eclipse User |
|
|
|
Hi,
I'm trying to use a CDOReconnectingSession to allow my client program to reconnect to the CDO Server if it gets disconnected. I have it set up as follows:
CDONet4jSessionConfiguration config = CDONet4jUtil.createReconnectingSessionConfiguration(server, REPOSITORY, PluginContainer.getInstance());
session = config.openNet4jSession();
When I shutdown and subsequently restart the CDO Server I receive the following errors: java.lang.IllegalStateException: Not active: Transaction 1 [MAIN]
at org.eclipse.net4j.util.lifecycle.LifecycleUtil.checkActive(LifecycleUtil.java:87)
at org.eclipse.net4j.util.lifecycle.Lifecycle.checkActive(Lifecycle.java:194)
at org.eclipse.emf.internal.cdo.view.AbstractCDOView.getStore(AbstractCDOView.java:178)
at org.eclipse.emf.internal.cdo.CDOObjectImpl.cdoStore(CDOObjectImpl.java:943)
at org.eclipse.emf.internal.cdo.CDOObjectImpl.eInternalContainer(CDOObjectImpl.java:606)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eContainer(BasicEObjectImpl.java:765)
Is there something I need to specifically do to the transaction that was open during the disconnect? I've tried having the main thread sleep, but then I get an exception of the same type that states that the session wasn't deactivated.
The way I understand how this is working is that the transaction is still tied to the objects and they are trying to access it, hence this exception. If I am wrong, please correct me. Thanks in advance!
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08942 seconds