View Issue Details

IDProjectCategoryView StatusLast Update
0006120SymmetricDS ProBugpublic2023-11-22 00:47
Reporterelong Assigned Toelong  
Prioritynormal 
Status closedResolutionfixed 
Product Version3.14.0 
Target Version3.15.2Fixed in Version3.15.2 
Summary0006120: JsonIOException fails to deserialize log summary event
DescriptionThe 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)
TagsNo tags attached.

Relationships

related to 0006119 closedelong JsonIOException fails to deserialize log summary event 

Activities

There are no notes attached to this issue.

Issue History

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