You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Daniel Sun (Jira)" <ji...@apache.org> on 2022/09/17 07:23:00 UTC

[jira] [Commented] (GROOVY-10678) java.lang.RuntimeException: Unable to load FastStringService

    [ https://issues.apache.org/jira/browse/GROOVY-10678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17606056#comment-17606056 ] 

Daniel Sun commented on GROOVY-10678:
-------------------------------------

Your code works well with groovy 4.0.5 and jdk8 
{code:java}
import groovy.json.*
import java.net.http.*

def req = new URL('https://jsonplaceholder.typicode.com/todos/1').openConnection()
def postRC = req.getResponseCode()
def streamText = req.getInputStream().getText()
def jsonSlurper = new JsonSlurper()

println streamText
def json = jsonSlurper.parseText(streamText)

println json.completed
{code}
 

!image-2022-09-17-15-19-29-453.png!

> java.lang.RuntimeException: Unable to load FastStringService
> ------------------------------------------------------------
>
>                 Key: GROOVY-10678
>                 URL: https://issues.apache.org/jira/browse/GROOVY-10678
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: DharmaTeja
>            Priority: Critical
>         Attachments: image-2022-07-05-18-29-29-772.png, image-2022-09-17-15-19-29-453.png
>
>
> Can you please help me with the below information? 
> OS: macOS
> Server: Atlassian confluence 7.4.15 server
> JDK version 1.8
>  
> Tried with the below 2 jars, and I am facing the below issue
> org.codehaus.groovy (3.0.10)
> org.apache.groovy(4.0.3)
>  
> I was trying to execute the below script, in the confluence server with Groovy macro, but it was failing to print the data.
> {{}}
> Script was there in the screenshot.
> {{}}
> {{}}
> {{}}
> !image-2022-07-05-18-29-29-772.png! {{{{}}{}}}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)