SCHEDULED RUNNING
RUNNING FAILED
javax.json.JsonException: Provider org.glassfish.json.JsonProviderImpl not found
javax.json.JsonException: Provider org.glassfish.json.JsonProviderImpl not found
at javax.json.spi.JsonProvider.provider(JsonProvider.java:97)
at javax.json.Json.createReader(Json.java:220)
at io.datafx.io.converter.JsonConverter.initialize(JsonConverter.java:100)
at io.datafx.io.converter.JsonConverter.initialize(JsonConverter.java:62)
at io.datafx.io.InputStreamDataReader.setInputStream(InputStreamDataReader.java:109)
at io.datafx.io.RestSource.createRequest(RestSource.java:118)
at io.datafx.io.RestSource.next(RestSource.java:141)
at io.datafx.provider.ListDataProvider$2.callTask(ListDataProvider.java:245)
at io.datafx.core.concurrent.PublishingTask.call(PublishingTask.java:61)
at io.datafx.core.concurrent.PublishingTask.call(PublishingTask.java:44)
at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at javafx.concurrent.Service.lambda$null$492(Service.java:725)
at java.security.AccessController.doPrivileged(Native Method)
at javafx.concurrent.Service.lambda$executeTask$493(Service.java:724)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: org.glassfish.json.JsonProviderImpl
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at javax.json.spi.JsonProvider.provider(JsonProvider.java:94)
... 17 more
I don't know it FAILED and WHY org.glassfish.json API need to be used there as it worked for Adolfo.
// JsonConverter<Member> converter = new JsonConverter<Member>("", Member.class);
// RestSource<Member> source = RestSourceBuilder.create().converter(converter).host(HOST).path(PATH).build();
// ListDataProviderBuilder<Member> odpb = ListDataProviderBuilder.<Member> create();
// ObservableList<Member> resultProperty = FXCollections.observableArrayList();
// odpb.dataReader(source).resultList(resultProperty);
// final ListDataProvider<Member> listDataProvider = odpb.build();
// final Worker<ObservableList<Member>> worker = listDataProvider.retrieve();
and replace by this:
final InputStreamConverter<Member> inputStreamConverter = null;
final ObjectDataProvider provider = new ObjectDataProvider(source);
final Worker<ObservableList<Member>> worker = provider.retrieve();
there is no ERROR, and the console the worker response is SUCCEDED but I have nothing in provider variable.
Any help would be appreciated.