View Issue Details

IDProjectCategoryView StatusLast Update
0006501SymmetricDS ProBugpublic2024-06-18 20:38
Reporteremiller Assigned Toemiller  
Prioritynormal 
Status closedResolutionfixed 
Product Version3.15.0 
Target Version3.15.8Fixed in Version3.15.8 
Summary0006501: Batch error monitor fails to convert batch details to JSON when they contain a java.sql.Timestamp
DescriptionThe following error occurs when the batch error monitor attempts to convert batch details to JSON when they contain a java.sql.Timestamp:

Unable to convert batch errors to JSON StackTraceKey.init [JsonIOException:3539864601] com.google.gson.JsonIOException: Failed making field 'java.sql.Timestamp#nanos' accessible; either change its visibility or write a custom TypeAdapter for its declaring type
        at com.google.gson.internal.reflect.ReflectionHelper.makeAccessible(ReflectionHelper.java:23)
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:203)
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:112)
        at com.google.gson.Gson.getAdapter(Gson.java:531)
        at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:56)
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.write(ReflectiveTypeAdapterFactory.java:157)
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:287)
        at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:69)
        at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.write(CollectionTypeAdapterFactory.java:97)
        at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.write(CollectionTypeAdapterFactory.java:61)
        at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:69)
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.write(ReflectiveTypeAdapterFactory.java:157)
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:287)
        at com.google.gson.Gson.toJson(Gson.java:786)
        at com.google.gson.Gson.toJson(Gson.java:756)
        at com.google.gson.Gson.toJson(Gson.java:711)
        at com.google.gson.Gson.toJson(Gson.java:691)
        at com.jumpmind.symmetric.console.impl.fw.a(MonitorTypeBatchError.java:95)
        at com.jumpmind.symmetric.console.impl.fw.a(MonitorTypeBatchError.java:77)
        at com.jumpmind.symmetric.console.service.impl.MonitorService.updateMonitor(MonitorService.java:258)
        at com.jumpmind.symmetric.console.service.impl.MonitorService.update(MonitorService.java:215)
        at com.jumpmind.symmetric.console.impl.eW.doJob(MonitorJob.java:58)
        at org.jumpmind.symmetric.job.AbstractJob.invoke(AbstractJob.java:202)
        at org.jumpmind.symmetric.job.AbstractJob.run(AbstractJob.java:268)
        at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
        at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
        at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private int java.sql.Timestamp.nanos accessible: module java.sql does not "opens java.sql" to unnamed module @3025782f
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
        at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
        at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
        at com.google.gson.internal.reflect.ReflectionHelper.makeAccessible(ReflectionHelper.java:20)
        ... 30 more
Tagsmonitoring

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2024-06-18 20:31 emiller New Issue
2024-06-18 20:31 emiller Status new => assigned
2024-06-18 20:31 emiller Assigned To => emiller
2024-06-18 20:31 emiller Tag Attached: monitoring
2024-06-18 20:38 emiller Status assigned => resolved
2024-06-18 20:38 emiller Resolution open => fixed
2024-06-18 20:38 emiller Fixed in Version => 3.15.8
2024-08-16 17:45 admin Status resolved => closed