Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: App is incompatible with Java 16 #51

Open
julianpistorius opened this issue Aug 24, 2021 · 1 comment
Open

Problem: App is incompatible with Java 16 #51

julianpistorius opened this issue Aug 24, 2021 · 1 comment
Labels
bug Something isn't working Version 2.0

Comments

@julianpistorius
Copy link
Contributor

julianpistorius commented Aug 24, 2021

While creating the tar file we see this error:

Task failed! Error was: 
Error Message: Creating TAR file out of the directory before uploading...
Stack trace: java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.time.LocalDate java.time.LocalDateTime.date accessible: module java.base does not "opens java.time" to unnamed module @28c71909
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
	at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:177)
	at java.base/java.lang.reflect.Field.setAccessible(Field.java:171)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:157)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
	at com.google.gson.Gson.getAdapter(Gson.java:423)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
	at com.google.gson.Gson.getAdapter(Gson.java:423)
	at com.google.gson.Gson.toJson(Gson.java:661)
	at com.google.gson.Gson.toJson(Gson.java:648)
	at com.google.gson.Gson.toJson(Gson.java:603)
	at com.google.gson.Gson.toJson(Gson.java:583)
	at model.cyverse.CyVerseConnectionManager.uploadImages(CyVerseConnectionManager.java:838)
	at controller.uploadView.ImageCollectionListEntryController$1.call(ImageCollectionListEntryController.java:264)
	at controller.uploadView.ImageCollectionListEntryController$1.call(ImageCollectionListEntryController.java:252)
	at javafx.concurrent.Task$TaskCallable.call(Task.java:1425)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
	at java.base/java.lang.Thread.run(Thread.java:831)

This looks like the cause: https://openjdk.java.net/jeps/396

Note: It works fine in Java 15.

@julianpistorius
Copy link
Contributor Author

@Chris-Schnaufer You might be interested in this.

@smalusa smalusa added bug Something isn't working Version 2.0 labels Jun 30, 2022
@smalusa smalusa changed the title App is incompatible with Java 16 Problem: App is incompatible with Java 16 Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Version 2.0
Projects
None yet
Development

No branches or pull requests

2 participants