Spectrum Technology Platform

 View Only
  • 1.  JsonSlurper not found with Spectrum 24.1

    Employee
    Posted 03-11-2025 09:56

    Hi Spectrum community

    I'm getting the message "unable to resolve class groovy.json.JsonSlurper" with Spectrum 24.1 trying to import this class. Looks like we moved to groovy 4.0.

    Has anyone encountered this problem and solved it? 

    Thanks

    Eric



    ------------------------------
    EricHubert
    Sales Engineer
    Precisely
    ------------------------------


  • 2.  RE: JsonSlurper not found with Spectrum 24.1

    Employee
    Posted 04-07-2025 03:49

    Hello there,

    I forgot to add some updates I had internally from Eric D. 

    Groovy changed the way they package their part of things and we did not include all the new packages in 24.1 yet.

    Looks like engineering  is going to add a few packages back into Spectrum in future patch.

    As a workaround, you can download Groovy 4.0.14 from here: https://archive.apache.org/dist/groovy/4.0.14/distribution/" href="https://archive.apache.org/dist/groovy/4.0.14/distribution/" rel="noreferrer noopener" target="_blank" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://archive.apache.org/dist/groovy/4.0.14/distribution/">https://archive.apache.org/dist/groovy/4.0.14/distribution/

    Inside the .zip file, go into groovy-4.0.14/lib and extract groovy-json-4.0.14.jar into your <Spectrum>/server/lib directory.



    ------------------------------
    EricHubert
    Sales Engineer
    Precisely
    ------------------------------