You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2018/12/13 10:05:01 UTC
[jira] [Closed] (GROOVY-8766) Groovy packages not compatible with
OSGi (ServiceLoader Capability)
[ https://issues.apache.org/jira/browse/GROOVY-8766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King closed GROOVY-8766.
-----------------------------
> Groovy packages not compatible with OSGi (ServiceLoader Capability)
> -------------------------------------------------------------------
>
> Key: GROOVY-8766
> URL: https://issues.apache.org/jira/browse/GROOVY-8766
> Project: Groovy
> Issue Type: Bug
> Affects Versions: 2.5.2
> Reporter: Benjamin Graf
> Assignee: Paul King
> Priority: Critical
> Fix For: 3.0.0-alpha-4, 2.5.4
>
>
> Groovy modules are heavily using ServiceLoader Feature. Those capabilities are not exported for OSGi usage causing errors like:
> {noformat}
> Caused by: java.lang.RuntimeException: Unable to load FastStringService
> at org.apache.groovy.json.internal.FastStringUtils.getService(FastStringUtils.java:57) ~[24:groovy:2.5.2]
> at org.apache.groovy.json.internal.FastStringUtils.toCharArray(FastStringUtils.java:67) ~[24:groovy:2.5.2]
> at org.apache.groovy.json.internal.BaseJsonParser.parse(BaseJsonParser.java:112) ~[24:groovy:2.5.2]
> at groovy.json.JsonSlurper.parseText(JsonSlurper.java:205) ~[24:groovy:2.5.2]
> at groovy.json.JsonSlurper$parseText.call(Unknown Source) ~[?:?]{noformat}
>
> Have look on: [https://blog.osgi.org/2013/02/javautilserviceloader-in-osgi.html]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)