Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-8766

Groovy packages not compatible with OSGi (ServiceLoader Capability)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.5.2
    • 3.0.0-alpha-4, 2.5.4
    • None
    • None
    • Patch, Important

    Description

      Groovy modules are heavily using ServiceLoader Feature. Those capabilities are not exported for OSGi usage causing errors like:

      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) ~[?:?]

       

      Have look on: https://blog.osgi.org/2013/02/javautilserviceloader-in-osgi.html

      Attachments

        Issue Links

          Activity

            People

              paulk Paul King
              graben Benjamin Graf
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: