Skip to content

Commit

Permalink
Merge pull request #647 from growerp/RestClient-NotSerializableException
Browse files Browse the repository at this point in the history
fix: Unable to release Session : Caused by: java.io.NotSerializableEx…
  • Loading branch information
jonesde authored Nov 6, 2024
2 parents d677e40 + 4fa9aa1 commit 60dd57c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/src/main/java/org/moqui/util/RestClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
package org.moqui.util;

import groovy.json.JsonBuilder;
import groovy.json.JsonSlurper;
import groovy.json.JsonSlurperClassic;
import org.eclipse.jetty.client.HttpClient;
import org.eclipse.jetty.client.HttpClientTransport;
import org.eclipse.jetty.client.HttpResponseException;
Expand Down Expand Up @@ -442,7 +442,7 @@ public String text() {
/** Parse the response as JSON and return an Object */
public Object jsonObject() {
try {
return new JsonSlurper().parseText(text());
return new JsonSlurperClassic().parseText(text());
} catch (Throwable t) {
throw new BaseException("Error parsing JSON response from request to " + rci.uriString, t);
}
Expand Down

0 comments on commit 60dd57c

Please sign in to comment.