You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" com.google.gson.JsonIOException: Failed making field 'java.time.ZoneRegion#id' 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.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:56)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.write(ReflectiveTypeAdapterFactory.java:126)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:244)
at com.google.gson.Gson.toJson(Gson.java:747)
at com.google.gson.Gson.toJson(Gson.java:726)
at com.google.gson.Gson.toJson(Gson.java:681)
at com.google.gson.Gson.toJson(Gson.java:661)
at reposense.util.FileUtil.writeJsonFile(FileUtil.java:117)
at reposense.report.ReportGenerator.generateReposReport(ReportGenerator.java:142)
at reposense.RepoSense.main(RepoSense.java:79)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.lang.String java.time.ZoneRegion.id accessible: module java.base does not "opens java.time" to unnamed module @6a463b3d
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:19)
It is unlikely due to a change from our side but may be caused by a change from a dependency that we use or a change in CI environment. Still, we need to investigate.
The text was updated successfully, but these errors were encountered:
The failure coincides with the switch to the ubuntu 24 runner which uses Java 17 by default, which we don't yet support. Superficially, this should be fixed by merging the latest updates from publish-RepoSense.
However, we should into why this occurs in Java 17, for when we decide on bumping support.
Thanks for the investigation, @gok99
Glad to hear this will not affect new dashboards I'll set up later in the semester.
Yes, we should look into fixing this when we upgrade to Java 17.
I also encountered this issue when I tried to launch the dashboard using java 17 last week. I think a quick way to fix this is to add --add-opens java.base/java.time=ALL-UNNAMED before -jar
Here are some resources I found when I was searching for a solution to this issue
Some of my dashboards that I forgot to disable after the semester ended started failing recently.
Example: https://github.com/nus-cs2103-AY2324S2/ip-dashboard/actions/runs/12720039351/job/35461148355
Error:
It is unlikely due to a change from our side but may be caused by a change from a dependency that we use or a change in CI environment. Still, we need to investigate.
The text was updated successfully, but these errors were encountered: