View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006120 | SymmetricDS Pro | Bug | public | 2023-11-22 00:47 | 2023-11-22 00:47 |
Reporter | elong | Assigned To | elong | ||
Priority | normal | ||||
Status | closed | Resolution | fixed | ||
Product Version | 3.14.0 | ||||
Target Version | 3.15.2 | Fixed in Version | 3.15.2 | ||
Summary | 0006120: JsonIOException fails to deserialize log summary event | ||||
Description | The background refresher for MainWindow checks for log summary errors delivered via monitor events. It tries to deserialize the LogSummary but cannot set private methods on Throwable. In Java 17, reflection to set private properties is no longer allowed. The Throwable is not needed and can be marked as transient since LogSummary already has the stack trace in a string. com.google.gson.JsonIOException: Failed making field 'java.lang.Throwable#detailMessage' accessible; either change its visibility or write a custom TypeAdapter for its declaring type at com.google.gson.internal.reflect.ReflectionHelper.makeAccessible(ReflectionHelper.java:22) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:158) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:101) at com.google.gson.Gson.getAdapter(Gson.java:501) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:116) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:165) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:101) at com.google.gson.Gson.getAdapter(Gson.java:501) at com.google.gson.internal.bind.CollectionTypeAdapterFactory.create(CollectionTypeAdapterFactory.java:53) at com.google.gson.Gson.getAdapter(Gson.java:501) at com.google.gson.Gson.fromJson(Gson.java:990) at com.google.gson.Gson.fromJson(Gson.java:956) at com.google.gson.Gson.fromJson(Gson.java:905) at com.jumpmind.symmetric.console.ui.c.a(MainWindow.java:1325) at com.jumpmind.symmetric.console.ui.c.a(MainWindow.java:1342) at com.jumpmind.symmetric.console.ui.c.b(MainWindow.java:1072) at com.jumpmind.symmetric.console.ui.c$a.a(MainWindow.java:1567) at com.jumpmind.symmetric.console.ui.c$a.onBackgroundDataRefresh(MainWindow.java:1564) at com.jumpmind.symmetric.console.ui.b.a(BackgroundRefresherService.java:88) at com.jumpmind.symmetric.console.ui.b$1.run(BackgroundRefresherService.java:73) | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2023-11-22 00:47 | elong | New Issue | |
2023-11-22 00:47 | elong | Status | new => assigned |
2023-11-22 00:47 | elong | Assigned To | => elong |
2023-11-22 00:47 | elong | Issue generated from: 0006119 | |
2023-11-22 00:47 | elong | Relationship added | related to 0006119 |
2023-11-22 00:47 | elong | Status | assigned => resolved |
2023-11-22 00:47 | elong | Resolution | open => fixed |
2023-11-22 00:47 | elong | Fixed in Version | => 3.15.2 |
2023-12-16 02:02 | admin | Status | resolved => closed |