[CDO] net4j reconnect session timeout exception, no reconnect [message #1855557] |
Thu, 20 October 2022 11:25 |
thomas huster Messages: 21 Registered: June 2012 |
Junior Member |
|
|
After the last target update to cdo version 4.19 the reconnecting cdo session throws the following exception if the connection to the server is lost, and no reconnect is happening afterwards.
The reconnect is working as expected with cdo version 4.12 .
Session configuration:
// Repository
ReconnectingCDOSessionConfiguration config = CDONet4jUtil.createReconnectingSessionConfiguration(serverAddress,
configuration.repositoryName, IPluginContainer.INSTANCE);
// Create credentials
PasswordCredentialsProvider credentialsProvider = new PasswordCredentialsProvider(username, password);
config.setCredentialsProvider(credentialsProvider);
config.setActivateOnOpen(true);
config.setPassiveUpdateEnabled(true);
config.setPassiveUpdateMode(PassiveUpdateMode.ADDITIONS);
config.setHeartBeatEnabled(true);
try {
setSession(config.openNet4jSession());
getSession().addListener(new IListener() {
@Override
public void notifyEvent(final IEvent event) {
if (event instanceof CDOSessionRecoveryEvent) {
final CDOSessionRecoveryEvent recoveryEvent = (CDOSessionRecoveryEvent) event;
switch (recoveryEvent.getType()) {
case STARTED:
sendEvent(EVENT_DISCONNECT);
break;
case FINISHED:
sendEvent(EVENT_CONNECT);
break;
}
}
}
});
} catch (Exception e) {
LoggerFactory.getLogger(getClass()).error("Error opening session to " + configuration.repositoryName, e);
return false;
}
Exception:
ERROR] org.eclipse.net4j.util.concurrent.TimeoutRuntimeException: Channel registration timeout after 10000 milliseconds
org.eclipse.net4j.channel.ChannelException: org.eclipse.net4j.util.concurrent.TimeoutRuntimeException: Channel registration timeout after 10000 milliseconds
at org.eclipse.spi.net4j.ChannelMultiplexer.openChannel(ChannelMultiplexer.java:217)
at org.eclipse.spi.net4j.ChannelMultiplexer.openChannel(ChannelMultiplexer.java:1)
at org.eclipse.net4j.signal.SignalProtocol.open(SignalProtocol.java:229)
at org.eclipse.net4j.signal.heartbeat.HeartBeatProtocol.<init>(HeartBeatProtocol.java:70)
at org.eclipse.net4j.signal.heartbeat.HeartBeatProtocol.<init>(HeartBeatProtocol.java:75)
at org.eclipse.net4j.signal.heartbeat.HeartBeatProtocol.<init>(HeartBeatProtocol.java:83)
at org.eclipse.emf.cdo.internal.net4j.RecoveringCDOSessionImpl.createTCPConnector(RecoveringCDOSessionImpl.java:209)
at org.eclipse.emf.cdo.internal.net4j.ReconnectingCDOSessionImpl.updateConnectorAndRepositoryName(ReconnectingCDOSessionImpl.java:88)
at org.eclipse.emf.cdo.internal.net4j.RecoveringCDOSessionImpl.recoverSession(RecoveringCDOSessionImpl.java:232)
at org.eclipse.emf.cdo.internal.net4j.RecoveringCDOSessionImpl.recover(RecoveringCDOSessionImpl.java:136)
at org.eclipse.emf.cdo.internal.net4j.RecoveringCDOSessionImpl.recover(RecoveringCDOSessionImpl.java:128)
at org.eclipse.emf.cdo.internal.net4j.RecoveringCDOSessionImpl.sessionProtocolDeactivated(RecoveringCDOSessionImpl.java:120)
at org.eclipse.emf.internal.cdo.session.CDOSessionImpl$1.onDeactivated(CDOSessionImpl.java:201)
at org.eclipse.net4j.util.lifecycle.LifecycleEventAdapter.notifyLifecycleEvent(LifecycleEventAdapter.java:56)
at org.eclipse.net4j.util.lifecycle.LifecycleEventAdapter.notifyEvent(LifecycleEventAdapter.java:34)
at org.eclipse.net4j.util.event.Notifier.fireEventSafe(Notifier.java:239)
at org.eclipse.net4j.util.event.Notifier.fireEvent(Notifier.java:167)
at org.eclipse.net4j.util.lifecycle.Lifecycle.internalDeactivate(Lifecycle.java:146)
at org.eclipse.net4j.util.lifecycle.Lifecycle.deactivate(Lifecycle.java:184)
at org.eclipse.emf.internal.cdo.session.DelegatingSessionProtocol$1.onDeactivated(DelegatingSessionProtocol.java:100)
at org.eclipse.net4j.util.lifecycle.LifecycleEventAdapter.notifyLifecycleEvent(LifecycleEventAdapter.java:56)
at org.eclipse.net4j.util.lifecycle.LifecycleEventAdapter.notifyEvent(LifecycleEventAdapter.java:34)
at org.eclipse.net4j.util.event.Notifier.fireEventSafe(Notifier.java:239)
at org.eclipse.net4j.util.event.Notifier.fireEvent(Notifier.java:167)
at org.eclipse.net4j.util.lifecycle.Lifecycle.internalDeactivate(Lifecycle.java:146)
at org.eclipse.net4j.util.lifecycle.Lifecycle.deactivate(Lifecycle.java:184)
at org.eclipse.net4j.util.lifecycle.LifecycleUtil.deactivate(LifecycleUtil.java:254)
at org.eclipse.net4j.util.lifecycle.LifecycleUtil.deactivate(LifecycleUtil.java:244)
at org.eclipse.net4j.util.lifecycle.LifecycleUtil.deactivate(LifecycleUtil.java:271)
at org.eclipse.spi.net4j.Protocol.handleChannelDeactivation(Protocol.java:190)
at org.eclipse.net4j.signal.SignalProtocol.handleChannelDeactivation(SignalProtocol.java:414)
at org.eclipse.spi.net4j.Protocol$1.onDeactivated(Protocol.java:53)
at org.eclipse.net4j.util.lifecycle.LifecycleEventAdapter.notifyLifecycleEvent(LifecycleEventAdapter.java:56)
at org.eclipse.net4j.util.lifecycle.LifecycleEventAdapter.notifyEvent(LifecycleEventAdapter.java:34)
at org.eclipse.net4j.util.event.Notifier.fireEventSafe(Notifier.java:239)
at org.eclipse.net4j.util.event.Notifier.fireEvent(Notifier.java:167)
at org.eclipse.net4j.util.lifecycle.Lifecycle.internalDeactivate(Lifecycle.java:146)
at org.eclipse.net4j.util.lifecycle.Lifecycle.deactivate(Lifecycle.java:184)
at org.eclipse.net4j.util.lifecycle.LifecycleUtil.deactivate(LifecycleUtil.java:254)
at org.eclipse.net4j.util.lifecycle.LifecycleUtil.deactivate(LifecycleUtil.java:244)
at org.eclipse.spi.net4j.ChannelMultiplexer.doDeactivate(ChannelMultiplexer.java:386)
at org.eclipse.spi.net4j.Connector.doDeactivate(Connector.java:413)
at org.eclipse.net4j.internal.tcp.TCPConnector.doDeactivate(TCPConnector.java:441)
at org.eclipse.net4j.util.lifecycle.Lifecycle.internalDeactivate(Lifecycle.java:132)
at org.eclipse.net4j.util.lifecycle.ShareableLifecycle.internalDeactivate(ShareableLifecycle.java:52)
at org.eclipse.net4j.util.lifecycle.Lifecycle.deactivate(Lifecycle.java:184)
at org.eclipse.net4j.internal.tcp.TCPConnector$1.run(TCPConnector.java:455)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.eclipse.net4j.util.concurrent.TimeoutRuntimeException: Channel registration timeout after 10000 milliseconds
at org.eclipse.spi.net4j.ChannelMultiplexer.openChannel(ChannelMultiplexer.java:206)
... 49 more
Caused by: org.eclipse.net4j.util.concurrent.TimeoutRuntimeException: Registration timeout after 10 000 milliseconds
at org.eclipse.net4j.internal.tcp.ControlChannel.registerChannel(ControlChannel.java:101)
at org.eclipse.net4j.internal.tcp.TCPConnector.registerChannelWithPeer(TCPConnector.java:386)
at org.eclipse.spi.net4j.ChannelMultiplexer.openChannel(ChannelMultiplexer.java:200)
... 49 more
[Updated on: Thu, 20 October 2022 11:49] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04683 seconds