View Issue Details

IDProjectCategoryView StatusLast Update
0004965SymmetricDSBugpublic2021-04-28 19:10
Reportersymds-tryout Assigned Toelong  
Status closedResolutionfixed 
Product Version3.12.8 
Target Version3.12.9Fixed in Version3.12.9 
Summary0004965: AndroidSymmetricEngine: (re)start after stop fails
DescriptionRefers to Android version of SymmetricDS!

Trying to start AndroidSymmetricEngine again after stop was called fails with a NotImplementedException.

This is due to clearCaches calling getMonitorService which is not implemented on AndroidSymmetricEngine:

    public IMonitorService getMonitorService() {
        throw new NotImplementedException();

Not-implemented-services should not lead to a failure on start / in clearCaches of AbstractSymmetricEngine.
Steps To ReproduceStart Engine as normal in an Activity:


In onPause, call


In onResume, call

        ISymmetricEngine engine = AndroidSymmetricEngine.findEngineByName(ENGINE_NAME);

        if (engine != null) {

-> leads to above mentioned error
Additional Information    org.apache.commons.lang3.NotImplementedException
        at org.jumpmind.symmetric.AbstractSymmetricEngine.clearCaches(
        at org.jumpmind.symmetric.AbstractSymmetricEngine.start(
        at org.jumpmind.symmetric.AbstractSymmetricEngine.start(
        at com.xx.xxxxxxx.MainActivity.onResume(
        at android.os.Handler.dispatchMessage(
        at android.os.Looper.loop(
        at java.lang.reflect.Method.invoke(Native Method)
Tagsdialect: android



2021-04-24 14:17

reporter   ~0001927

Above mentioned stacktrace is followed by:

I/o*.j*.s*.AbstractSymme*: Stopping SymmetricDS externalId=AS-Emu-000 version=development database=sqlite
I/o*.j*.s*.AbstractSymme*: SymmetricDS Node NOT STARTED:
         uptime=30 sec.

Related Changesets

SymmetricDS: 3.12 3eb75463

2021-04-26 18:12:35


Details Diff
0004965: monitor service not available on android Affected Issues
mod - symmetric-client/src/main/java/org/jumpmind/symmetric/ Diff File
mod - symmetric-core/src/main/java/org/jumpmind/symmetric/ Diff File

Issue History

Date Modified Username Field Change
2021-04-24 14:14 symds-tryout New Issue
2021-04-24 14:17 symds-tryout Note Added: 0001927
2021-04-26 18:13 elong Assigned To => elong
2021-04-26 18:13 elong Status new => resolved
2021-04-26 18:13 elong Resolution open => fixed
2021-04-26 18:13 elong Fixed in Version => 3.12.9
2021-04-26 18:13 elong Target Version => 3.12.9
2021-04-26 18:13 elong Tag Attached: dialect: android
2021-04-26 19:00 admin Changeset attached => SymmetricDS 3.12 3eb75463
2021-04-28 19:10 admin Status resolved => closed