diff --git a/plugins/rest/pom.xml b/plugins/rest/pom.xml index 93b4c6adc4..2ba22b35da 100644 --- a/plugins/rest/pom.xml +++ b/plugins/rest/pom.xml @@ -58,7 +58,7 @@ org.apache.juneau juneau-marshall - 8.1.3 + 9.2.0 true diff --git a/plugins/rest/src/main/java/org/apache/struts2/rest/handler/JuneauXmlHandler.java b/plugins/rest/src/main/java/org/apache/struts2/rest/handler/JuneauXmlHandler.java index 584061b42b..30057c4eed 100644 --- a/plugins/rest/src/main/java/org/apache/struts2/rest/handler/JuneauXmlHandler.java +++ b/plugins/rest/src/main/java/org/apache/struts2/rest/handler/JuneauXmlHandler.java @@ -62,10 +62,10 @@ public String fromObject(ActionInvocation invocation, Object obj, String resultC LOG.debug("Converting an object of {} into string", obj.getClass().getName()); try { serializer - .builder() - .locale(invocation.getInvocationContext().getLocale()) - .build() - .serialize(obj, stream); + .copy() + .locale(invocation.getInvocationContext().getLocale()) + .build() + .serialize(obj, stream); return null; } catch (SerializeException e) { throw new IOException(e);