|
Re: [CDO] IllegalStateException during attempts to reconnect [message #990302 is a reply to message #990258] |
Tue, 11 December 2012 18:31 |
|
Am 11.12.2012 19:13, schrieb Jack Lechner:
> 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!
We don't seem to have test cases for CDOReconnectingSession. Can you please submit a bugzilla? Then I can start to write
test cases...
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04583 seconds