Community
Participate
Working Groups
In a collaborative environment, when the data is host on a server, the connection with the server can be lost. Sirius is not ready to handle this context. If Sirius 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. Several cases, see list [1] to [4] (not exhaustive), have been already fixed in the past but without a common way to retrieve them. Generally, just a "try catch IllegalStateException" has been added. Indeed, LifecycleException is not known from Sirius and IllegalStateException is the superclass of LifecycleException. The goal of this issue is to propose an helper to detect this kind of specific Exception, not all IllegalStateException, and then use it when it is necessary. [1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=522749 [2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=539924 [3] https://bugs.eclipse.org/bugs/show_bug.cgi?id=551053 [4] https://bugs.eclipse.org/bugs/show_bug.cgi?id=552679
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/168083
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/168084
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/168085
Gerrit change https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/168083 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=e38427472e8e1e43f16e1d1389f22f7795944f06
Gerrit change https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/168084 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=046714bc7548d7168370f7cbbdb4973856bacda9
Gerrit change https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/168085 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=8e355d196a49604057be2ea1c03b52bad7cf8bb4
Verified with Team for Capella product
Available in Sirius 6.4.0, see https://download.eclipse.org/sirius/updates/releases/6.4.0/ for details.
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/180125
Gerrit change https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/180125 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=0494a9d0a3cf7d3ae579113a0b5e8193598a77df