mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-02 19:27:57 +08:00
PL-10641 UnsupportedOperationException during serialization of UnmodifiableMap
This commit is contained in:
parent
5b5224df56
commit
40d63fdb56
@ -57,8 +57,7 @@ public class ExceptionReportServiceBean implements ExceptionReportService {
|
||||
@Override
|
||||
public void sendExceptionReport(String supportEmail, Map<String, Object> binding) {
|
||||
try {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.putAll(binding);
|
||||
Map<String, Object> map = new HashMap<>(binding);
|
||||
map.put("toHtml", new MethodClosure(HtmlUtils.class, "convertToHtml"));
|
||||
|
||||
String body = getExceptionReportBody(map);
|
||||
|
@ -17,6 +17,7 @@
|
||||
|
||||
package com.haulmont.cuba.desktop.sys;
|
||||
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.haulmont.cuba.client.ClientConfig;
|
||||
import com.haulmont.cuba.core.app.ExceptionReportService;
|
||||
import com.haulmont.cuba.core.global.*;
|
||||
@ -129,7 +130,7 @@ public class JXErrorPaneExt extends JXErrorPane {
|
||||
binding.putAll(additionalExceptionReportBinding);
|
||||
}
|
||||
|
||||
reportService.sendExceptionReport(clientConfig.getSupportEmail(), MapUtils.unmodifiableMap(binding));
|
||||
reportService.sendExceptionReport(clientConfig.getSupportEmail(), ImmutableMap.copyOf(binding));
|
||||
|
||||
mainFrame.showNotification(messages.getMainMessage("errorPane.emailSent", locale),
|
||||
Frame.NotificationType.TRAY);
|
||||
|
Loading…
Reference in New Issue
Block a user