[ https://issues.apache.org/jira/browse/SLING-10788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
A. J. David Bosschaert closed SLING-10788. ------------------------------------------ > ClassCastException is thrown when calling Json.createReader from a launcher > extension > ------------------------------------------------------------------------------------- > > Key: SLING-10788 > URL: https://issues.apache.org/jira/browse/SLING-10788 > Project: Sling > Issue Type: Bug > Components: Feature Model > Affects Versions: Feature Model Launcher 1.1.22 > Reporter: A. J. David Bosschaert > Assignee: A. J. David Bosschaert > Priority: Major > Fix For: Feature Model Launcher 1.1.26 > > > A ClassCastException is thrown when calling Json.createReader (JSON-P) from a > launcher extension. The following stack trace shows the exception. > {code} > [ERROR] Error while running launcher: > org.apache.johnzon.core.JsonProviderImpl not found > javax.json.JsonException: org.apache.johnzon.core.JsonProviderImpl not found > at javax.json.spi.JsonProvider.doLoadProvider(JsonProvider.java:118) > at javax.json.spi.JsonProvider.provider(JsonProvider.java:89) > at javax.json.Json.createReader(Json.java:88) > ... > at > org.apache.sling.feature.launcher.impl.Bootstrap.run(Bootstrap.java:268) > at > org.apache.sling.feature.launcher.impl.Bootstrap.run(Bootstrap.java:170) > at org.apache.sling.feature.launcher.impl.Main.main(Main.java:402) > Caused by: java.lang.ClassCastException: Cannot cast > org.apache.johnzon.core.JsonProviderImpl to javax.json.spi.JsonProvider > at java.base/java.lang.Class.cast(Class.java:3605) > at javax.json.spi.JsonProvider.doLoadProvider(JsonProvider.java:116) > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)