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

Groovy packages not compatible with OSGi (ServiceLoader Capability)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.5.2
    • Fix Version/s: 3.0.0-alpha-4, 2.5.4
    • Component/s: None
    • Labels:
      None
    • Flags:
      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

              • Assignee:
                paulk Paul King
                Reporter:
                graben Benjamin Graf
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: