Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9054181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:37:18+00:00 2026-06-16T13:37:18+00:00

I am running Grails 1.3.7; I have server A that needs to make a

  • 0

I am running Grails 1.3.7; I have server A that needs to make a POST request on server B. I am using the http-builder library to make these requests. The request seems to be composed correctly

RESTClient http = new RESTClient( searchServerUrl );

Map body = ...;     
logger.trace("request: ${request}, body: ${body}")
def response = http.post( path: request, body: body, requestContentType: URLENC)
logger.trace("response: ${response}");
return response;

Server B performs the computation correctly, and returns a JSON structure to server A. When Server A tries to parse it, I see a long stack of exceptions rooted here:

Caused by: java.lang.NoClassDefFoundError: groovy/json/JsonSlurper
at groovyx.net.http.ParserRegistry.parseJSON(ParserRegistry.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
... 145 more

EDITED
The http-builder library comes with groovy-1.8.8.jar in its dependencies folder, but I would rather use the standard Groovy library (v. 1.7.8) that comes with my Grails runtime. Unfortunately, the groovy.json namespace doesn’t seem to be there. What should I do?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T13:37:19+00:00Added an answer on June 16, 2026 at 1:37 pm

    Because http-builder-0.6 is based on Groovy 1.8.8, it assumes that the JSONSlurper class is available with the Groovy libraries. Since I was using a version of Grails that comes with Groovy 1.7.8, I did not have that library. At this stage there were two choices: upgrade the app to a more recent grails version, or downgrade the http-builder library to one that includes the JSON classes explicitly. I opted for the second solution (upgrading from Grails 1.3.7 to 2.2 is not trivial), and was able to get my code to work with http-builder-0.5.2.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using tomcat6 running on Ubuntu server. I have deployed three Grails 1.3.7
I have issues running grails using grails > run-app If I change a controller
I have a Grails project that is running correctly in dev mode but when
I have a Grails web application running on a german localized machine. How does
I have been attempting to learn Grails, however I am running into the following
I got Grails CMS (Weceem) up and running. Through the admin screen I have
Currently I am facing issues, that the java melody statistics running for a grails
I'm integrating Gigya with a web app running Acegi. I have it working that
All, I am trying to test my grails app using Hudson. I have in
I have an older project running Grails 1.3.7, in the domain class (ex. Patients)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.