Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 566437

Summary: Handle specific "connection lost" problem that can appear when using Capella with collaborative environment (Team for Capella)
Product: [Polarsys] Capella Reporter: Laurent Redor <laurent.redor>
Component: UIAssignee: Laurent Redor <laurent.redor>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sandu.postaru
Version: 1.4.0   
Target Milestone: 5.0.0   
Hardware: PC   
OS: Windows 10   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=566440
Whiteboard:
Bug Depends on: 566274    
Bug Blocks:    

Description Laurent Redor CLA 2020-08-27 04:27:57 EDT
As for Sirius bug 566274, in a collaborative environment, when the data is host on a server, the connection with the server can be lost. Capella is not ready to handle this context. If Capella tries to access to data, for example with an async refresh of the UI that needs information from data to be refreshed, a org.eclipse.net4j.util.lifecycle.LifecycleException is thrown with the message "Not active: CDOTransactionImpl". This kind of errors is showed to the end-user instead of silently catch it. Indeed, in this situation, the UI should be refreshed with "blank data" instead of displaying an "incomprehensible" popup to the end-user.

In bug 566274, a specific query has been added to "detect" this specific case. The goal of this issue is to use this specific query to avoid this kind of problem.
Comment 1 Laurent Redor CLA 2020-08-27 04:32:30 EDT
Proposition of fix: https://github.com/eclipse/capella/pull/341